create-brika
v0.1.0
Published
Create a new BRIKA plugin with a single command
Maintainers
Readme
create-brika
Scaffold a new BRIKA plugin with a single command.
Usage
bun create brika my-pluginThis 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
# Interactive mode (prompts for all options)
bun create brika
# With plugin name
bun create brika my-plugin
# Skip git initialization
bun create brika my-plugin --no-git
# Skip dependency installation
bun create brika my-plugin --no-install
# Show help
bun create brika --helpGenerated 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 translationsCategories
When prompted for category, choose based on your plugin's purpose:
| Category | Description | Examples |
|----------|-------------|----------|
| 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 # Link for local development
bun run tsc # Type checkAdd to your brika.yml:
plugins:
- path: ./my-pluginLicense
MIT
