Compare commits
34
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e6a2a17ac | ||
|
|
854f2b7066 | ||
|
|
7afd1fc1f5 | ||
|
|
37713a3405 | ||
|
|
a3c741eb6e | ||
|
|
64d8897345 | ||
|
|
141f2f7ffc | ||
|
|
8db3408ea2 | ||
|
|
ccfb237ab9 | ||
|
|
3914af3708 | ||
|
|
e937498bdf | ||
|
|
646db3ae6d | ||
|
|
8a11f6a540 | ||
|
|
8c67b3e06b | ||
|
|
844e1bc064 | ||
|
|
f4973096ac | ||
|
|
218977cd64 | ||
|
|
f5ddbeb177 | ||
|
|
f049b9cb19 | ||
|
|
b9b97bdfc6 | ||
|
|
bcbbf7d652 | ||
|
|
4b73076aa5 | ||
|
|
739f0bf2a5 | ||
|
|
85136b7671 | ||
|
|
5576ef28bd | ||
|
|
204a6ca331 | ||
|
|
2b44150824 | ||
|
|
55e51fc3ae | ||
|
|
41513b3a42 | ||
|
|
6c3ccf2496 | ||
|
|
4408710e85 | ||
|
|
f512be9534 | ||
|
|
6b2f3fe97d | ||
|
|
eb6b5e0a1d |
No files matched your search
@@ -16,10 +16,11 @@ jobs:
|
||||
if: ${{ github.server_url != 'https://github.com' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: '22'
|
||||
check-latest: true # the runner's cached 22 can lag behind Astro's minimum
|
||||
- run: npm ci
|
||||
|
||||
- name: Audit
|
||||
|
||||
@@ -14,10 +14,16 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: '22'
|
||||
check-latest: true # the runner's cached 22 can lag behind Astro's minimum
|
||||
- run: npm ci
|
||||
- run: npm audit --audit-level=moderate
|
||||
# Only a critical advisory blocks, as in release.yml. The site ships built files, not
|
||||
# node_modules; a build-time advisory with no published fix would otherwise block every PR.
|
||||
# audit.yml still files an issue for moderate and up, and the full report prints here.
|
||||
- run: npm audit --audit-level=critical
|
||||
- run: npm audit
|
||||
continue-on-error: true
|
||||
- run: npm run check
|
||||
@@ -1,6 +1,12 @@
|
||||
name: Promote → GitHub
|
||||
|
||||
# Runs on GITEA ONLY. Mirrors only main + version tags to the public GitHub repo.
|
||||
# Runs on GITEA ONLY. Mirrors main, and each version tag as it is created, to the public GitHub
|
||||
# repo. On GitHub a v* tag runs release.yml, which attaches the dist.tar.gz the cPanel deploy uses.
|
||||
#
|
||||
# A tag is pushed only on its own event, by name. The branch push used to add `git push --tags`,
|
||||
# which is refused whenever any old tag points at different objects on the two forges
|
||||
# (v26.8.1-beta.0 and v26.8.2-beta.0 do), so every promotion of main went red even though main had
|
||||
# already arrived.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
@@ -11,10 +17,10 @@ jobs:
|
||||
if: ${{ github.server_url != 'https://github.com' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Push main + tags to GitHub
|
||||
- name: Push main or the new tag to GitHub
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_PROMOTE_TOKEN }}
|
||||
run: |
|
||||
@@ -23,5 +29,4 @@ jobs:
|
||||
git push github "refs/tags/${{ github.ref_name }}"
|
||||
else
|
||||
git push github "HEAD:refs/heads/main"
|
||||
git push github --tags
|
||||
fi
|
||||
@@ -17,10 +17,11 @@ jobs:
|
||||
ARCHIVE_NAME: green-tea-site-${{ github.ref_name }}.tar.gz
|
||||
RELEASE_TAG: ${{ github.ref_name }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: '22'
|
||||
check-latest: true # the runner's cached 22 can lag behind Astro's minimum
|
||||
- name: Validate release tag
|
||||
run: npm run verify:release
|
||||
- run: npm ci
|
||||
@@ -30,7 +31,7 @@ jobs:
|
||||
# whether a fix is safe. What ships here is built HTML, CSS and JS: Astro, js-yaml
|
||||
# and friends are build-time tools that never reach a visitor. `critical` keeps a
|
||||
# tripwire for the catastrophic case without breaking releases on routine noise.
|
||||
# Moderate and up still gate every PR in ci.yml, and audit.yml files an issue on a
|
||||
# ci.yml gates every PR the same way, and audit.yml files an issue for moderate and up on a
|
||||
# schedule, so advisories still surface — just not as a broken release.
|
||||
- run: npm audit --audit-level=critical
|
||||
- run: npm run check
|
||||
@@ -39,7 +40,7 @@ jobs:
|
||||
- name: Verify .htaccess in archive
|
||||
run: tar -tzf "$ARCHIVE_NAME" | grep -Fx './.htaccess'
|
||||
- name: Attach to GitHub release
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
prerelease: true
|
||||
files: ${{ env.ARCHIVE_NAME }}
|
||||
Generated
+1355
-940
File diff suppressed because it is too large.
Load diff
+4
-4
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "green-tea-site",
|
||||
"type": "module",
|
||||
"version": "26.8.1-beta.0",
|
||||
"version": "26.11.0-rc.2",
|
||||
"engines": {
|
||||
"node": ">=22.12.0"
|
||||
},
|
||||
@@ -16,9 +16,9 @@
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^7.0.5",
|
||||
"@astrojs/mdx": "^7.0.8",
|
||||
"@astrojs/rss": "^4.0.19",
|
||||
"@astrojs/sitemap": "^3.7.3",
|
||||
"astro": "^7.1.6"
|
||||
"@astrojs/sitemap": "^3.7.4",
|
||||
"astro": "^7.3.5"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
# curl -fsSL https://green-tea.expressive-tea.io/install.sh | sh -> matcha's installer.
|
||||
# 302, not 301: a cached permanent redirect could never be pointed elsewhere.
|
||||
RewriteRule ^install\.sh$ https://raw.githubusercontent.com/Expressive-Tea/matcha/main/install.sh [R=302,L]
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteRule ^ https://green-tea.expressive-tea.io%{REQUEST_URI} [R=301,L]
|
||||
</IfModule>
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
---
|
||||
import Icon from './Icon.astro';
|
||||
|
||||
const linkColumns = [
|
||||
{
|
||||
heading: 'Learn',
|
||||
links: [
|
||||
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
|
||||
{ label: 'Plugins', href: '/plugins/', external: false },
|
||||
{ label: 'Blog', href: '/blog', external: false },
|
||||
],
|
||||
},
|
||||
{
|
||||
heading: 'Code',
|
||||
links: [
|
||||
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true },
|
||||
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true },
|
||||
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true, icon: 'github' as const },
|
||||
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true, icon: 'npm' as const },
|
||||
{ label: 'JSR', href: 'https://jsr.io/@green-tea/core', external: true, icon: 'jsr' as const },
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -35,7 +39,13 @@ const year = new Date().getFullYear();
|
||||
<ul>
|
||||
{column.links.map((link) => (
|
||||
<li>
|
||||
<a href={link.href} target={link.external ? '_blank' : undefined} rel={link.external ? 'noopener noreferrer' : undefined}>
|
||||
<a
|
||||
class={link.icon ? 'site-footer__link--mark' : undefined}
|
||||
href={link.href}
|
||||
target={link.external ? '_blank' : undefined}
|
||||
rel={link.external ? 'noopener noreferrer' : undefined}
|
||||
>
|
||||
{link.icon && <Icon name={link.icon} size={15} />}
|
||||
{link.label}
|
||||
</a>
|
||||
</li>
|
||||
@@ -141,4 +151,12 @@ const year = new Date().getFullYear();
|
||||
gap: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Icon beside the word, never instead of it. A footer is scanned, and a column of bare
|
||||
glyphs makes the reader stop and decode where they were skimming. */
|
||||
.site-footer__link--mark {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
</style>
|
||||
@@ -1,11 +1,16 @@
|
||||
---
|
||||
import logoUrl from '../assets/logo.svg?url';
|
||||
import Icon from './Icon.astro';
|
||||
|
||||
// `icon` marks the links that become a mark on desktop. Their `label` is still the accessible
|
||||
// name — an icon-only link without one is a link a screen reader announces as its href.
|
||||
const navLinks = [
|
||||
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
|
||||
{ label: 'Plugins', href: '/plugins/', external: false },
|
||||
{ label: 'Blog', href: '/blog', external: false },
|
||||
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true },
|
||||
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true },
|
||||
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true, icon: 'github' as const },
|
||||
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true, icon: 'npm' as const },
|
||||
{ label: 'JSR', href: 'https://jsr.io/@green-tea/core', external: true, icon: 'jsr' as const },
|
||||
];
|
||||
---
|
||||
|
||||
@@ -28,8 +33,15 @@ const navLinks = [
|
||||
{
|
||||
navLinks.map((link) => (
|
||||
<li>
|
||||
<a href={link.href} target={link.external ? '_blank' : undefined} rel={link.external ? 'noopener noreferrer' : undefined}>
|
||||
{link.label}
|
||||
<a
|
||||
href={link.href}
|
||||
target={link.external ? '_blank' : undefined}
|
||||
rel={link.external ? 'noopener noreferrer' : undefined}
|
||||
aria-label={link.icon ? link.label : undefined}
|
||||
class={link.icon ? 'site-nav__mark' : undefined}
|
||||
>
|
||||
{link.icon && <Icon name={link.icon} />}
|
||||
<span class={link.icon ? 'site-nav__mark-text' : undefined}>{link.label}</span>
|
||||
</a>
|
||||
</li>
|
||||
))
|
||||
@@ -109,6 +121,23 @@ const navLinks = [
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.site-nav__mark {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* The mark carries the meaning on desktop, where the row is short and the three logos read
|
||||
faster than three words. The label is not removed from the DOM: it is the accessible name
|
||||
the collapsed menu shows back. */
|
||||
.site-nav__mark-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.site-nav ul {
|
||||
gap: 1.75rem;
|
||||
}
|
||||
|
||||
.nav-toggle {
|
||||
display: none;
|
||||
}
|
||||
@@ -148,6 +177,12 @@ const navLinks = [
|
||||
padding-block: 1rem;
|
||||
}
|
||||
|
||||
/* Inside the drawer the row is vertical and there is room, so the mark stops standing in
|
||||
for the word and stands next to it. Three unlabelled logos stacked read as decoration. */
|
||||
.site-nav__mark-text {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.nav-toggle:checked ~ .site-nav {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
---
|
||||
// Inline marks for the three places a package of ours can be reached. Three icons did not
|
||||
// justify an icon library: `astro-icon` and friends pull a resolver and a set to ship what
|
||||
// fits in this file, and every one of them ends up inlining the same paths anyway.
|
||||
//
|
||||
// `currentColor` rather than a fixed fill, so a mark takes the colour of the link it sits in
|
||||
// and needs no separate rule per surface — the header, the hero's ghost buttons and the
|
||||
// footer all tint it differently today.
|
||||
//
|
||||
// The SVG is `aria-hidden`: the accessible name belongs to the anchor, which knows where it
|
||||
// goes. A `<title>` here would announce "GitHub" twice on a link already labelled GitHub.
|
||||
interface Props {
|
||||
name: 'github' | 'npm' | 'jsr';
|
||||
size?: number;
|
||||
class?: string;
|
||||
}
|
||||
|
||||
const { name, size = 18, class: className } = Astro.props;
|
||||
|
||||
// Optical sizing, not geometric. GitHub and npm fill their 24×24 box; JSR's wordmark is wide
|
||||
// and short and covers about half its height, so at an equal `size` it reads as the small one
|
||||
// of the three. The multiplier matches apparent weight, which is what a row of marks is judged
|
||||
// on — nobody measures them, they just notice one looks wrong.
|
||||
const scale: Record<Props['name'], number> = { github: 1, npm: 1, jsr: 1.4 };
|
||||
const box = Math.round(size * scale[name]);
|
||||
|
||||
// The marks are the official ones, taken from simple-icons rather than redrawn. Hand-drawn
|
||||
// approximations of npm and JSR were tried first and rendered as illegible shapes: a
|
||||
// third-party mark is either theirs or it is noise.
|
||||
const paths: Record<Props['name'], string> = {
|
||||
github:
|
||||
'M12 .5C5.37.5 0 5.87 0 12.5c0 5.3 3.44 9.8 8.21 11.39.6.11.82-.26.82-.58 0-.29-.01-1.24-.02-2.25-3.34.73-4.04-1.42-4.04-1.42-.55-1.39-1.34-1.76-1.34-1.76-1.09-.75.08-.73.08-.73 1.2.08 1.84 1.24 1.84 1.24 1.07 1.83 2.81 1.3 3.5.99.11-.78.42-1.3.76-1.6-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.11-3.18 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 0 1 6.01 0c2.29-1.55 3.3-1.23 3.3-1.23.65 1.66.24 2.88.12 3.18.77.84 1.23 1.91 1.23 3.22 0 4.61-2.8 5.62-5.48 5.92.43.37.81 1.1.81 2.22 0 1.6-.01 2.9-.01 3.29 0 .32.21.7.82.58A12 12 0 0 0 24 12.5C24 5.87 18.63.5 12 .5Z',
|
||||
npm: 'M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z',
|
||||
// the others rather than carrying its own viewBox.
|
||||
jsr: 'M3.692 5.538v3.693H0v7.384h7.385v1.847h12.923v-3.693H24V7.385h-7.385V5.538Zm1.846 1.847h1.847v7.384H1.846v-3.692h1.846v1.846h1.846zm3.693 0h5.538V9.23h-3.692v1.846h3.692v5.538H9.231V14.77h3.692v-1.846H9.231Zm7.384 1.846h5.539v3.692h-1.846v-1.846h-1.846v5.538h-1.847z',
|
||||
};
|
||||
---
|
||||
|
||||
<svg
|
||||
class={className}
|
||||
width={box}
|
||||
height={box}
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
>
|
||||
<path d={paths[name]} />
|
||||
</svg>
|
||||
@@ -0,0 +1,43 @@
|
||||
---
|
||||
// Site-wide notice of the API freeze and the deprecation policy (core CARD-22, D18). It sits above
|
||||
// the header on every page because it is a promise about the product, not a feature of one section.
|
||||
// The full policy lives in the docs; this states only what a reader needs before upgrading.
|
||||
const policyURL = 'https://green-tea.expressive-tea.io/docs/stability/';
|
||||
---
|
||||
|
||||
<aside class="stability" aria-label="API stability">
|
||||
<p class="wrap stability__text">
|
||||
<strong>The API is frozen at RC.1.</strong> Until stable, releases are fixes only. After stable, nothing
|
||||
is removed without at least two releases' notice.{' '}
|
||||
<a href={policyURL}>Read the stability policy</a>
|
||||
</p>
|
||||
</aside>
|
||||
|
||||
<style>
|
||||
.stability {
|
||||
background: color-mix(in srgb, var(--matcha) 12%, var(--base));
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--matcha) 35%, transparent);
|
||||
}
|
||||
|
||||
.stability__text {
|
||||
margin: 0 auto;
|
||||
padding-block: 0.6rem;
|
||||
color: var(--ink);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stability__text strong {
|
||||
color: var(--matcha);
|
||||
}
|
||||
|
||||
.stability__text a {
|
||||
color: var(--matcha);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.stability__text a::after {
|
||||
content: ' →';
|
||||
}
|
||||
</style>
|
||||
@@ -4,7 +4,7 @@
|
||||
const items = [
|
||||
{
|
||||
q: 'Is Green Tea ready for production?',
|
||||
a: `It's beta, on the RC track — the API can still shift between releases. It fits greenfield services, internal tools, and side projects where you own the deploy and can pin versions. If you need a decade of third-party middleware today, stay on Express for now.`,
|
||||
a: `It's a release candidate: the API is frozen, and until stable every release is a fix. It fits greenfield services, internal tools, and side projects where you own the deploy. If you need a decade of third-party middleware today, stay on Express for now.`,
|
||||
},
|
||||
{
|
||||
q: 'Can I drop it into my existing Express app?',
|
||||
@@ -12,7 +12,7 @@ const items = [
|
||||
},
|
||||
{
|
||||
q: 'How does it perform against Express or Fastify?',
|
||||
a: `Performance isn't the pitch — the model is — but there's a reproducible benchmark in the core repo (BENCHMARKS.md), written to be hard on us, not flattering. On a single-box harness green-tea keeps pace with Fastify and runs several times faster than Express, behind only raw Node http. Read the caveats there: it's loopback on one machine, so trust the ratios between frameworks, not the absolute numbers. The graph is topologically sorted once at boot, not per request — you don't pay for it on the hot path.`,
|
||||
a: `Performance isn't the pitch — the model is — but there's a reproducible benchmark in the core repo (BENCHMARKS.md), written to be hard on us, not flattering. On a single-box harness green-tea is level with Fastify on a plain JSON route, a few percent behind it on routing and pipelines, and behind it on validation; it runs about three times faster than Express. Read the caveats there: it's loopback on one machine, so trust the ratios between frameworks, not the absolute numbers. The graph is topologically sorted once at boot, not per request — you don't pay for it on the hot path.`,
|
||||
},
|
||||
{
|
||||
q: 'What will it add to my dependency tree?',
|
||||
@@ -20,11 +20,11 @@ const items = [
|
||||
},
|
||||
{
|
||||
q: 'Is mesh (multi-service) ready to use?',
|
||||
a: `Not yet — mesh is alpha and gated behind an explicit opt-in. Build on the single-service core for now, and treat mesh as a preview, not a foundation.`,
|
||||
a: `Not yet. Mesh is alpha, gated behind an explicit opt-in, and outside the API freeze, so it may change in any release. What does not change is everything around it: mesh adapts to the stable API rather than altering it, so an app that does not use mesh is never affected by a mesh release. Build on the single-service core for now, and treat mesh as a preview, not a foundation.`,
|
||||
},
|
||||
{
|
||||
q: 'What does "beta" mean for breaking changes?',
|
||||
a: `Expect occasional breaking changes on the RC track, called out in the changelog. Pin your version and read the release notes before upgrading, and you won't be surprised.`,
|
||||
q: 'What does the API freeze promise?',
|
||||
a: `From RC.1 to the stable release, nothing in the public API is added, removed or renamed — releases are fixes only, and every API change would have to show up as a diff to the committed API report, which CI checks. After stable, nothing is removed without being deprecated first: at least two monthly releases of notice, a @deprecated tag naming the replacement, and a single warning in your logger. Mesh is experimental and outside the promise.`,
|
||||
},
|
||||
];
|
||||
---
|
||||
@@ -33,7 +33,7 @@ const items = [
|
||||
<div class="wrap faq__inner">
|
||||
<div class="faq__head">
|
||||
<p class="kicker">Straight answers</p>
|
||||
<h2>Questions worth asking about a beta.</h2>
|
||||
<h2>Questions worth asking about a release candidate.</h2>
|
||||
</div>
|
||||
|
||||
<ul class="faq__list">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import logoUrl from '../../assets/logo.svg?url';
|
||||
import Icon from '../Icon.astro';
|
||||
import GraphMotif from '../GraphMotif.astro';
|
||||
---
|
||||
|
||||
@@ -25,15 +26,18 @@ import GraphMotif from '../GraphMotif.astro';
|
||||
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
|
||||
Get started
|
||||
</a>
|
||||
<a class="btn btn--ghost" href="https://github.com/Expressive-Tea/green-tea" target="_blank" rel="noopener noreferrer">
|
||||
GitHub
|
||||
<a class="btn btn--ghost btn--mark" href="https://github.com/Expressive-Tea/green-tea" target="_blank" rel="noopener noreferrer" aria-label="GitHub">
|
||||
<Icon name="github" size={20} />
|
||||
</a>
|
||||
<a class="btn btn--ghost" href="https://www.npmjs.com/package/@green-tea/core" target="_blank" rel="noopener noreferrer">
|
||||
npm
|
||||
<a class="btn btn--ghost btn--mark" href="https://www.npmjs.com/package/@green-tea/core" target="_blank" rel="noopener noreferrer" aria-label="npm">
|
||||
<Icon name="npm" size={20} />
|
||||
</a>
|
||||
<a class="btn btn--ghost btn--mark" href="https://jsr.io/@green-tea/core" target="_blank" rel="noopener noreferrer" aria-label="JSR">
|
||||
<Icon name="jsr" size={20} />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<p class="hero__micro">Beta · Node · Deno · Bun · Edge</p>
|
||||
<p class="hero__micro">Release candidate · API frozen · Node · Deno · Bun · Edge</p>
|
||||
</div>
|
||||
|
||||
<GraphMotif class="hero__motif" width={460} height={400} opacity={0.55} />
|
||||
@@ -101,6 +105,17 @@ import GraphMotif from '../GraphMotif.astro';
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* Square rather than pill: with the text gone the ghost button's horizontal padding left a
|
||||
wide box around a small mark. Equal padding keeps the three the same size whatever the
|
||||
glyph's width. */
|
||||
.btn--mark {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.65rem;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
.hero__ctas {
|
||||
margin-bottom: 1.4rem;
|
||||
}
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
|
||||
<section class="honest">
|
||||
<div class="wrap honest__inner">
|
||||
<h2>Honest: it's beta.</h2>
|
||||
<h2>Honest: it's a release candidate.</h2>
|
||||
|
||||
<p class="honest__body">
|
||||
Express and Fastify have a decade of ecosystem behind them; NestJS has mature enterprise tooling. Green Tea
|
||||
doesn't pretend otherwise. Choose it today because the model fits your application — explicit dependencies,
|
||||
derived execution, inspectable infrastructure, one real-time mental model, and a foundation you don't have to
|
||||
assemble. If your team needs a large plugin catalogue today, that gap is real, and the API can still change
|
||||
before stable.
|
||||
assemble. If your team needs a large plugin catalogue today, that gap is real. What is no longer moving is the
|
||||
API: it is frozen at RC.1, and until stable every release is a fix.
|
||||
</p>
|
||||
|
||||
<form class="subscribe" action="/subscribe.php" method="post">
|
||||
<p class="subscribe__lead">Not ready yet? Get one email when 1.0 ships — nothing else.</p>
|
||||
<p class="subscribe__lead">Not ready yet? Get one email when the stable release ships — nothing else.</p>
|
||||
<div class="subscribe__row">
|
||||
<label class="sr-only" for="sub-email">Email address</label>
|
||||
<input
|
||||
@@ -29,7 +29,7 @@
|
||||
/>
|
||||
<!-- honeypot: real people never fill this -->
|
||||
<input class="subscribe__hp" type="text" name="website" tabindex="-1" autocomplete="off" aria-hidden="true" />
|
||||
<button class="btn btn--primary" type="submit">Notify me at 1.0</button>
|
||||
<button class="btn btn--primary" type="submit">Notify me at stable</button>
|
||||
</div>
|
||||
<p class="subscribe__msg" role="status" aria-live="polite"></p>
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
---
|
||||
// The way into the plugin listing, which is its own build under /plugins (green-tea-marketplace).
|
||||
// The descriptions are each package's own, as the listing shows them. When a plugin is added
|
||||
// there, it does not appear here: this is a sample, and the listing is the index.
|
||||
const plugins = [
|
||||
{ name: '@green-tea/jwt', slug: 'jwt', body: 'Loads JWT signing keys at boot and publishes a sign/verify registry into the graph.' },
|
||||
{ name: '@green-tea/metrics', slug: 'metrics', body: "Counts green-tea's lifecycle events and renders them in the Prometheus text format." },
|
||||
{ name: '@green-tea/rate-limit', slug: 'rate-limit', body: 'A per-request rate limiter with a branded 429 and a swept in-memory store.' },
|
||||
];
|
||||
---
|
||||
|
||||
<section class="plugins section--panel">
|
||||
<div class="wrap">
|
||||
<div class="plugins__head">
|
||||
<p class="kicker">Plugins</p>
|
||||
<h2>Extend it with plugins.</h2>
|
||||
<p class="plugins__lede">
|
||||
A plugin is one object, <code>{ name, mount }</code>, that adds providers and steps to your graph.
|
||||
There are three official ones so far. Each has a page with its README, its versions and the runtimes it
|
||||
supports, and yours can sit next to them.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul class="plugins__grid">
|
||||
{
|
||||
plugins.map((plugin) => (
|
||||
<li class="plugins__card">
|
||||
<a href={`/plugins/${plugin.slug}/`}>
|
||||
<h3>{plugin.name}</h3>
|
||||
<p>{plugin.body}</p>
|
||||
</a>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ul>
|
||||
|
||||
<div class="btn-row plugins__ctas">
|
||||
<a class="btn btn--primary" href="/plugins/">Browse plugins</a>
|
||||
<a class="btn btn--ghost" href="/plugins/#contribute">List yours</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.plugins__head {
|
||||
max-width: 52ch;
|
||||
margin: 0 auto 3rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.plugins__head h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.plugins__lede {
|
||||
margin: 1rem 0 0;
|
||||
color: var(--dim);
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.plugins__grid {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.plugins__card a {
|
||||
display: block;
|
||||
height: 100%;
|
||||
padding: 1.75rem;
|
||||
background: var(--base);
|
||||
border: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
|
||||
border-radius: 12px;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.plugins__card a:hover,
|
||||
.plugins__card a:focus-visible {
|
||||
border-color: var(--matcha);
|
||||
}
|
||||
|
||||
.plugins__card h3 {
|
||||
color: var(--matcha);
|
||||
font-size: 0.98rem;
|
||||
margin-bottom: 0.5em;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.plugins__card p {
|
||||
margin: 0;
|
||||
color: var(--dim);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.plugins__ctas {
|
||||
justify-content: center;
|
||||
margin-top: 2.5rem;
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.plugins__grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -19,7 +19,7 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
|
||||
|
||||
<p class="runs__micro">
|
||||
Your product code shouldn't have to care which runtime won this year. <span class="runs__caveat"
|
||||
>(The edge has no filesystem or mesh, so those features stay on the server runtimes.)</span
|
||||
>(The edge has no filesystem or mesh, so those features stay on the server runtimes. Native TLS is Node's; on Deno, Bun and the edge, terminate TLS in the runtime or a proxy.)</span
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
---
|
||||
title: "I audited my own release candidate, and it had nine problems"
|
||||
description: "26.11.0-rc.2 fixes nine security issues an audit found in 26.11.0-rc.1 before anything was called stable. What they were, who they reach, and how to upgrade."
|
||||
pubDate: 2026-11-23
|
||||
author: "Diego Reséndez"
|
||||
tags: ["green-tea", "security", "release"]
|
||||
---
|
||||
|
||||
RC.1 froze green-tea's API. The next thing I did was the thing I should do before any release
|
||||
called *stable*: sit down and try to break it, from every side I could think of. Security,
|
||||
stability under load, release engineering, the mesh.
|
||||
|
||||
It broke in nine places. `26.11.0-rc.2` fixes all of them, and this post is the list.
|
||||
|
||||
## Who should upgrade
|
||||
|
||||
Everyone on `26.11.0-rc.1` or any `26.x` beta. There is no patched beta: the fixes ship only in
|
||||
`26.11.0-rc.2`, so a beta user also crosses RC.1's breaking changes. The
|
||||
[What's new](/docs/whats-new/) page and the CHANGELOG list them.
|
||||
|
||||
```bash
|
||||
npm install @green-tea/core@rc
|
||||
```
|
||||
|
||||
On Deno, `jsr:@green-tea/core@26.11.0-rc.2`. The official plugins moved with it: `@green-tea/jwt`,
|
||||
`metrics` and `rate-limit` are 26.11.0-rc.2 on JSR and accept any core from `^26.11.0-rc.2`.
|
||||
|
||||
## The nine advisories
|
||||
|
||||
| Advisory | Severity | What was wrong | Reaches you if |
|
||||
|---|---|---|---|
|
||||
| [GHSA-p697-fpqx-pgf3](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-p697-fpqx-pgf3) | High | WebSocket upgrades never checked `Origin`, so another site could open a socket with your user's cookies | you have `@Ws` routes authenticated by cookie |
|
||||
| [GHSA-235j-fx64-w9p9](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-235j-fx64-w9p9) | Medium | an SSE or NDJSON source that threw sent its raw error message to the client | you stream, and errors can carry internal text |
|
||||
| [GHSA-53g8-83jp-gvw4](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-53g8-83jp-gvw4) | Medium | with `trustProxy`, `ctx.ip` was the `X-Forwarded-For` entry the client wrote | you use `trustProxy` and IP-based limits or logs |
|
||||
| [GHSA-fccm-q62j-48hr](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-fccm-q62j-48hr) | Medium | `cors: { origins: '*', credentials: true }` echoed every origin with credentials | you set that combination |
|
||||
| [GHSA-g96c-wq2v-87vc](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-g96c-wq2v-87vc) | Medium | on Node, slow-header sockets and dead WebSocket peers held connection slots far too long | your Node server faces clients without a proxy |
|
||||
| [GHSA-hjcj-hr8v-rfg4](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-hjcj-hr8v-rfg4) | Medium | `static` served dotfiles such as `/.env` | a dotfile sits in your public root |
|
||||
| [GHSA-4q43-x4fp-c273](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-4q43-x4fp-c273) | Medium | a mesh teapot ran unexported methods on an exported route pattern | you run the experimental mesh |
|
||||
| [GHSA-gm9h-7577-x57w](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-gm9h-7577-x57w) | Low | a mesh step's internal error text reached the end client | you run the experimental mesh |
|
||||
| [GHSA-g86h-3r98-qm66](https://github.com/Expressive-Tea/green-tea/security/advisories/GHSA-g86h-3r98-qm66) | Low | five small ones: template re-scan, `__proto__` form keys, inherited decorator keys, decoded `%2F` in params, `X-Forwarded-Proto` on Deno and Bun | see the advisory |
|
||||
|
||||
## What behaves differently
|
||||
|
||||
Most of the security fixes change nothing you would notice. Five do, and they are in the
|
||||
[CHANGELOG](https://github.com/Expressive-Tea/green-tea/blob/main/CHANGELOG.md) along with two smaller
|
||||
changes: `channel()` now buffers 1024 values per subscriber by default, and `/__ready__` no longer
|
||||
lists degraded provider names. [What's new](/docs/whats-new/) has a table of who each change
|
||||
affects and what to do.
|
||||
|
||||
- **A cross-site WebSocket upgrade gets `403`.** An upgrade with an `Origin` must come from the same
|
||||
host or from an origin in `cors.origins`. Clients that send no `Origin`, such as servers and CLIs,
|
||||
are unaffected. Behind a proxy that rewrites `Host`, add your public origin to `cors.origins`.
|
||||
- **`ctx.ip` is the right-most `X-Forwarded-For` entry**, the one your proxy appended. Behind a chain
|
||||
of proxies it is now the address the last one saw.
|
||||
- **`origins: '*'` with `credentials: true` fails `createApp`.** If you really mean every site, say it
|
||||
as a predicate: `origins: () => true`. This one is breaking, on purpose.
|
||||
- **A failed stream ends with `Internal Server Error`** unless you threw an `HttpError`, the same as a
|
||||
buffered route.
|
||||
- **`static` answers `404` for dotfiles**, except under `/.well-known/`.
|
||||
|
||||
## Why now, and not after stable
|
||||
|
||||
Because finding these is what the RC is for. The API freeze promised that nothing would move between
|
||||
RC.1 and stable except fixes, and every one of these is a fix: none adds, removes or renames an API.
|
||||
The one that refuses a configuration at boot is called out as breaking, and I would rather break a
|
||||
config that hands your users' cookies to every site than keep it working.
|
||||
|
||||
The same audit found the other half of what "stable" means: a release that could not be staged, a
|
||||
support policy that did not exist, a version scheme that let `npm install` pull in a breaking change.
|
||||
Those are fixed too. After stable, **only the first release of a year can break**, so the `^` range
|
||||
npm writes for you is safe within a year, and the
|
||||
[support table](https://github.com/Expressive-Tea/green-tea/blob/main/SECURITY.md#supported-versions)
|
||||
says which releases get fixes, and for how long.
|
||||
|
||||
## The mesh, on the way to beta
|
||||
|
||||
The mesh stays experimental, but `26.11.0-rc.2` takes it most of the way to a beta: a teapot reached over
|
||||
`ws://` from another machine is refused unless you opt in, mesh on the edge fails with an error that
|
||||
says so, a remote step runs only what it needs, and there is a [runnable demo](/docs/guides/mesh/)
|
||||
of one REST API split across two processes, with the teapot killed and brought back.
|
||||
|
||||
If you find something I missed, [SECURITY.md](https://github.com/Expressive-Tea/green-tea/blob/main/SECURITY.md)
|
||||
says how to tell me privately.
|
||||
@@ -1,133 +0,0 @@
|
||||
---
|
||||
title: "Green Tea 26.8.0-beta.1: you can see what it's doing"
|
||||
description: "A correlated event stream and an injectable logger, shutdown as an extension point instead of a SIGTERM handler you write yourself, and one routing behaviour change that ends a difference between runtimes."
|
||||
pubDate: 2026-08-19
|
||||
author: "Diego Reséndez"
|
||||
tags: ["green-tea", "release", "observability", "shutdown"]
|
||||
draft: true
|
||||
---
|
||||
|
||||
The last release made the router stop guessing. This one makes the framework stop being quiet.
|
||||
|
||||
Green Tea `26.8.0-beta.1` closes the gap a team hits in week one of a real evaluation: until now you could run an
|
||||
application on this framework and have no idea what it was doing. That was written down as a known gap. It isn't one
|
||||
any more.
|
||||
|
||||
## Every request has an identity, and every event carries it
|
||||
|
||||
Core emits a correlated lifecycle event stream. Each request gets an id — if a gateway already sent an
|
||||
`x-request-id`, that one is adopted rather than replaced — and every event of that request carries it, alongside the
|
||||
matched route **pattern** rather than the concrete URL, so `/users/:id` aggregates instead of exploding into a
|
||||
million distinct strings. Each step reports its own duration.
|
||||
|
||||
```ts
|
||||
const app = createApp({ modules: [AppModule], logger: myLogger, logRequests: true });
|
||||
```
|
||||
|
||||
The logger is any object with `debug`, `info`, `warn` and `error`. Given none, the default writes JSON, or a
|
||||
readable line when it is attached to a TTY. **Nothing in core writes to `console`** — that is enforced by a lint rule
|
||||
over the whole source tree, not by intention — so every diagnostic the framework produces is something your
|
||||
application can redirect.
|
||||
|
||||
What is deliberately *not* here: no metrics registry, no OpenTelemetry exporter. Core keeps one runtime dependency,
|
||||
and an exporter is a package, not a framework feature. A `traceparent` header is carried through untouched for one
|
||||
to read. Green Tea ships an observability contract, not an observability integration.
|
||||
|
||||
The cost was measured rather than assumed: about 7% of the framework's own per-request work, which is roughly 2%
|
||||
once a real socket is involved.
|
||||
|
||||
## Shutdown is somewhere you can hook into
|
||||
|
||||
Closing what your application opened no longer means writing `process.on('SIGTERM', …)` yourself.
|
||||
|
||||
```ts
|
||||
@Provider({ provides: 'db' })
|
||||
class Db {
|
||||
provide() { return { db: this.#pool }; }
|
||||
async dispose() { await this.#pool.end(); }
|
||||
}
|
||||
```
|
||||
|
||||
A provider that opened a pool closes it in `dispose()`. A plugin registers `onShutdown`. An application that wants
|
||||
neither passes `createApp({ hooks })`. All three land in one registry, all three are **awaited** — unlike a bus
|
||||
listener, which is fire-and-forget — and they run in reverse boot order, so a `cache` that needs `db` closes before
|
||||
the `db` does. A failure is logged and the rest still run, because one broken teardown must not leave a process up.
|
||||
|
||||
It happens inside `close()`'s deadline, so a slow teardown cannot hold a deploy open, and
|
||||
`createApp({ teardownTimeoutMs })` reserves part of that budget when a connection has to get its chance. On the edge
|
||||
none of it applies — workerd has no shutdown to hook, and saying so is better than pretending otherwise.
|
||||
|
||||
## One behaviour change worth reading before you upgrade
|
||||
|
||||
**`.` and `..` in a request path now resolve instead of returning 404.** `GET /public/../admin` reaches a route
|
||||
declared as `/admin`, and `%2e` counts as a dot.
|
||||
|
||||
This changes Node only, and it exists to end a difference rather than to be lenient. Deno, Bun and Workers resolve
|
||||
dot segments inside the `Request` constructor, before the framework sees anything — so the same bytes on the wire
|
||||
were already reaching different routes depending on where you deployed. Rejecting instead was not implementable on
|
||||
three of the four runtimes, so Node converged on resolving.
|
||||
|
||||
If a proxy or WAF in front of your application matches on the literal path, it now sees something different from
|
||||
what the application routes. That is worth ten minutes of your attention before you deploy this.
|
||||
|
||||
## Smaller things you may have been waiting for
|
||||
|
||||
- **`createApp({ shutdownTimeoutMs })`** sets the shutdown deadline app-wide, for when `close()` is reached from a
|
||||
signal handler you do not own.
|
||||
- **`limits.maxConnections`** caps concurrent sockets on Node, which was previously unbounded. Non-positive values
|
||||
leave it unlimited.
|
||||
- **A bounded `close()` on the Deno and Bun adapters.** One difference the deadline cannot hide: Node and Bun force
|
||||
the remainder shut, Deno cannot — there the deadline bounds how long `close()` waits, not when connections die.
|
||||
- **The documentation moved to its own repository**, so a docs fix no longer waits on a framework release.
|
||||
|
||||
## Mesh got a hard look, and stays alpha
|
||||
|
||||
Mesh — resolving a dependency that physically lives on another node — is the part of green-tea
|
||||
nothing else has. It is also the part nobody has run in anger, so this release went looking for what
|
||||
that meant in practice. It found plenty.
|
||||
|
||||
**A dropped link never came back.** There was no reconnection at all: once a teapot went away, that
|
||||
link was dead for the life of the process, so deploying a teapot forced a restart of every teacup
|
||||
depending on it and boot order became load-bearing. Links now reconnect with backoff, and a teapot
|
||||
that returns exporting *less* than the graph was validated against is refused rather than adopted —
|
||||
serving against a manifest that no longer backs your graph produces a 500 that looks like your code.
|
||||
|
||||
**A request lost its identity at the process boundary.** The observability work above gives every
|
||||
request an id; the moment it crossed to another node, the far side opened a new one. It now carries
|
||||
across, and the teapot adopts it, so one request that spans two machines is one trace.
|
||||
|
||||
**Exporting a database connection answered `200` with `{}`.** The wire is JSON, so a value with
|
||||
methods lost everything but its shape, arrived truthy and empty, and failed as
|
||||
`db.query is not a function` somewhere else entirely. A teapot now refuses to send one, naming what
|
||||
sat where. The rule this makes explicit was never written down: **a mesh export carries data, never
|
||||
behaviour** — export what a handle produces, not the handle.
|
||||
|
||||
Also: the boot now waits out a teapot that is merely slow to start, and the control channel bounds
|
||||
what an unauthenticated peer can do — it had neither a handshake deadline nor a limit on the size of
|
||||
a frame it would parse.
|
||||
|
||||
**None of that moves mesh out of alpha, and finding it is the reason.** The label is not a statement
|
||||
about the code — the protocol is versioned, the secret is compared in constant time, ambiguous routes
|
||||
fail the boot. It is a statement about how much we know, and what a day of looking added to that was
|
||||
mostly *here is another thing distributed systems do*. It stays behind `experimental: true` until
|
||||
somebody runs it with two real services and tells us what broke.
|
||||
|
||||
## Thank you
|
||||
|
||||
Two people shipped code in this release.
|
||||
|
||||
**[@YxnnXriel](https://github.com/YxnnXriel)** contributed the timeout on `app.close()`. Every shutdown deadline
|
||||
above is built on it — the app-wide option, the bounded adapters, the teardown budget. Before it, one stuck handler
|
||||
could hold a deploy open indefinitely.
|
||||
|
||||
**[@hgshreyas](https://github.com/hgshreyas)** contributed the concurrent connection limit. Node's socket count was
|
||||
unbounded, which meant the framework had no answer at all to load it could not serve.
|
||||
|
||||
There is more on this in a longer post, because "thanks to our contributors" is worth nothing next to a sentence
|
||||
someone can point at.
|
||||
|
||||
## Still beta
|
||||
|
||||
The API can still change before stable, mesh is still alpha, and the plugin ecosystem is still one person. The
|
||||
freeze belongs to the release candidate — and freezing the API before observability landed would have frozen a
|
||||
framework still missing its contract.
|
||||
@@ -0,0 +1,138 @@
|
||||
---
|
||||
title: "The release where I found out what I had shipped"
|
||||
description: "A second registry I announced that did not work, three ways your own code could take the process down, and the two improvements my benchmark was too small to see."
|
||||
pubDate: 2026-09-04
|
||||
author: "Diego Reséndez"
|
||||
tags: ["green-tea", "release", "performance", "reliability"]
|
||||
draft: false
|
||||
---
|
||||
|
||||
The last release gave green-tea a way to say what it was doing. This one is mostly about what I saw once it could.
|
||||
|
||||
`26.9.0-beta.1` is out on npm and JSR. It has one contributed feature, a handful of things you may have been
|
||||
waiting for, and four corrections that exist because looking properly turned up problems that announcing loudly had
|
||||
not.
|
||||
|
||||
## The second registry I announced did not work
|
||||
|
||||
In August I wrote that green-tea now publishes to JSR as well as npm. That was true. What I did not check is
|
||||
whether anyone could use it.
|
||||
|
||||
JSR serves `src/` rather than the tsup build. My ESM build had extensionless relative imports — fine for a bundler,
|
||||
fine for Node's resolution of a built package, and not something Deno will resolve. So `jsr:@green-tea/core`
|
||||
installed and then failed on the first import. The npm package was fine the whole time, which is exactly why I did
|
||||
not notice: every test I ran, and every runtime suite in CI, went through the built artifact.
|
||||
|
||||
It works now, and what actually fixed it was not the import rewrite. It was adding `deno publish --dry-run` to the
|
||||
release workflow, before the npm publish, so JSR's checks — slow types, module analysis, things npm never looks at —
|
||||
run while there is still something to do about them. Learning about them after npm has published leaves a version
|
||||
half-shipped, and JSR versions are permanent.
|
||||
|
||||
I would rather tell you the registry was broken for two weeks than have you discover it in an evaluation.
|
||||
|
||||
## Three ways your own code could take the process down
|
||||
|
||||
The lifecycle stream from the last release is what made these findable. All three are the same shape: green-tea
|
||||
called something you gave it, and did not consider that it might throw.
|
||||
|
||||
A `cors.origins` predicate runs per request. If yours threw — a malformed header, a regex on a value you did not
|
||||
expect — the exception escaped into the request pipeline and the process went with it. A custom `onError` had the
|
||||
same problem, and worse timing: the handler you wrote to keep a bad request from becoming an outage was itself an
|
||||
outage. It now falls back to the built-in renderer and reports the failure, rather than losing the response.
|
||||
|
||||
The third is Node's connection cap. Reaching `maxConnections` destroyed the socket with no HTTP response and said
|
||||
nothing at all, which from the client's side is indistinguishable from a network fault. It logs a warning naming
|
||||
the dropped peer now, rate-limited to one a minute.
|
||||
|
||||
None of these were reported. They came from reading the code with a specific question, which is the same way the
|
||||
mesh defects turned up in August. I am starting to think that is the only way I find anything.
|
||||
|
||||
## Your app boots in its longest chain, not the sum of it
|
||||
|
||||
Boot walked the topological order one provider at a time. Three providers that need nothing from each other, 200 ms
|
||||
of work each, took **616 ms** — the sum. They now boot concurrently and take **210 ms**, which is the longest one
|
||||
plus overhead.
|
||||
|
||||
The framework already computed the dependency graph. Booting the independent nodes together was not a new idea so
|
||||
much as noticing that the information had been sitting there since the beginning. That is the second release in a
|
||||
row where the fix was using something the graph already knew, and I do not think that is a coincidence: I keep
|
||||
building the structure and then forgetting to ask what else it can answer.
|
||||
|
||||
The saving scales with how wide your graph is, so a small application will see very little, and an application with
|
||||
a dozen independent providers will see most of its boot time disappear.
|
||||
|
||||
## The two improvements my benchmark was too small to see
|
||||
|
||||
Route matching is a linear scan. I have said so in the README for months, and three separate attempts to improve it
|
||||
measured as *nothing*.
|
||||
|
||||
They measured as nothing because the benchmark used **six routes**. Every matcher cost scales with how many
|
||||
candidates a request walks past, and at six there is nothing to walk past. Specificity ranking, a per-candidate
|
||||
`decodeURIComponent`, settling the ranking at build time — all three were real, and all three sat below the
|
||||
resolution of the instrument I was using to judge them.
|
||||
|
||||
`npm run bench:compare` now carries 50- and 200-route cases. The same change that measured as noise measures as
|
||||
this:
|
||||
|
||||
| route table | Δ |
|
||||
|---|---|
|
||||
| 6 routes | nothing — every row overlaps |
|
||||
| 50 routes | +3.3%, +3.5% across two runs |
|
||||
| 200 routes | **+14.9%, +12.0%** — twelve rounds, not one crossing sample |
|
||||
|
||||
Route ranking is now settled when the route table is built rather than recomputed per request, and security and
|
||||
CORS headers are computed once instead of twice. Neither is visible on a six-route table either.
|
||||
|
||||
The lesson I actually take from this is not about the router. It is that I spent months believing an optimisation
|
||||
did not matter because I could not measure it, when what I could not measure was my own test.
|
||||
|
||||
## A budget, not a cap
|
||||
|
||||
`createApp({ limits: { maxConcurrentRequests } })` bounds how many handlers run at once, per server and per Fetch
|
||||
adapter. Over the budget a request gets `503` with `Retry-After: 1` rather than queueing behind whatever is already
|
||||
running.
|
||||
|
||||
It counts *executing handlers*, not open connections — so a long-lived SSE stream or a WebSocket upgrade does not
|
||||
hold a slot for its lifetime, and on Node a client disconnect releases one early. A handler that never returns keeps
|
||||
its slot forever, which is the honest behaviour for a budget of this shape rather than a bug I am hiding in a
|
||||
paragraph.
|
||||
|
||||
This one is not mine. [@hgshreyas](https://github.com/hgshreyas) wrote it, across two issues and two pull requests,
|
||||
on a project with no stars and no promise that anyone would review it. The second most useful thing in this release
|
||||
was written by someone who did not have to.
|
||||
|
||||
## Smaller things you may have been waiting for
|
||||
|
||||
`createApp({ handleSignals: true })` registers `SIGINT` and `SIGTERM` to close and exit. Off by default, and that is
|
||||
the design rather than caution — a library that installs process-wide handlers without being asked is a library
|
||||
that fights your process manager.
|
||||
|
||||
`@Sse` can emit an `id:`, so an `EventSource` reconnect has a `Last-Event-ID` to resume from. Without it every
|
||||
automatic reconnect rebuilt the stream from the start and lost the gap silently, which removes most of the reason to
|
||||
choose SSE over a raw WebSocket.
|
||||
|
||||
The extension-point *types* are exported now, not just the extension points. `TransformerFn` could not be imported,
|
||||
so a custom transformer had its shape redeclared inline or borrowed off a value with `typeof`. Checking the barrel
|
||||
for the same oversight found four more: `PluginApi`, `ScopeApi`, `ScopeNode`, `Hooks` and `TeardownFn`.
|
||||
|
||||
And every `request:end` is now preceded by a `request:start` carrying the same `requestId`, which is what makes the
|
||||
stream something you can build a collector on rather than something you can only log.
|
||||
|
||||
## Where this leaves the beta
|
||||
|
||||
The graph is settled. `createApp`'s options and the plugin API still move — and the plugin API is where I am going
|
||||
next, because it is public, documented, and has exactly zero plugins written against it. Mesh is still alpha and
|
||||
still frozen.
|
||||
|
||||
I am not freezing the API in a release whose main lesson was that I could not see what I had shipped.
|
||||
|
||||
## Try it
|
||||
|
||||
```sh
|
||||
npm install @green-tea/core@beta reflect-metadata
|
||||
```
|
||||
|
||||
Everything above, as a list rather than a story, is on the
|
||||
[`26.9.0-beta.1` release](https://github.com/Expressive-Tea/green-tea/releases/tag/v26.9.0-beta.1).
|
||||
|
||||
That's the tea. 🍵
|
||||
@@ -0,0 +1,128 @@
|
||||
---
|
||||
title: "The release where I took my own advice"
|
||||
description: "Two breaking changes, one keyword each, both fixing the same thing: places where green-tea asked you to remember an order. Plus the benchmark claim my README carried for two months while the benchmark said otherwise."
|
||||
pubDate: 2026-09-23
|
||||
author: "Diego Reséndez"
|
||||
tags: ["green-tea", "release", "runtimes", "benchmarks"]
|
||||
draft: false
|
||||
---
|
||||
|
||||
The argument for green-tea is that order should not be something you have to get right. You declare what a step
|
||||
needs and what it provides, and the framework works out what runs when. No `app.use()` in the correct sequence, no
|
||||
wondering which middleware already touched the body.
|
||||
|
||||
`26.9.0-beta.2` is out on npm and JSR. Both of its breaking changes exist because I had shipped two places where
|
||||
that argument did not apply to my own code.
|
||||
|
||||
## The port that bound anyway
|
||||
|
||||
If you serve on Deno or Bun, you wrote this:
|
||||
|
||||
```ts
|
||||
const server = serveDeno(app, { port });
|
||||
```
|
||||
|
||||
And `serveDeno` did not boot your app. It bound the port and waited, and the providers ran on the first request that
|
||||
arrived. The documented fix — on my own docs page, in a table I wrote — was to remember `await app.boot()` first.
|
||||
|
||||
Think about what that meant if you forgot. A missing signing key is not a failed deploy: the boot result is
|
||||
memoized, rejection included, so the port opens, every request gets a 500 from the runtime, and not one of them
|
||||
reaches your `onError`. Your logs are empty because the failure never entered the framework's error path. Your
|
||||
health check passes, because something *is* listening on that port. The process looks fine and serves nothing.
|
||||
|
||||
That is precisely the class of bug this project exists to delete, and I had put it in a core helper and then
|
||||
written a paragraph asking you to work around it. A framework that says order is not your problem should not ship
|
||||
an entry point whose correct use depends on you having read a page.
|
||||
|
||||
They boot before they bind now. Migration is one keyword:
|
||||
|
||||
```diff
|
||||
- const server = serveDeno(app, { port });
|
||||
+ const server = await serveDeno(app, { port });
|
||||
```
|
||||
|
||||
Both runtimes have top-level `await`, so a module that serves at import time needs nothing else, and the value you
|
||||
get back is unchanged. A provider that cannot start now fails your deploy, where you will see it.
|
||||
|
||||
`edgeHandler` is deliberately untouched. On workerd there is no startup outside a request — there is no earlier
|
||||
moment to move the failure to, so pretending otherwise would be decoration.
|
||||
|
||||
## The event that reported nothing
|
||||
|
||||
The second one is smaller and the same shape. A plugin was a function, and `plugin:mounted` — the event whose
|
||||
entire job is to tell you which plugins mounted — took the name from `fn.name`. That is `""` for an arrow returned
|
||||
by a factory, which is how every plugin I have written is built. `"plugin"` for a `const`. Whatever survives a
|
||||
minifier, in production.
|
||||
|
||||
So the observability event for plugins named none of them. A plugin is a named object now:
|
||||
|
||||
```diff
|
||||
- const jwt = (options) => ({ scope }) => { scope.add(node); };
|
||||
+ const jwt = (options) => ({
|
||||
+ name: options.provides ?? 'jwt',
|
||||
+ mount({ scope }) { scope.add(node); },
|
||||
+ });
|
||||
```
|
||||
|
||||
The name is the author's word rather than a compiler artifact, a failed mount reads
|
||||
`plugin "jwt" failed to mount: …` with the original error as its `cause`, and two plugins claiming the same name
|
||||
fail `createApp` instead of quietly shadowing each other.
|
||||
|
||||
I am keeping this short on purpose. There is a plugin marketplace coming, and the interesting half of this story —
|
||||
what a plugin ecosystem needs from a contract before strangers start publishing into it — belongs in that post
|
||||
rather than this one.
|
||||
|
||||
`app.boot()` is public now too, for when you drive `app.fetch` from a server you own. And errors are recognised by
|
||||
a brand rather than `instanceof`, so an `Unauthorized` thrown by a plugin holding its own copy of core stops
|
||||
rendering as a `500`. Mesh, still alpha, stopped pretending a provider could cross a wire. The
|
||||
[changelog](https://github.com/Expressive-Tea/green-tea/blob/main/CHANGELOG.md) has all of it.
|
||||
|
||||
## The number I had been repeating for two months
|
||||
|
||||
Now the part I did not enjoy writing.
|
||||
|
||||
Since 7 July my README had said green-tea handled more requests per second than every other framework in three of
|
||||
four benchmark scenarios. `BENCHMARKS.md` — the file that sentence linked to, one click away — had stopped saying
|
||||
that at some point over the following two months. Fastify rows had moved. NestJS-on-Fastify had been added. Parity
|
||||
controls had been tightened. Nobody re-read the sentence, because a claim written into prose is not something
|
||||
anyone re-measures.
|
||||
|
||||
I found it while regenerating the tables for this release, which is the only reason I found it at all.
|
||||
|
||||
Then it got worse, in an interesting way. I re-ran the suite on my laptop and green-tea came out *ahead* of Fastify
|
||||
in three of four — the exact claim I was about to delete, apparently vindicated. It would have been very easy to
|
||||
keep the sentence and move on.
|
||||
|
||||
Except green-tea had not moved. Its four numbers were within 1% of the run three weeks earlier. What had moved was
|
||||
Fastify, down 7%, and when I lined the deltas up against the order the frameworks run in, they tracked position
|
||||
rather than code: measured second, down 7%; measured last, up. A browser and the window server were taking about
|
||||
60% of the machine the whole time. The "win" was my laptop being busy.
|
||||
|
||||
I re-ran it on an idle box instead. Coefficient of variation dropped from 4–6% to 0.1–1.3%, and the honest shape
|
||||
came back: green-tea sits behind Fastify on the JSON, routing and pipeline scenarios, ahead of it on
|
||||
POST-plus-validation, and roughly 2.8× ahead of Express. That shape reproduced on two very different CPUs. How far
|
||||
behind did not — 2–8% on one machine, 7–15% on the other — which is why the README no longer quotes a percentage
|
||||
at all and points at the table instead.
|
||||
|
||||
There is a separate question a release has to answer, and comparing this week's numbers against a table from three
|
||||
weeks ago cannot answer it: *did these commits cost anything?* For that I run both trees on one box in one sitting,
|
||||
alternating which side goes first. Ten cases. Nine overlapped, which is the result you want — the breaking changes
|
||||
are boot-time work and none of it reached the per-request path.
|
||||
|
||||
The tenth came out **+4.3% in green-tea's favour**, with the two sides' sample ranges not overlapping at all. A
|
||||
real-looking win. It had no mechanism — the only change that could produce it would have to show up even more
|
||||
clearly at 200 routes, and that row said +0.1% — so I re-ran that case alone with seven rounds instead of three.
|
||||
**+0.5%, overlapping.** It was chance, and it is written into `BENCHMARKS.md` as chance.
|
||||
|
||||
I want to be clear about why I chased a result that flattered me. A benchmark is for measuring, not for producing a
|
||||
line to put on a homepage. An unexplained gain deserves the same suspicion as an unexplained loss, and usually
|
||||
means the benchmark stopped measuring what it claims — a route that started 404ing, a server that booted with the
|
||||
wrong config. A fast number that is wrong is the worst possible outcome, precisely because it looks like good news.
|
||||
|
||||
Two of the three problems in this post were things I had written down and then stopped reading: a table I told you
|
||||
to remember, and a sentence I never re-measured. The code was not the hard part.
|
||||
|
||||
---
|
||||
|
||||
`npm i @green-tea/core@beta` — or `deno add jsr:@green-tea/core`. It is still beta, still one person's spare time,
|
||||
and the [docs](https://green-tea.expressive-tea.io/docs/) describe this release.
|
||||
@@ -4,7 +4,7 @@ description: "What it took to make green-tea operable: an observability contract
|
||||
pubDate: 2026-08-19
|
||||
author: "Diego Reséndez"
|
||||
tags: ["green-tea", "story", "observability", "contributors"]
|
||||
draft: true
|
||||
draft: false
|
||||
---
|
||||
|
||||
There is a difference between a framework you can demo and a framework you can run, and for most of this year
|
||||
@@ -15,7 +15,7 @@ requires. That part works and I still think it is the right idea. But when someo
|
||||
serious evaluation asks in week one — *what is it doing in production?* — the honest answer was: I don't know, and
|
||||
neither will you.
|
||||
|
||||
This release is about that gap and the two others hiding behind it.
|
||||
`26.8.0-beta.1` is about that gap and the two others hiding behind it.
|
||||
|
||||
## "No observability layer" was a sentence in my README for months
|
||||
|
||||
@@ -148,9 +148,12 @@ Both of them are still working on things. One of those pull requests is currentl
|
||||
of plumbing that does not exist yet, and telling a contributor "your change is right, the missing part is mine" is a
|
||||
better use of a review than asking them to work around it.
|
||||
|
||||
If you are looking for somewhere to start: unassigned issues are genuinely free, the contributing guide covers the
|
||||
branch model and the sign-off, and a maintainer will write the documentation change if you would rather not. Being
|
||||
early costs something. I would rather say thank you in a way that names what you built than in a badge.
|
||||
If you are looking for somewhere to start, the honest answer today is that both open issues are already spoken
|
||||
for — I would rather tell you that than have you find out after cloning. So open one instead. Whatever annoyed you
|
||||
in the first ten minutes is usually a real bug, and I have yet to receive a report that was not worth having. The
|
||||
contributing guide covers the branch model and the sign-off, and if you would rather not write the documentation
|
||||
change, say so and I will. Being early costs something. I would rather say thank you in a way that names what you
|
||||
built than in a badge.
|
||||
|
||||
## Where this leaves the beta
|
||||
|
||||
@@ -158,4 +161,13 @@ The graph is settled. The plugin API and `createApp`'s options still move. Mesh
|
||||
belongs to the release candidate, and freezing it before this release would have frozen a framework that still could
|
||||
not tell you what it was doing.
|
||||
|
||||
## Try it
|
||||
|
||||
```sh
|
||||
npm install @green-tea/core@beta reflect-metadata
|
||||
```
|
||||
|
||||
Everything above, in the form of a list rather than a story, is on the
|
||||
[`26.8.0-beta.1` release](https://github.com/Expressive-Tea/green-tea/releases/tag/v26.8.0-beta.1).
|
||||
|
||||
That's the tea. 🍵
|
||||
@@ -0,0 +1,53 @@
|
||||
---
|
||||
title: "Where I went, and why RC.1 took longer"
|
||||
description: "Two months of quiet: more work at my job, autistic burnout, and a record that was overdue. RC.1 is out now, and the wait was on purpose."
|
||||
pubDate: 2026-11-17
|
||||
author: "Diego Reséndez"
|
||||
tags: ["green-tea", "personal", "release"]
|
||||
---
|
||||
|
||||
The last post here went up on September 23, with beta.2. RC.1 was supposed to follow in October.
|
||||
It came out today instead, as `26.11.0-rc.1` on npm and JSR. That gap deserves an explanation, so
|
||||
here it is.
|
||||
|
||||
## My job needed more of me
|
||||
|
||||
Green Tea gets built in the hours my job leaves free. This autumn the workload there went up, and
|
||||
those hours went with it. Nothing dramatic. There was just less time, and less of me left at the
|
||||
end of the day to spend on a framework.
|
||||
|
||||
## Autistic burnout
|
||||
|
||||
This is the harder part to write. I'm autistic, and when the load stays high for long enough I hit
|
||||
a kind of burnout that a weekend off doesn't fix. Things that are normally easy, like opening the
|
||||
editor or reading an issue, start costing more than I have. What works for me is stepping back for
|
||||
a while.
|
||||
|
||||
Being the only developer on Green Tea makes that complicated. There's no one to hand the work to,
|
||||
so when I stop, the project stops. I decided to accept that. I don't want to build a framework that
|
||||
ships on schedule because its maintainer pushed through burnout, and I wouldn't ask anyone to
|
||||
depend on one.
|
||||
|
||||
## The No Names Sound Machine
|
||||
|
||||
The rest of the time went into my music project, [The No Names Sound Machine](https://thenonames.org/en/),
|
||||
which was overdue for a release. Yes, yes, there's probably some AI slop in my soup. If you
|
||||
want to listen anyway, it's on the site, or find it on Spotify, or wherever you get your music.
|
||||
|
||||
## Why I didn't just ship it
|
||||
|
||||
I could have pushed a tag at any point and called it a release candidate. But an RC only means
|
||||
something if the API has actually stopped moving, so the freeze had to be real before the tag
|
||||
went out.
|
||||
|
||||
So here is what RC.1 promises. The public API of `@green-tea/core`, `/deno`, `/bun` and `/edge` is
|
||||
frozen. From now until stable, releases are fixes only: nothing gets added, removed, renamed or
|
||||
narrowed. That isn't a promise you have to take on trust. Every entry point has a committed API
|
||||
report, and CI fails when the code drifts from it. Mesh is still experimental and stays outside the
|
||||
promise. The full policy is on the [stability page](https://green-tea.expressive-tea.io/docs/stability/).
|
||||
|
||||
## What happens now
|
||||
|
||||
Fixes until stable, at a pace I can sustain. Development has also moved into the open: it happens
|
||||
on [GitHub](https://github.com/Expressive-Tea/green-tea) now, so issues and pull requests go there.
|
||||
If something in RC.1 breaks for you, that's the place to say so.
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
import Header from '../components/Header.astro';
|
||||
import Footer from '../components/Footer.astro';
|
||||
import StabilityBanner from '../components/StabilityBanner.astro';
|
||||
import '../styles/global.css';
|
||||
|
||||
type OpenGraphType = 'website' | 'article';
|
||||
@@ -97,6 +98,7 @@ const serializedStructuredData = structuredData
|
||||
src="//gc.zgo.at/count.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<StabilityBanner />
|
||||
<Header />
|
||||
<main>
|
||||
<slot />
|
||||
|
||||
@@ -8,6 +8,7 @@ import HowItCompares from '../components/sections/HowItCompares.astro';
|
||||
import RunsEverywhere from '../components/sections/RunsEverywhere.astro';
|
||||
import RealTime from '../components/sections/RealTime.astro';
|
||||
import Batteries from '../components/sections/Batteries.astro';
|
||||
import Plugins from '../components/sections/Plugins.astro';
|
||||
import SeeIt from '../components/sections/SeeIt.astro';
|
||||
import Faq from '../components/sections/Faq.astro';
|
||||
import HonestBeta from '../components/sections/HonestBeta.astro';
|
||||
@@ -55,6 +56,7 @@ const structuredData = {
|
||||
<SeeIt />
|
||||
<RealTime />
|
||||
<Batteries />
|
||||
<Plugins />
|
||||
<RunsEverywhere />
|
||||
<HowItCompares />
|
||||
<Faq />
|
||||
|
||||
Reference in new issue
Block a user