create-brika
Scaffold a new BRIKA plugin with a single command.
Usage
bun create brika my-plugin
This launches an interactive wizard that:
- Asks for plugin details (name, description, category, author)
- Fetches the latest SDK version from npm
- Creates the complete plugin structure
- Installs dependencies
- Initializes a git repository
Options
bun create brika
bun create brika my-plugin
bun create brika my-plugin --no-git
bun create brika my-plugin --no-install
bun create brika --help
Generated Structure
my-plugin/
├── package.json # Plugin manifest with blocks
├── tsconfig.json # TypeScript configuration
├── README.md # Documentation
├── .gitignore
├── src/
│ └── index.ts # Block definitions
└── locales/
└── en/
└── plugin.json # i18n translations
Categories
When prompted for category, choose based on your plugin's purpose:
trigger | Starts workflows | Timers, sensors, webhooks |
action | Performs operations | Send notification, control device |
transform | Processes data | Map, filter, format |
flow | Controls execution | Condition, delay, split |
After Creating
cd my-plugin
bun link
bun run tsc
Add to your brika.yml:
plugins:
- path: ./my-plugin
License
MIT