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>
This commit is contained in:
chrnx committed 2026-09-24 10:20:26 -05:00
1 parent e60de81ac0
commit c3a3e3461e
3 files changed
+11 -5

No files matched your search

+6 -1
View File
@@ -36,7 +36,7 @@ export function greeting(text = 'hello'): Plugin {
<a class="button button--solid" href={ADD_URL}>Add your plugin</a> <a class="button button--solid" href={ADD_URL}>Add your plugin</a>
<a class="button button--ghost" href="#plugins">Browse plugins</a> <a class="button button--ghost" href="#plugins">Browse plugins</a>
</p> </p>
<p class="hero__micro">Node · Deno · Bun · workerd</p> <p class="hero__micro">Needs <code>@green-tea/core@26.9.0-beta.2</code> or newer. Each card shows which runtimes that plugin supports.</p>
</div> </div>
<figure class="hero__code" aria-label="A complete plugin"> <figure class="hero__code" aria-label="A complete plugin">
@@ -87,6 +87,11 @@ export function greeting(text = 'hello'): Plugin {
letter-spacing: 0.03em; letter-spacing: 0.03em;
} }
.hero__micro code {
font-family: var(--font-mono);
color: var(--ink);
}
.hero__code { .hero__code {
margin: 0; margin: 0;
background: var(--panel); background: var(--panel);
+4 -3
View File
@@ -1,7 +1,8 @@
--- ---
// Every claim here is checked against core: the shape and the three-method API are // Every claim here is checked against core: the shape and the three-method API are
// `Plugin`/`PluginApi` in src/plugin.ts, and `mountPlugin` hands over nothing else, which is why a // `Plugin`/`PluginApi` in src/plugin.ts, and `mountPlugin` hands over nothing else, which is why a
// plugin cannot reorder or remove what an app already has. // plugin cannot reorder or remove the app's steps. That guarantee covers registration only: a
// plugin's step still sees the live request context (see the comment in mountPlugin).
const points = [ const points = [
{ {
title: 'One object', title: 'One object',
@@ -9,11 +10,11 @@ const points = [
}, },
{ {
title: 'Core as types only', title: 'Core as types only',
body: 'Plugins import <code>@green-tea/core</code> with <code>import type</code>. Installing one never pulls in a second copy of core, so there is no version to line up.', body: 'Plugins import <code>@green-tea/core</code> with <code>import type</code> and keep it out of <code>dependencies</code>, and review checks for it. So installing one does not pull in a second copy of core.',
}, },
{ {
title: 'The graph picks the order', title: 'The graph picks the order',
body: 'Say what your plugin needs and what it provides, and green-tea decides where it runs. A plugin can add to an app, but it cannot reorder or remove anything that is already there.', body: 'Say what your plugin needs and what it provides, and green-tea decides where it runs. A plugin can only add nodes to the graph. It has no way to reorder or remove the app&rsquo;s own steps.',
}, },
]; ];
--- ---
+1 -1
View File
@@ -5,7 +5,7 @@ const reasons = [
{ title: 'Runtimes read, not typed', body: 'Each card shows where your plugin runs, taken from what the package declares.' }, { title: 'Runtimes read, not typed', body: 'Each card shows where your plugin runs, taken from what the package declares.' },
{ {
title: "It doesn't go stale", title: "It doesn't go stale",
body: 'Your entry has no version in it. Every build asks the registry, so a new release shows up at the next cut without another pull request.', body: 'Your entry has no version in it. Each rebuild of the listing asks the registry again, so your card picks up a new release without you touching the entry.',
}, },
{ title: 'Read by a person', body: 'Someone who works on green-tea reads each entry before it is listed.' }, { title: 'Read by a person', body: 'Someone who works on green-tea reads each entry before it is listed.' },
]; ];