feat: plugin pages, ESM-only npm, and a home that sells the listing #2

Merged
chrnx merged 11 commits from feature/plugin-pages into develop 2026-09-24 15:30:02 +00:00
11 Commits
Author SHA1 Message Date
chrnx 6373737edf fix: stop saying plugin registration order never matters
It does when two plugins provide the same token: the one registered
last wins. The card keeps only what holds in general, that execution
order comes from what each node needs and provides.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:26:17 -05:00
chrnx f43b1b690a fix: make no plugin isolation claim on the home
"The plugin never gets your app" still overstated it: a plugin's step
receives the live request context and can overwrite keys in it, and a
plugin node can take over a token an app step provides. The card now
makes the one claim that holds, that the graph works out the order.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:24:47 -05:00
chrnx a68ac09e4c fix: drop the claim that a plugin cannot replace an app's step
It can. A plugin node that provides a token an app step already
provides wins when the graph is built, and the app's step drops out
with no error. The card now says only what mountPlugin guarantees: a
plugin gets bus.on, scope.add and onShutdown, and never the app itself.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:23:00 -05:00
chrnx c3a3e3461e fix: keep the home's claims to what the code guarantees
"Node · Deno · Bun · workerd" under the hero read as a promise every
plugin runs everywhere; it now says the core version needed and that
runtimes are per plugin. Core-as-types is a convention review checks,
not something the listing enforces. A plugin cannot reorder or remove
the app's steps, which is narrower than "anything already there". And
the listing only rebuilds at a cut, not on every release.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:20:26 -05:00
chrnx e60de81ac0 feat: sell the listing to plugin authors, not just describe it
The home had the facts but no pull. It now shows a whole plugin in the
hero, explains what a plugin is and why it is cheap to write, says what
listing here gets you, and ends on the honest hook: the listing is new,
so the first community plugins get the front row. Every claim is one the
code backs today.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:18:51 -05:00
chrnx 8b5d1d47e1 fix: close three README and version gaps found in review
A README could borrow the site's own classes (card__link::after is a
full-page overlay), so classes are now limited to what shiki writes.
<source srcset> was not rebased, which broke the common dark-mode logo.
Yanked JSR versions were listed as current; the registry hides them and
so does the listing now.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:03:18 -05:00
chrnx b26201ee06 feat: lead the home with an invitation to list a plugin
The home opened with a definition of a plugin and left 'Add your
plugin' for the end. It now says where to publish and how to be
listed, and the definition and review criteria move to CONTRIBUTING.
It also stops claiming automatic checks that do not run yet.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:57:03 -05:00
chrnx 750781d839 feat: give every plugin a page with its README and versions
Clicking a plugin opened nothing; a developer expects what JSR shows.
Each page renders the README of the newest version, lists every
published version, and gives the install command for the registry the
entry recommends.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:56:00 -05:00
chrnx 84dae62864 feat: read entries, registry data and READMEs in one loader
renderMarkdown only exists inside a content loader, and the README
should render through the site's own pipeline. One loader also means
the home and every plugin page share a single registry read per build.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:54:51 -05:00
chrnx d61b577a48 feat: clean plugin READMEs before they reach the page
A README is third-party HTML that can change after review. It is
sanitized against a closed allowlist on every build, and its relative
links are pointed at the published version so images and docs resolve
without knowing the author's branch.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:54:11 -05:00
chrnx 2ce1e0c4e5 feat: accept npm plugins only when they are ESM only
green-tea is ESM end to end and its Node floor is moving up; a CJS or
dual package brings a require path that is the first thing to break.
The check lives in readEntry, so it bites on CI with every other
registry check, and validate.mjs inherits it when it is written.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:53:32 -05:00