Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/braynedigi/brayne-ai-writer/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Gutenberg tools to generate WordPress posts and images using multiple AI providers.
Plugin Info
- Name: Brayne AI Writer
- Author: Isaac Ameyaw - Brayne Digital
- Version: 0.1.0
Requirements
- WordPress 6.0+
- PHP 7.4+
- An OpenAI API key (for default provider)
- Node.js 18+ (for building assets)
Installation
- Copy the
Brayne AI Writerfolder into your WordPresswp-content/plugins/directory. - Activate the plugin from the WordPress Plugins page.
- Go to
Settings → Brayne AI Writerand add your OpenAI API key.
Build (if developing)
npm install
npm run build
This produces build/index.js and build/index.asset.php which are loaded in the block editor.
Usage
- In the block editor, insert the blocks below:
- "Brayne: Post Generator":
- Enter a post title and choose a word count.
- Click "Generate Post" to insert the AI-generated content into the editor.
- "Brayne: Image Generator":
- Describe the image you want.
- Choose size and click "Generate Image" to insert it into the content as a media item.
- "Brayne: Post Generator":
Providers
- OpenAI is included by default. To add more providers:
- Implement
includes/providers/interface-provider.php - Add a class under
includes/providers/(e.g.,class-anthropic-provider.php) - Update
includes/class-rest.php::get_provider()to route to your new provider. - Extend the settings page to capture API keys and defaults.
- Implement
Security
- REST endpoints require
edit_postsfor text andupload_filesfor images. - Nonce is used via
@wordpress/api-fetchmiddleware.
Notes
- Generated images are sideloaded into the Media Library.
- Text output aims for clean HTML suitable for WordPress blocks.