Prerequisites
- A modern browser
- A text editor
- Blank Board running locally (
npx serve)
Step 1: Create the File
Step 2: Export meta and setup
The meta Object
| Field | Required | Description |
|---|---|---|
id | ✅ | Unique identifier. Use kebab-case |
name | ✅ | Display name in Plugin Manager |
version | ✅ | Semantic version |
compat | ❌ | Core version compatibility range |
Step 3: Build Your UI
Use the managed container for standard plugins:Step 4: Add Storage
Use plugin-scoped storage for clean key management:Step 5: Add Event Communication
Step 6: Inject Scoped CSS
Step 7: Handle Cleanup
Step 8: Show Notifications
Step 9: Install and Test
Option A: Manual Install
- Right-click the board → Plugin Manager
- Click Install via URL
- Enter ID and URL:
http://localhost:3000/plugins/my-plugin/plugin.js - Click Install
Option B: Debug in Console
Debugging
Open browser DevTools:Complete Example
Here’s a full plugin using all the patterns above:Persisting Data
Deep dive into storage patterns
Plugin Communication
Events, hooks, and patterns