Skip to content
ECHODocs
Home
Documentation

Plugin manifests and native pages

Keep a stable ID and version in echo.workshop.json. Set content.kind to plugin-package. A native entry looks like "gpui": { "protocol": 1, "entry": "plugin.mjs" }. The path is relative to the package directory containing the manifest.

Export activate(context) and register a page with context.pages.register. This example reads the current title, falling back to a placeholder when no track is loaded.

export function activate(context) {
context.pages.register('home', { title: 'Now playing' }, async () => {
const track = await context.playback.get();
return { title: 'Now playing', description: track.title || '—' };
});
}

For required commands or events, inspect the target build with echo-gpui --workshop capabilities and declare dependencies in gpui.requires.