Compare commits

..
Author SHA1 Message Date
chrnx 48311b0962 content: put the mesh audit in both posts, and say why it stays alpha
CI / build (pull_request) Successful in 18s
Neither post mentioned mesh, which left the release note describing a smaller
release than shipped and the long post skipping the part that best fits its
argument — the framework's one differentiator was also its least trustworthy
corner.

The release note gets a section: no reconnection at all, identity lost at the
process boundary, and exporting a handle answering 200 with an empty object.
The long post gets the same findings as story, including the rule that was
never written down anywhere — a mesh export carries data, never behaviour.

Both end on the same distinction, which is the point worth making publicly:
alpha is not a statement about the code, it is a statement about how much we
know. Everything found was found by looking, so the supply is set by how long
we look rather than by how many users have complained. It leaves alpha when
somebody runs it with two real services and tells us what broke.

Still drafts — verified they render (1330 and 1945 words) and then put back.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-18 12:55:26 -05:00
chrnx 7218da8a25 Merge pull request 'content: sell foundation ownership, not the absence of middleware' (#11) from feat/copy-strategy into main
Promote → GitHub / push-github (push) Failing after 7s
CI / build (push) Successful in 12s
2026-08-18 14:46:37 +00:00
chrnx 96fadc4883 content: draft the beta.1 release note and the story behind it
CI / build (pull_request) Successful in 11s
Two posts, both held as drafts until the tag exists — the blog index, the
per-post route and the RSS feed all filter on the flag, so nothing leaks
before the release is real.

The release note covers what changed and what it costs. The longer piece
covers why the gaps existed at all, including the two bugs found while
closing them: a routing divergence between runtimes that the parity tests
structurally could not catch, and a Node 18 ReferenceError that no local
machine could reproduce.

Both thank the contributors by naming what they built. The long one says the
part that matters — that they contributed to a project with no stars, when
being early buys nothing.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-18 09:40:27 -05:00
chrnx 7238819520 content: sell foundation ownership, not the absence of middleware
CI / build (pull_request) Successful in 12s
The homepage led with 'your API is a graph, not a middleware chain' — the
origin problem stated as the whole product philosophy. Middleware ordering is
what green-tea started from, not what it is for, and a visitor who has never
felt that specific pain reads it as a framework defined by what it lacks.

Reframes the page around what the framework takes off the application: it
derives execution from declared dependencies, validates the wiring before
traffic, runs only the slice a route asks for, and then shows its work. Two
sections are new because nothing on the page carried the argument — an
ownership list that ends at 'business rules: you', and the two route slices
that make dependency-driven execution concrete rather than abstract.

The dependency count moves from hero to evidence, with the nuance it was
missing: reflect-metadata is the only runtime dependency, ws and busboy are
optional peers. Beta honesty gains the API-stability caveat.

Follows .specs/reports/green_tea_website_copy_strategy_zen.md, whose
guardrails were re-checked against the built page — no zero-dependency claim,
no compile-time overclaim, mesh still alpha, edge limits still stated.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-18 09:29:53 -05:00
chrnx 9d82ec0f1f Merge pull request 'ci: move the audit off the release gate and onto a schedule' (#10) from ci/audit-out-of-the-release-gate into main
CI / build (push) Successful in 11s
Release → dist.tar.gz / package (push) Has been skipped
Promote → GitHub / push-github (push) Successful in 4s
Reviewed-on: #10
2026-08-07 22:02:12 +00:00
chrnx 6fbff8eab9 Merge branch 'main' into ci/audit-out-of-the-release-gate
CI / build (pull_request) Successful in 12s
2026-08-07 21:59:46 +00:00
chrnx 3772222118 Merge pull request 'chore: version 26.8.1-beta.0 and clear the nanoid advisory' (#9) from chore/version-26.8.1-beta.0 into main
Promote → GitHub / push-github (push) Successful in 5s
CI / build (push) Successful in 11s
Reviewed-on: #9
2026-08-07 21:59:35 +00:00
chrnx aa279c31f1 ci: move the audit off the release gate and onto a schedule
CI / build (pull_request) Failing after 9s
Two advisories landed in this tree in a single day — js-yaml in the morning,
nanoid a couple of hours later. Neither had anything to do with a code change.
A release gated on `npm audit` fails by calendar date, and it fails at the
exact moment there is least time to judge whether a fix is safe.

What ships from here is built HTML, CSS and JS. Astro, js-yaml and nanoid are
build-time tools that never reach a visitor; the advisories in question need
control over build inputs to matter, and an attacker with that has already won.

So the release gate drops to `critical` — a tripwire for the catastrophic case,
not a trigger for routine noise. Nothing is lowered anywhere else: ci.yml still
blocks every PR at moderate, which is where there is time and context to fix.

The new scheduled audit is what makes that safe rather than negligent. Monday
mornings on Gitea, filing an internal issue when something turns up, with a
dedup check so a weekly cron cannot open 52 copies. Learning about a
vulnerability and being unable to publish stop being the same event.

`workflow_dispatch` is included so it can be run and verified on demand.
2026-08-07 16:54:48 -05:00
chrnx 6a19f2981a chore: version 26.8.1-beta.0 and clear the nanoid advisory
CI / build (pull_request) Successful in 12s
v26.8.0-beta.0 was released on 2026-08-03 and `verify:release` requires the
tag to equal `v${package.json.version}` exactly. Re-tagging the same version
would work — `prepare` deletes and recreates the release on purpose — but it
would silently replace the August 3 archive with different content, leaving
two deploys behind one version number and a rollback that means nothing.

CalVer has a patch digit for this, so: 26.8.1-beta.0.

Also bumps nanoid to 3.3.18. GHSA-2v37-7h3g-55p8 (high) was published after
the js-yaml fix landed and would have failed the release audit gate on its
own. Non-breaking, and in scope here since it blocks the very release this
version exists to enable.

Verified: `npm audit --audit-level=moderate` reports 0 vulnerabilities,
`npm run check` passes, `RELEASE_TAG=v26.8.1-beta.0 npm run verify:release`
passes and the old tag is correctly rejected.
2026-08-07 16:49:39 -05:00
chrnx 67a1b48394 Merge pull request 'feat: add privacy-friendly analytics (GoatCounter)' (#7) from feat/analytics into main
Promote → GitHub / push-github (push) Successful in 5s
CI / build (push) Successful in 11s
Reviewed-on: #7
2026-08-07 19:49:02 +00:00
chrnx 9c7eec883c Merge branch 'main' into feat/analytics
CI / build (pull_request) Successful in 11s
2026-08-07 19:48:09 +00:00
chrnx 73f8e1602f Merge pull request 'chore: clear the js-yaml advisory blocking CI' (#8) from chore/js-yaml-advisory into main
Promote → GitHub / push-github (push) Successful in 5s
CI / build (push) Successful in 12s
Reviewed-on: #8
2026-08-07 19:47:57 +00:00
chrnxandClaude Opus 5 ddcb5679ba feat: add privacy-friendly analytics
CI / build (pull_request) Failing after 10s
GoatCounter, same site code as the docs site, so traffic across the marketing
pages and /docs lands in one dashboard with comparable referrer paths.

No cookies, no personal data, no consent banner, nothing to host. It answers
the question we cannot answer today: do the articles convert into
documentation reads?

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 14:04:41 -05:00
17 changed files with 724 additions and 49 deletions

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
name: Dependency audit
# Weekly, on GITEA ONLY — this is maintenance, so it belongs in the internal tracker.
#
# This is the counterpart that makes release.yml's relaxed gate safe rather than
# negligent. Advisories still get found; they just arrive as an issue on Monday
# morning instead of as a failed release on a Friday afternoon. Learning about a
# vulnerability and being unable to publish should not be the same event.
on:
schedule:
- cron: '0 13 * * 1' # Mondays, 07:00 America/Mexico_City
workflow_dispatch: # so it can be run — and tested — on demand
jobs:
audit:
if: ${{ github.server_url != 'https://github.com' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm ci
- name: Audit
id: audit
run: |
if npm audit --audit-level=moderate > audit.txt 2>&1; then
echo 'clean=true' >> "$GITHUB_OUTPUT"
else
echo 'clean=false' >> "$GITHUB_OUTPUT"
fi
cat audit.txt
- name: File an issue
if: steps.audit.outputs.clean == 'false'
env:
GT_TOKEN: ${{ github.token }}
API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
TITLE: 'Dependency advisories: npm audit is failing'
run: |
set -eu
# One open issue at a time. A weekly cron must not file 52 duplicates.
open=$(curl -sSL -H "Authorization: token $GT_TOKEN" \
"$API/issues?state=open&type=issues" \
| jq --arg t "$TITLE" '[.[] | select(.title == $t)] | length')
if [ "$open" != "0" ]; then
echo "An issue is already open. Nothing to file."
exit 0
fi
body=$(printf '`npm audit --audit-level=moderate` failed on the scheduled run.\n\nThe release gate does not fail on this by design — see the comment in `release.yml`. A static site ships built HTML, not `node_modules`, so a build-time advisory does not reach a visitor. This issue is how it reaches you instead.\n\nFix it in a normal PR, on your own schedule.\n\n```\n%s\n```\n' "$(head -c 4000 audit.txt)")
jq -n --arg t "$TITLE" --arg b "$body" '{title: $t, body: $b}' \
| curl -sS -X POST -H "Authorization: token $GT_TOKEN" \
-H 'Content-Type: application/json' -d @- "$API/issues" > /dev/null
echo "Issue filed."
+9 -1
View File
@@ -24,7 +24,15 @@ jobs:
- name: Validate release tag
run: npm run verify:release
- run: npm ci
- run: npm audit --audit-level=moderate
# Deliberately `critical`, not `moderate`. npm audit reads a live advisory feed,
# so a release gated on it fails by calendar date rather than by anything the
# release changed — and it fails at the exact moment there is least time to judge
# 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
# schedule, so advisories still surface — just not as a broken release.
- run: npm audit --audit-level=critical
- run: npm run check
- name: Package dist/
run: tar -czf "$ARCHIVE_NAME" -C dist .
+5 -5
View File
@@ -1,12 +1,12 @@
{
"name": "green-tea-site",
"version": "26.8.0-beta.0",
"version": "26.8.1-beta.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "green-tea-site",
"version": "26.8.0-beta.0",
"version": "26.8.1-beta.0",
"dependencies": {
"@astrojs/mdx": "^7.0.5",
"@astrojs/rss": "^4.0.19",
@@ -4822,9 +4822,9 @@
"license": "MIT"
},
"node_modules/nanoid": {
"version": "3.3.16",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz",
"integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==",
"version": "3.3.18",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
"integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
"funding": [
{
"type": "github",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "green-tea-site",
"type": "module",
"version": "26.8.0-beta.0",
"version": "26.8.1-beta.0",
"engines": {
"node": ">=22.12.0"
},
+27 -8
View File
@@ -1,16 +1,22 @@
---
const cards = [
{ title: 'Secure by default', body: 'Hardened response headers and CORS; native TLS on Node.' },
{ title: 'Derive execution', body: 'Green Tea topologically sorts the graph. Stop maintaining execution order by hand.' },
{
title: 'Fail before traffic',
body: 'A missing dependency or an ambiguous route fails loudly at boot, not in production.',
},
{
title: 'Real validation',
body: 'Standard Schema; bring zod, valibot, or arktype. No validator dependency in core.',
},
{ title: 'OpenAPI 3.1', body: 'Projected from the same graph. No extra decorators.' },
{ title: 'See the graph', body: 'Interactive, served by your app. Not behind a paywall.' },
{ title: 'Loud boot', body: 'A missing dependency fails at startup, not in production.' },
{
title: 'One dependency',
body: "reflect-metadata only. No Express or Inversify maintenance chain underneath you.",
title: 'See what was derived',
body: 'Print the ordered pipeline, open the live graph, project the same metadata into OpenAPI 3.1.',
},
{ title: 'Secure by default', body: 'Hardened response headers and CORS; native TLS on Node.' },
{
title: 'A small foundation',
body: 'reflect-metadata is the only runtime dependency; ws and busboy are optional peers for sockets and uploads.',
},
];
---
@@ -18,8 +24,14 @@ const cards = [
<section class="batteries">
<div class="wrap">
<div class="batteries__head">
<p class="kicker">Batteries, calm by design</p>
<h2>Serious defaults. Zero ceremony.</h2>
<p class="kicker">Foundation ownership</p>
<h2>We maintain the foundation. You maintain the product.</h2>
<p class="batteries__lede">
Routing, graph execution, validation integration, streaming, security defaults, errors, OpenAPI, lifecycle,
runtime adapters — the framework work your application would otherwise assemble and then keep working. The
goal isn't fewer dependencies for a badge; it's fewer moving parts your team has to understand, upgrade and
debug.
</p>
</div>
<ul class="batteries__grid">
@@ -46,6 +58,13 @@ const cards = [
margin-bottom: 0;
}
.batteries__lede {
margin: 1rem 0 0;
max-width: 46rem;
color: var(--dim);
line-height: 1.75;
}
.batteries__grid {
list-style: none;
margin: 0;
+109
View File
@@ -0,0 +1,109 @@
---
const slices = [
{
route: 'GET /prices',
chain: ['market', 'handler'],
note: 'A public endpoint never asks for a user, so authentication is not in its graph slice.',
},
{
route: 'GET /portfolio',
chain: ['session', 'auth', 'user', 'portfolio', 'handler'],
note: 'A protected endpoint needs the user, so Green Tea follows the graph and includes it.',
},
];
---
<section class="demand section--panel">
<div class="wrap demand__inner">
<div class="demand__head">
<p class="kicker">Route slicing</p>
<h2>Run what the route needs. Not everything registered around it.</h2>
</div>
<ul class="demand__slices">
{
slices.map((slice) => (
<li class="demand__slice">
<p class="demand__route"><code>{slice.route}</code></p>
<p class="demand__chain">
{slice.chain.map((node, i) => (
<>
{i > 0 && <span class="demand__arrow" aria-hidden="true">→</span>}
<code>{node}</code>
</>
))}
</p>
<p class="demand__note">{slice.note}</p>
</li>
))
}
</ul>
<p class="demand__punch">
Routes don't inherit infrastructure just because it was registered nearby. Execution follows dependency
demand.
</p>
</div>
</section>
<style>
.demand {
padding-block: clamp(3rem, 8vw, 5.5rem);
}
.demand__head {
margin-bottom: 2.2rem;
max-width: 46rem;
}
.demand__head h2 {
margin-bottom: 0;
}
.demand__slices {
list-style: none;
margin: 0 0 2rem;
padding: 0;
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.demand__slice {
padding: 1.3rem 1.4rem;
border: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
border-radius: 12px;
}
.demand__route {
margin: 0 0 0.8rem;
font-family: var(--font-heading);
font-weight: 600;
}
.demand__chain {
margin: 0 0 0.9rem;
line-height: 2.1;
font-size: 0.95rem;
}
.demand__arrow {
color: var(--matcha);
margin-inline: 0.35rem;
}
.demand__note {
margin: 0;
color: var(--dim);
line-height: 1.7;
font-size: 0.95rem;
}
.demand__punch {
margin: 0;
max-width: 46rem;
font-size: 1.05rem;
line-height: 1.7;
color: var(--ink);
}
</style>
+20 -6
View File
@@ -7,11 +7,17 @@ import GraphMotif from '../GraphMotif.astro';
<div class="wrap graph-idea__inner">
<p class="kicker">The idea</p>
<h2>A graph, not a chain.</h2>
<h2>Declare what your code needs. Not when it should run.</h2>
<p class="graph-idea__body">
Express-style frameworks make ordering your job — what runs here, what runs there, where you wire it. Green
Tea inverts it. You ask for the highest-level thing you need, and its dependencies resolve transitively.
A handler needs <code>user</code>. Authorization needs <code>user</code>. User comes from authentication.
Authentication needs a session. That is already enough information to describe execution order — so Green Tea
builds the graph from it, validates the wiring at boot, and runs only the slice the route requires.
</p>
<p class="graph-idea__chain" aria-label="session, then auth, then user, then authorization, then permissions, then handler">
<code>session</code> → <code>auth</code> → <code>user</code> → <code>authorization</code> →
<code>permissions</code> → <code>handler</code>
</p>
<ul class="graph-idea__examples">
@@ -23,9 +29,10 @@ import GraphMotif from '../GraphMotif.astro';
</ul>
<p class="graph-idea__punch">
This is pure composition. DI frameworks resolve a graph of <em>services</em>; Green Tea resolves your <em
>request pipeline</em
> the same way — the steps a route runs are computed from what it asks for, not the order you wrote them in.
You describe the application; the framework derives the pipeline. DI frameworks resolve a graph of <em
>services</em
> — Green Tea resolves your <em>request pipeline</em> the same way, from what each route asks for rather than
from the order you happened to write things in.
</p>
</div>
</section>
@@ -96,6 +103,13 @@ import GraphMotif from '../GraphMotif.astro';
color: var(--ink);
}
.graph-idea__chain {
margin: 0 0 1.6rem;
font-size: 0.95rem;
line-height: 2.1;
color: var(--dim);
}
.graph-idea__punch {
margin: 0;
padding: 1.25rem 1.5rem;
+16 -5
View File
@@ -11,13 +11,16 @@ import GraphMotif from '../GraphMotif.astro';
<span class="hero__wordmark">Green Tea<span class="hero__dot">.</span></span>
</div>
<h1>Your API is a graph, not a middleware chain.</h1>
<h1>Declare intent. Derive execution. Build your product.</h1>
<p class="hero__subhead">
Green Tea is a zen, opinionated, type-safe framework: you declare what each step needs — it computes the
order. One runtime dependency. Runs on Node, Deno, Bun, and Cloudflare Workers.
A zen, opinionated, type-safe TypeScript framework that turns what your code needs into a validated
execution graph. Green Tea derives the order, runs only the dependencies each route actually requires,
and shows you exactly what it built.
</p>
<p class="hero__promise">You focus on business logic. Green Tea maintains the foundation.</p>
<div class="btn-row hero__ctas">
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
Get started
@@ -30,7 +33,7 @@ import GraphMotif from '../GraphMotif.astro';
</a>
</div>
<p class="hero__micro">Beta · calm by design</p>
<p class="hero__micro">Beta · Node · Deno · Bun · Edge</p>
</div>
<GraphMotif class="hero__motif" width={460} height={400} opacity={0.55} />
@@ -87,7 +90,15 @@ import GraphMotif from '../GraphMotif.astro';
color: var(--dim);
font-size: 1.1rem;
line-height: 1.7;
margin-bottom: 2rem;
margin-bottom: 1.1rem;
}
.hero__promise {
margin: 0 0 2rem;
font-family: var(--font-heading);
font-size: 1.02rem;
line-height: 1.6;
color: var(--ink);
}
.hero__ctas {
+5 -2
View File
@@ -6,8 +6,11 @@
<h2>Honest: it's beta.</h2>
<p class="honest__body">
Express and Fastify have a decade of ecosystem. Green Tea doesn't — yet. You come for the model and the
ergonomics. If you're tired of maintaining someone else's foundation, come try it.
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.
</p>
<form class="subscribe" action="/subscribe.php" method="post">
+17 -5
View File
@@ -4,18 +4,30 @@
<section class="realtime section--panel">
<div class="wrap realtime__inner">
<p class="kicker">Real-time</p>
<h2>One primitive for real-time.</h2>
<h2>One mental model. Different transports.</h2>
<p class="realtime__body">
SSE, ndjson, or a duplex WebSocket — one primitive, an <code>AsyncIterable</code>. You declare the transport
with a decorator (<code>@Sse</code>, <code>@Ws</code>, <code>@Stream</code>); only that one line changes. No
separate gateway, no bolt-on package — and your wire contract is what you declared, never a surprise sprung by
a return value.
Your business code has one idea — values arriving over time — and in Green Tea that idea is an <code
>AsyncIterable</code
>. Declare the transport with a decorator (<code>@Sse</code>, <code>@Ws</code>, <code>@Stream</code>) and
return the stream; the framework handles framing, backpressure, cleanup and disconnects. Only that one line
changes between them, and your wire contract is what you declared — never a surprise sprung by a return value.
</p>
<p class="realtime__tree">
<code>AsyncIterable</code> → <code>SSE</code> · <code>NDJSON</code> · <code>WebSocket</code>
</p>
</div>
</section>
<style>
.realtime__tree {
margin: 1.2rem 0 0;
font-size: 0.95rem;
line-height: 2.1;
color: var(--dim);
}
.realtime__inner {
max-width: 60ch;
margin: 0 auto;
+6 -5
View File
@@ -4,12 +4,13 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
<section class="runs">
<div class="wrap runs__inner">
<p class="kicker">Runtime-agnostic</p>
<h2>Write it once. Run it on four targets.</h2>
<p class="kicker">Portability</p>
<h2>Your application model shouldn't belong to a runtime.</h2>
<p class="runs__body">
Node, Deno, Bun — and Cloudflare Workers at the edge. The same <code>src/</code> runs on all four; the only line
that changes is how you serve it.
The graph, routes, validation and business logic stay the same on Node, Deno, Bun and Cloudflare Workers.
Runtime-specific serving is isolated at the transport boundary — the only line that changes is how the
application is served.
</p>
<ul class="runs__chips">
@@ -17,7 +18,7 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
</ul>
<p class="runs__micro">
Built on web standards. Not hostage to a runtime's fate. <span class="runs__caveat"
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
>
</p>
+21 -5
View File
@@ -26,18 +26,34 @@ class MeController {
<div class="wrap see-it__inner">
<div class="see-it__head">
<p class="kicker">See it</p>
<h2>The whole model, in one screen.</h2>
<h2>The signature is the contract.</h2>
<p class="see-it__lede">
If your handler needs it, it says so. Green Tea knows what the handler requires, which steps produce those
values, and what those steps need in turn — and if the graph can't satisfy that contract, it fails before
serving traffic. No hoping auth ran first, no archaeology through <code>app.use()</code>.
</p>
</div>
<div class="see-it__code">
<Code code={snippet} lang="ts" theme="github-dark-high-contrast" />
</div>
<p class="see-it__caption">Declare what you need. The framework figures out the order.</p>
<p class="see-it__caption">
Then make the framework show its work: <code>app.explain()</code> prints the ordered pipeline, the live graph
is served by your own app, and the same metadata projects into OpenAPI. Automated does not have to mean
invisible.
</p>
</div>
</section>
<style>
.see-it__lede {
margin: 1rem 0 0;
max-width: 46rem;
color: var(--dim);
line-height: 1.75;
}
.see-it__inner {
max-width: 780px;
margin: 0 auto;
@@ -68,10 +84,10 @@ class MeController {
}
.see-it__caption {
margin: 1.5rem 0 0;
text-align: center;
margin: 1.5rem auto 0;
max-width: 46rem;
color: var(--dim);
font-style: italic;
line-height: 1.75;
font-size: 0.95rem;
}
</style>
@@ -0,0 +1,121 @@
---
const rows = [
{ job: 'Execution order', owner: 'Green Tea' },
{ job: 'Dependency validation', owner: 'Green Tea' },
{ job: 'Route-specific pipeline', owner: 'Green Tea' },
{ job: 'Missing dependency checks', owner: 'Green Tea' },
{ job: 'Streaming mechanics', owner: 'Green Tea' },
{ job: 'OpenAPI projection', owner: 'Green Tea' },
{ job: 'Secure transport defaults', owner: 'Green Tea' },
{ job: 'Runtime serving boundary', owner: 'Green Tea' },
];
---
<section class="who">
<div class="wrap who__inner">
<div class="who__head">
<p class="kicker">Ownership</p>
<h2>Who should do the infrastructure work?</h2>
</div>
<dl class="who__list">
{
rows.map((row) => (
<div class="who__row">
<dt>{row.job}</dt>
<dd>{row.owner}</dd>
</div>
))
}
<div class="who__row who__row--you">
<dt>Business rules</dt>
<dd>You</dd>
</div>
</dl>
<p class="who__punch">
The framework should carry framework complexity. Your application should carry product complexity.
</p>
</div>
</section>
<style>
.who {
padding-block: clamp(3rem, 8vw, 5.5rem);
}
.who__head {
margin-bottom: 2.2rem;
}
.who__head h2 {
margin-bottom: 0;
}
.who__list {
margin: 0 0 2rem;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: clamp(2rem, 6vw, 4.5rem);
}
.who__row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
padding-block: 0.75rem;
border-bottom: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
}
.who__row dt {
margin: 0;
color: var(--dim);
}
.who__row dd {
margin: 0;
font-family: var(--font-heading);
font-weight: 600;
color: var(--matcha);
white-space: nowrap;
}
.who__row--you {
grid-column: 1 / -1;
border-bottom: none;
border-top: 1px solid var(--matcha);
margin-top: 1.4rem;
padding-top: 1.2rem;
}
.who__row--you dt {
color: var(--ink);
font-size: 1.05rem;
}
.who__row--you dd {
color: var(--violet);
font-size: 1.35rem;
}
.who__punch {
margin: 0;
max-width: 52rem;
font-size: 1.05rem;
line-height: 1.7;
color: var(--ink);
}
@media (max-width: 700px) {
.who__list {
grid-template-columns: minmax(0, 1fr);
}
}
@media (max-width: 480px) {
.who__row {
font-size: 0.95rem;
}
}
</style>
@@ -0,0 +1,133 @@
---
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.
+161
View File
@@ -0,0 +1,161 @@
---
title: "Trust is a feature, and I had shipped it as a TODO"
description: "What it took to make green-tea operable: an observability contract, shutdown that actually lets go, a routing difference between runtimes I did not know I had — and two people who contributed to a project with no stars."
pubDate: 2026-08-19
author: "Diego Reséndez"
tags: ["green-tea", "story", "observability", "contributors"]
draft: true
---
There is a difference between a framework you can demo and a framework you can run, and for most of this year
green-tea was firmly the first one.
The demo was good. Declare what a route needs, get a validated execution graph, run only the slice that route
requires. That part works and I still think it is the right idea. But when someone asked me the question every
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.
## "No observability layer" was a sentence in my README for months
I want to be precise about how bad that was, because I was oddly proud of having written it down.
Declaring a gap is not the same as not having one. Every request that went through green-tea was anonymous. There
was no id to correlate a slow response with the step that caused it, no per-step timing, and — worst of the three —
the framework wrote to `console` in a handful of places, which means an application had no way to redirect its own
framework's output. You could ship it, but you could not operate it.
What shipped is a correlated event stream: an id per request, adopted from an incoming `x-request-id` when a gateway
already made one, carried on every event, alongside the matched route *pattern* rather than the concrete URL. That
last detail matters more than it looks — pattern cardinality is bounded, URL cardinality is not, and a metrics
backend fed the second one falls over.
The `console` calls are gone, and what replaced discipline is a lint rule over `src/**`. I do not trust myself to
remember, and neither should you.
What I did not build: a metrics registry, an OpenTelemetry exporter. Both were in the original issue and both would
have been the second runtime dependency this project has. A `traceparent` header is carried through untouched so an
exporter package can do that job. The framework ships the contract; the integration is somebody's package,
possibly mine, later.
I measured the cost instead of guessing at it — about 7% of the framework's own per-request work, roughly 2% once a
real socket is in the path. I mention the number because the first three times I measured it I got three different
wrong answers, one with the sign inverted. That is a story for another post.
## Shutdown: the framework was holding things it never let go of
The second gap was quieter. Green-tea would boot your providers, hand you a database pool, and then, at shutdown,
do nothing about it. `app.close()` drained requests and closed streams — it never told your code that the process
was going away. So every application built on it re-implemented the same `process.on('SIGTERM')` block, and every
one of them got the ordering slightly wrong, because the order you need is the reverse of the order things booted
in and nothing was telling you what that order was.
The framework already knew it. It computes a topological order to run your graph. Using it for teardown was not a
feature so much as an admission that the information was already sitting there.
Now a provider closes its pool in `dispose()`, a plugin registers `onShutdown`, an application passes `hooks`, and
all three land in one registry that awaits them in reverse boot order inside the existing deadline. A failure gets
logged, and the rest still run.
The part I want to flag is the one that is *not* symmetric: on the edge, none of this exists. Workerd has no
shutdown to hook into. I could have quietly no-opped it and let the docs imply parity. It says so instead.
## The bug I found by looking, and the bug CI found by not trusting me
While profiling the router I noticed `GET /public/../admin` returned 404 on Node. On Deno, Bun and Workers, the same
request reached `/admin`. The fetch-based runtimes resolve dot segments inside the `Request` constructor, before my
code ever sees the path.
So the same bytes on the wire were routing differently depending on where you deployed. A framework whose entire
pitch is *the same application model everywhere* had a silent routing divergence, and my own cross-runtime parity
tests could not catch it, because they go through `fetch()` — which normalizes the path before it hits the wire. The
new tests write the request line to a socket by hand.
The second one is more embarrassing and more useful. CI failed the observability work on Node 18 with
`ReferenceError: crypto is not defined`. The global `crypto` landed in Node 19. My `engines` field promises Node 18.
Every machine I own runs Node 20 or newer, and the other three runtimes have the global — so I had shipped code that
made the framework unusable on its own declared floor, and *nothing I could run locally would ever have told me*.
That job exists because I pinned it to the version I promise rather than the version I use. It is the single most
valuable thing in my CI configuration.
## Then I pointed the same question at the part I am proudest of
Mesh is the thing green-tea has that nothing else does: `@needs('billing')` resolves the same whether
billing runs in this process or on another machine. It is the idea I would put on a poster. It is
also the part nobody has run in anger, which — after a day of finding out what "we never checked
that" means — made it the obvious next place to look.
I found eight defects in about six hundred lines. Not one had been reported; all of them came from
going and looking.
The worst is the one that answers a question I had never thought to ask: **what happens if you export
a database connection?** The wire is JSON. A pool has methods and private state and JSON keeps
neither, so it serialized to `{}` — and `{}` is an object. It passed every `if (db)` check, it had no
methods, and it failed as `db.query is not a function` at a call site with no visible relationship to
the export that caused it. Status 200. No warning at either end, at any point.
That is not a bug in the transport. It is a *rule the framework never stated*: a mesh export carries
data, never behaviour. Export what the handle produces, not the handle. Writing that sentence down is
worth more than the guard that now enforces it, and the fact that it took me until now to write it is
the honest part of this story.
Second worst: **a dropped link never reconnected.** Not "reconnected badly" — there was no
reconnection code at all. Deploying a teapot meant restarting every teacup that depended on it, which
turns a routine deploy into a coordinated one and makes boot order part of your architecture. The
framework was quietly asking for an operational discipline it never mentioned.
And the one that stung, because it was fresh: **the request id I had just spent a release adding died
at the process boundary.** Every request got an identity, every event carried it, and the moment the
request crossed to another node the far side opened a new investigation. The one place a distributed
trace is the entire point was the one place it did not reach.
So mesh stays alpha, and I want to be precise about why, because "still alpha" usually means "not
finished". This is not that. The protocol is versioned and peers refuse each other on mismatch. The
secret is compared in constant time. Frames are shape-validated before they reach anything.
Ambiguous routes fail the boot rather than picking one. That is not careless code.
**The label is not about the code. It is about how much I know.** Everything above was found by
looking, which means the supply of things to find is set by how long I look, not by how many users
have complained. What a day added to what I know was almost entirely *here is another thing
distributed systems do to you*. It comes out of alpha when somebody runs it with two real services,
redeploys the teapot on a Tuesday, and tells me what broke — not when I run out of ideas.
## The part I actually want to write
Two people contributed code to this release. I want to be specific about why that matters, and it is not politeness.
This project had no stars, no discussion threads, and no visibility. Contributing to a project in that state buys
you nothing — no reputation, no line on a résumé anybody has heard of, no guarantee the maintainer will even reply.
You are betting your evening on a stranger's repository on the strength of the idea alone. I have been on the other
side of that decision and I usually decided not to.
**[@YxnnXriel](https://github.com/YxnnXriel)** added a timeout to `app.close()`. On the surface: one option. In
practice, every shutdown guarantee in this release is standing on it. The app-wide `shutdownTimeoutMs`, the bounded
`close()` on Deno and Bun, the teardown budget that stops a slow `dispose()` from holding a deploy hostage — all of
it is built on the deadline that pull request introduced. I did not plan that. It just turned out to be the piece
everything else needed.
**[@hgshreyas](https://github.com/hgshreyas)** capped concurrent connections on Node, which had been unbounded —
the framework had no answer whatsoever to load it could not serve. Then followed it with the fix that makes a
non-positive value mean *unlimited* rather than *zero*, which is what anyone typing `0` actually intends. The review
on that one taught me something about my own architecture: the counting cannot live in the shared `app.fetch` path,
because `app.fetch` is not on Node's `listen()` route. I did not know that cleanly until someone else's patch forced
me to say it out loud.
Both of them are still working on things. One of those pull requests is currently blocked on *me* — it needs a piece
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.
## Where this leaves the beta
The graph is settled. The plugin API and `createApp`'s options still move. Mesh is still alpha. The API freeze
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.
That's the tea. 🍵
+7 -1
View File
@@ -21,7 +21,7 @@ interface Props {
const {
title = 'Green Tea — A zen, type-safe graph-pipeline HTTP framework',
description = 'Green Tea is a graph-pipeline HTTP framework: declare what you need, not the order to build it. Runtime-agnostic, type-safe, calm by design.',
description = 'Green Tea is a dependency-driven TypeScript backend framework: declare what your code needs and it derives, validates and executes the graph. Runtime-agnostic, type-safe, calm by design.',
image = '/og.png',
ogType = 'website',
robots = 'index, follow',
@@ -89,6 +89,12 @@ const serializedStructuredData = structuredData
/>
<meta name="generator" content={Astro.generator} />
{/* GoatCounter — no cookies, no personal data, no consent banner needed. */}
<script
data-goatcounter="https://greentea.goatcounter.com/count"
async
src="//gc.zgo.at/count.js"></script>
</head>
<body>
<Header />
+9 -5
View File
@@ -1,7 +1,9 @@
---
import Base from '../layouts/Base.astro';
import Hero from '../components/sections/Hero.astro';
import WhoDoesTheWork from '../components/sections/WhoDoesTheWork.astro';
import GraphNotChain from '../components/sections/GraphNotChain.astro';
import FollowsDemand from '../components/sections/FollowsDemand.astro';
import HowItCompares from '../components/sections/HowItCompares.astro';
import RunsEverywhere from '../components/sections/RunsEverywhere.astro';
import RealTime from '../components/sections/RealTime.astro';
@@ -10,9 +12,9 @@ import SeeIt from '../components/sections/SeeIt.astro';
import Faq from '../components/sections/Faq.astro';
import HonestBeta from '../components/sections/HonestBeta.astro';
const title = 'Green Tea — Type-safe graph-pipeline framework for Node, Deno & Bun';
const title = 'Green Tea — Dependency-driven TypeScript backend framework';
const description =
'Your API is a graph, not a middleware chain. Declare what each step needs and Green Tea computes the order — one runtime dependency, type-safe, runtime-agnostic, calm by design.';
'Build TypeScript backends with less infrastructure in your head. Declare what your code needs and Green Tea derives, validates and executes the graph across Node, Deno, Bun and the edge.';
const canonicalURL = new URL('/', Astro.site).toString();
const repositoryURL = 'https://github.com/Expressive-Tea/green-tea';
const structuredData = {
@@ -47,12 +49,14 @@ const structuredData = {
<Base title={title} description={description} structuredData={structuredData}>
<Hero />
<WhoDoesTheWork />
<GraphNotChain />
<HowItCompares />
<RunsEverywhere />
<FollowsDemand />
<SeeIt />
<RealTime />
<Batteries />
<SeeIt />
<RunsEverywhere />
<HowItCompares />
<Faq />
<HonestBeta />
</Base>