Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates EmDash CMS plugins with hooks, storage, settings, admin UI, API routes, and Portable Text block types.
4% 71%+67 ptsof test cases passed
Passed 17 of 24 test cases with the skill, and 1 of 24 without it.
3 of 3 safety checks passed
Not used yet
EmDash plugins extend the CMS with hooks, storage, settings, admin UI, API routes, and custom Portable Text block types. All plugins are TypeScript packages.
EmDash has two plugin formats:
| Type | Format | Admin UI | Where it runs |
|---|---|---|---|
| Standard | definePlugin({ hooks, routes }) | Block Kit | Isolate on Cloudflare, in-process elsewhere |
| Native | createPlugin() / definePlugin() with id+version | React or Block Kit | Always in host isolate |
Standard is the default. Most plugins should use it. Standard plugins can be published to the marketplace and work in both trusted and sandboxed modes.
Native is an escape hatch for plugins that need React admin components, direct DB access, or custom Astro components. Native plugins can only run in plugins: [] -- they cannot be sandboxed or published to the marketplace.
Every plugin has two parts that run in different contexts:
PluginDescriptor) — returned by the factory function in index.ts. Declares metadata (id, version, capabilities, storage). Runs at build time in Vite (imported in astro.config.mjs). Must be side-effect-free.definePlugin()) — contains the runtime logic (hooks, routes). Runs at request time on the deployed server. Has access to the full plugin context (ctx). Lives in a separate file (typically sandbox-entry.ts).These must be in separate entrypoints because they execute in completely different environments:
my-plugin/
├── src/
│ ├── index.ts # Descriptor factory (runs in Vite at build time)
│ ├── sandbox-entry.ts # Plugin definition with definePlugin() (runs at deploy time)
│ ├── admin.tsx # Admin UI exports (React) — optional, native only
│ └── astro/ # Site-side rendering components — optional, native only
│ └── index.ts # Must export `blockComponents`
├── package.json
└── tsconfig.json
Next to this one in the catalogue, plus more from the same author.