From af376a26b43f033e5c5e1d084b16249796eb2d7f Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 17 Jul 2026 10:35:59 -0500 Subject: [PATCH] feat(site): add a How-it-compares table so the difference lands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The landing explained what Green Tea is but never set it beside Express, Fastify, or NestJS — so 'it's different' was told, not shown, and it read like one more framework. The core README already carries an honest comparison; this lifts its most load-bearing rows (pipeline model, does req.user exist, seeing the pipeline, real-time, runtimes, deps) into a curated four-column table with the Green Tea column lit. Responsive: the table scrolls inside its own overflow-x container so the page body never scrolls sideways on mobile. Copy is pulled from the verified README rows — nothing new claimed. Signed-off-by: Diego Resendez --- src/components/sections/HowItCompares.astro | 205 ++++++++++++++++++++ src/pages/index.astro | 2 + 2 files changed, 207 insertions(+) create mode 100644 src/components/sections/HowItCompares.astro diff --git a/src/components/sections/HowItCompares.astro b/src/components/sections/HowItCompares.astro new file mode 100644 index 0000000..32b1c49 --- /dev/null +++ b/src/components/sections/HowItCompares.astro @@ -0,0 +1,205 @@ +--- +// Curated from the core README's comparison table — the rows that differ most, kept honest. +const cols = ['Express', 'Fastify', 'NestJS']; +const rows = [ + { + label: 'The pipeline is', + others: ['a positional chain', 'hooks + plugins', 'DI + guards/interceptors'], + gt: 'a graph, topologically sorted', + }, + { + label: 'Order comes from', + others: ['the line you wrote it on', 'hook phase + registration', 'module wiring'], + gt: 'what each step needs', + }, + { + label: 'Is req.user there?', + others: ['hope so', 'hope so', 'if the guard ran'], + gt: 'boot fails if nothing provides it', + }, + { + label: 'See the pipeline', + others: ['read the code', 'read the code', 'paid Devtools'], + gt: 'explain / graph, free', + }, + { + label: 'Real-time', + others: ['bolt on a ws/sse lib', 'a plugin', 'a separate gateway'], + gt: 'one AsyncIterable primitive', + }, + { + label: 'Runs on', + others: ['Node', 'Node', 'Node'], + gt: 'Node · Deno · Bun · edge', + }, + { + label: 'Runtime deps', + others: ['minimal', 'minimal', 'heavy (rxjs, …)'], + gt: 'reflect-metadata only', + }, +]; +--- + +
+
+
+

How it compares

+

Not another framework. A different model.

+

+ Every framework here can serve /users/:id. The difference shows up as the app grows — more + dependencies, real-time, more than one machine. +

+
+ +
+ + + + + {cols.map((c) => )} + + + + + { + rows.map((row) => ( + + + {row.others.map((cell) => ( + + ))} + + + )) + } + +
Capability{c}Green Tea.
{row.label}{cell}{row.gt}
+
+ +

+ Same idea, said plainly: other stacks answer “what does this handler depend on?”, “how do I push + data over time?” and “how do I call another service?” with three subsystems. Green Tea answers + all three with one — the graph. +

+
+
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index 4206ec3..fc4740c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,6 +2,7 @@ import Base from '../layouts/Base.astro'; import Hero from '../components/sections/Hero.astro'; import GraphNotChain from '../components/sections/GraphNotChain.astro'; +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'; @@ -16,6 +17,7 @@ const description = +