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 = +