Skip to content

Add an optional long-form overview text to plugin marketplace entries - #3010

Merged
SawyerHood merged 9 commits into
mainfrom
bb/add-about-md-long-form-plugin-descriptions-thr_3w2fgrg66c
Sep 3, 2026
Merged

SawyerHood merged 9 commits into
mainfrom
bb/add-about-md-long-form-plugin-descriptions-thr_3w2fgrg66c

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

A marketplace entry could describe a plugin with one short description field only. The store detail page had no long-form text below it, so an author had nowhere to explain a plugin in more than a few sentences. The marketplace repository counterpart is get-bb/marketplace#182, which adds the overview/<plugin-id>.md file, the CI validation, and the build step that folds the file text into the v2 document.

What changed

  • packages/domain/src/plugin-marketplace-entry.ts adds the optional overview string to the v2 entry schema and exports MARKETPLACE_ABOUT_MAX_CHARS (4000). The v1 schema stays strict and rejects the field. apps/web/public/schemas/marketplace-v2.schema.json mirrors the marketplace schema with maxLength: 4000.
  • packages/server-contract/src/api/plugins.ts adds optional overview to the catalog search result. Omission means the entry has no long-form text, the same way publishedAt works. The SDK passes it through, and bb plugin search --json returns it.
  • apps/server/src/services/plugin-catalog/marketplace-manifest.ts adds entryOverview, which drops a text above the cap with a warning so a third-party marketplace cannot push an oversized string to the client. plugin-catalog-service.ts projects it into the search result.
  • apps/server/scripts/generate-bb-official-marketplace.ts folds plugins/<name>/PLUGIN_OVERVIEW.md into a bundled plugin entry, and fails the generator on an empty file, a file above the cap, raw HTML, or an image. No bundled plugin has an PLUGIN_OVERVIEW.md yet, so the generated document is unchanged.
  • apps/app/src/components/plugin/management/PluginOverviewMarkdown.tsx renders the text below the short description on the detail page. It uses react-markdown with skipHtml, an allowedElements list (headings, paragraphs, emphasis, strong, strikethrough, code, blockquote, lists, thematic break, links), unwrapDisallowed, and a URL transform plus link component that render any non-https link as plain text. Links open with target="_blank" and rel="noopener noreferrer". Images, tables, task lists, and raw HTML never reach the DOM, even when a marketplace skips the CI check.
  • The submit-a-plugin skill (SKILL.md, references/marketplace-entry.md, references/pull-request.md) tells the agent to copy an author PLUGIN_OVERVIEW.md to overview/<plugin-id>.md, reference it from the entry, follow the content rules, and commit it. The bb-cli skill reference and bb guide plugins mention the overview field in --json.

No wire change between the server and the host daemon: catalog data does not cross that boundary, so HOST_DAEMON_PROTOCOL_VERSION stays as is. No new public plugin API member.

Design decisions, with the measured payload: the text is inline in the manifest, not a CDN fetch. On the 122 current entries, the v2 plugins JSON grows from 96,836 bytes to 600,086 bytes when every entry uses the full cap, and to 287,034 bytes at a realistic 1,500 characters. The worst case is one quarter of a single screenshot cap, and bb fetches the manifest once per two hours.

How you verified

  • New tests, each of which fails on main with the new test files copied in and passes here: v2 overview acceptance and v1 rejection in packages/domain/test/plugin-marketplace-entry.test.ts; entryOverview cap and warning in marketplace-manifest.test.ts; overview projection and drop-above-cap in plugin-catalog-service.test.ts; readBundledPluginOverview normalization and rejections plus the shallow-repo output in bb-official-generator.test.ts; the skill text in submit-a-plugin.test.ts; the query mapping in plugin-catalog-queries.test.ts; and the hostile-markdown render in PluginOverviewMarkdown.test.tsx, which asserts no script, img, table, input, or non-https anchor reaches the DOM.
  • pnpm exec turbo run typecheck --filter=@bb/domain --filter=@bb/server-contract --filter=@bb/server --filter=@bb/app --filter=@bb/cli --filter=@bb/sdk --filter=@bb/templates passes.
  • pnpm exec turbo run test --filter=@bb/domain --filter=@bb/server-contract passes. pnpm exec turbo run test --filter=@bb/server -- test/services/plugin-catalog test/skills/submit-a-plugin.test.ts, the three touched @bb/app test files, and the @bb/cli plugin catalog output test pass.
  • pnpm exec turbo run lint for the touched packages passes.
  • Not done: a live check in the dev app against a marketplace that publishes an overview text. The render path is covered by the jsdom test only.

Fixes #

Update: public marketplace site and bundled overview files

  • apps/web/src/marketplace/marketplace-overview.tsx renders the overview field on the getbb.app plugin detail page, below the screenshots, through the same allowlist as the app component. marketplace-v2.ts accepts the optional field. The web app adds react-markdown and remark-gfm. public-marketplace.test.tsx renders a hostile overview text through renderToStaticMarkup and asserts no script, image, or non-https anchor reaches the HTML.
  • Every bundled plugin now has plugins/<name>/PLUGIN_OVERVIEW.md (26 files, 781 to 1,687 characters each). Each file passes the marketplace CI check from Add an optional long-form overview file to marketplace entries marketplace#182. The bb-official generator folds them in, and the generated document grows to 44,956 bytes. The generator now strips inline and fenced code before its raw-HTML check, so <host-id> in a command example is accepted.
  • Verified with pnpm exec turbo run typecheck test lint --filter=@bb/web, the server plugin-catalog tests against the regenerated document, and the strict checkOverviewMarkdown from the marketplace repository on all 26 files.

Update: field renamed to overview, summary card layout

  • The entry field is overview, the plugin file is PLUGIN_OVERVIEW.md, and the marketplace file is overview/<plugin-id>.md. The marketplace side is Add an optional long-form overview file to marketplace entries marketplace#182.
  • The detail page now shows the short description in a Summary card and the long text under an Overview heading, in the app (PluginSummaryCard, PluginOverviewMarkdown) and on the public site (MarketplaceSummary, MarketplaceOverview). An installed plugin with no catalog entry gets the same Summary card. The detail-page recipe tests were updated from the About label to Summary.

AGENT GENERATED

SawyerHood and others added 4 commits September 3, 2026 16:10
A v2 marketplace entry can carry an about markdown string. The catalog
projects it into search results, the store detail page renders it below
the short description through a strict allowlist renderer, and the
bb-official generator folds a bundled plugin ABOUT.md into its entry.
The submit-a-plugin skill copies an author ABOUT.md into the marketplace
about directory.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…very bundled plugin

The getbb.app plugin detail page renders the v2 about field through the
same markdown allowlist as the app. Every bundled plugin gets an
ABOUT.md, which the bb-official generator folds into its entry. Inline
code may hold angle brackets in a bundled ABOUT.md.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
… the generator inputs

The bundled SDK types now carry the marketplace about field, so the
published package changes and needs a new version. The bb-official
generator task lists plugins/*/ABOUT.md as inputs so a changed file
invalidates the cached document.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ary card

The long-form file is PLUGIN_OVERVIEW.md in a plugin and
overview/<plugin-id>.md in the marketplace, and the entry field is
overview. The detail page shows the short description in a Summary
card and the long text under its own Overview heading, in the app and
on the public site.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@SawyerHood SawyerHood changed the title Add an optional long-form about text to plugin marketplace entries Add an optional long-form overview text to plugin marketplace entries Sep 3, 2026
SawyerHood and others added 5 commits September 3, 2026 18:14
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…rarchy

The description is a larger lead paragraph under the header. Headings
inside the overview text render as small uppercase labels, the body is
muted, and both blocks cap their line length.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@SawyerHood
SawyerHood merged commit e9b3e14 into main Sep 3, 2026
15 checks passed
@SawyerHood
SawyerHood deleted the bb/add-about-md-long-form-plugin-descriptions-thr_3w2fgrg66c branch September 3, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant