Official plugins ship bundled inside the BB app. There is no separate
publish pipeline: app packaging builds each plugin through its Turbo-cached
prepare:bundled task and copies the collection into
<server dist>/builtin-plugins/<name>. Plugins → Browse plugins installs
official plugins from that local bundled copy; no network is involved.
Every bundled plugin lives in plugins/<name>. The directory does not record
the install policy. autoInstall in the registry does: BUILTIN_PLUGINS
entries reconcile automatically, and OFFICIAL_PLUGINS entries stay store-only
until a user installs them.
The official plugins are:
| Directory | Package name | Store entry | Plugin id |
|---|---|---|---|
plugins/browser-automation |
bb-plugin-browser-automation |
browser-automation |
browser-automation |
plugins/github |
bb-plugin-github |
github |
github |
plugins/docs |
bb-plugin-simple-notes |
docs |
simple-notes |
plugins/memory |
bb-plugin-memory |
memory |
memory |
plugins/tailscale |
bb-plugin-bb--tailscale |
tailscale |
bb--tailscale |
plugins/tasks |
bb-plugin-tasks |
tasks |
tasks |
- Land the plugin change on
mainlike any other code change. Bump the plugin'spackage.jsonversion when the change is user-visible — the version is shown in plugin management and drives startup reconciliation (an installed official plugin re-points to the new bundled copy when its version or root directory changes). - Ship a normal BB app release. The packaging step builds changed plugins and reuses cached outputs for unchanged plugins; installed plugins pick up the new code at the next server start.
Never check in plugins/*/dist or plugins/*/.bundled-runtime; they are generated.
-
Create the plugin under
plugins/<name>with abbmanifest block (server, optionalapp,branding, optionalskills). Name the packagebb-plugin-bb--<name>so its plugin id isbb--<name>. BB refuses non-bundled installs ofbb--ids and the marketplace rejects them, so a new bundled plugin cannot collide with a community plugin. The ids bundled before this rule are frozen inapps/server/test/services/plugins/builtin-registry.test.ts. -
Add an entry to
OFFICIAL_PLUGINSinapps/server/src/services/plugins/builtin-registry.tswith the storename, the derivedpluginId,defaultEnabled, and acategoryfor the Browse tab. The registry-invariant test (apps/server/test/services/plugins/official-plugins.test.ts) verifies the declared plugin id matches the manifest. -
Add
@bb/plugin-buildas aworkspace:*dev dependency and"prepare:bundled": "bb-plugin-build prepare-bundled"to the plugin's scripts. Add the plugin's package as a workspace dependency of@bb/bundled-plugins. Keep task configuration in the rootturbo.json.
pnpm exec turbo run build --filter=bb-app
ls packages/bb-app/server/dist/builtin-pluginsEvery bundled plugin directory must contain a rewritten package.json
pointing at ./dist/server.js plus the prebuilt dist/ artifacts. Then, in a
dev build:
bb plugin search docs
bb plugin install docs --yes
bb plugin list
bb plugin remove simple-notes