From 1869e6c2c3f00ab2f748a43f283eedc26280d15f Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 17 Jul 2026 10:16:47 -0500 Subject: [PATCH] docs(site): sell real-time and the graph honestly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two claims a skeptic would catch. RealTime still said 'return an AsyncIterable' with no mention of declaring the transport — the same implicit-return the framework now rejects with TransportMismatchError; the honest version (declare the transport, the contract is never a surprise) sells harder anyway. And GraphNotChain's 'no one else has the graph' invited the obvious 'Angular and Nest have a DI graph' — so say the real, unrefutable thing: they resolve a graph of services, this resolves your request pipeline. Same fix in the founder post. Signed-off-by: Diego Resendez --- src/components/sections/GraphNotChain.astro | 4 +++- src/components/sections/RealTime.astro | 6 ++++-- src/content/blog/why-i-rebuilt-my-framework.mdx | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/sections/GraphNotChain.astro b/src/components/sections/GraphNotChain.astro index e77a079..a392ade 100644 --- a/src/components/sections/GraphNotChain.astro +++ b/src/components/sections/GraphNotChain.astro @@ -23,7 +23,9 @@ import GraphMotif from '../GraphMotif.astro';

- This is pure composition. No other framework shows it, because no one else has the graph. + This is pure composition. DI frameworks resolve a graph of services; Green Tea resolves your request pipeline the same way — the steps a route runs are computed from what it asks for, not the order you wrote them in.

diff --git a/src/components/sections/RealTime.astro b/src/components/sections/RealTime.astro index 1111b0d..b7e1b5a 100644 --- a/src/components/sections/RealTime.astro +++ b/src/components/sections/RealTime.astro @@ -7,8 +7,10 @@

One primitive for real-time.

- SSE, ndjson, or a duplex WebSocket — return an AsyncIterable. One mental model, one line. No - separate gateway, no bolt-on package. + SSE, ndjson, or a duplex WebSocket — one primitive, an AsyncIterable. You declare the transport + with a decorator (@Sse, @Ws, @Stream); 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.

diff --git a/src/content/blog/why-i-rebuilt-my-framework.mdx b/src/content/blog/why-i-rebuilt-my-framework.mdx index 49e3f0e..42c430a 100644 --- a/src/content/blog/why-i-rebuilt-my-framework.mdx +++ b/src/content/blog/why-i-rebuilt-my-framework.mdx @@ -26,7 +26,7 @@ That's Green Tea. The core idea is simple to say and took a long time to get right: the request pipeline is an explicit dependency graph, not a mutable middleware chain. You don't push handlers onto a stack and hope the order holds. You declare what each step needs — `@needs('user')`, say — and the framework computes the order for you. There's no chain to get wrong, because there's no chain. -Real-time isn't bolted on either. It's one primitive: return an `AsyncIterable` and you have a stream, whether that stream is a WebSocket, an SSE connection, or something else entirely. One shape, one mental model, no separate package to reconcile with the rest of the framework. +Real-time isn't bolted on either. It's one primitive — an `AsyncIterable` — for every kind of stream: a WebSocket, an SSE connection, an ndjson feed. You declare which transport with a decorator and return the iterable; one shape, one mental model, no separate package to reconcile with the rest of the framework. And because none of it depends on Express or Node's http module specifically, it runs on Node, on Deno, on Bun, and on the edge — built on web standards instead of one runtime's particular APIs. One runtime dependency, total. Not a supply chain, one dependency.