From 7238819520e1be69c601be23517c6033a04fc03c Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Tue, 18 Aug 2026 09:29:53 -0500 Subject: [PATCH] content: sell foundation ownership, not the absence of middleware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/components/sections/Batteries.astro | 35 ++++-- src/components/sections/FollowsDemand.astro | 109 ++++++++++++++++++ src/components/sections/GraphNotChain.astro | 26 ++++- src/components/sections/Hero.astro | 21 +++- src/components/sections/HonestBeta.astro | 7 +- src/components/sections/RealTime.astro | 22 +++- src/components/sections/RunsEverywhere.astro | 11 +- src/components/sections/SeeIt.astro | 26 ++++- src/components/sections/WhoDoesTheWork.astro | 114 +++++++++++++++++++ src/layouts/Base.astro | 2 +- src/pages/index.astro | 14 ++- 11 files changed, 345 insertions(+), 42 deletions(-) create mode 100644 src/components/sections/FollowsDemand.astro create mode 100644 src/components/sections/WhoDoesTheWork.astro diff --git a/src/components/sections/Batteries.astro b/src/components/sections/Batteries.astro index c653e16..211e22e 100644 --- a/src/components/sections/Batteries.astro +++ b/src/components/sections/Batteries.astro @@ -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 = [
-

Batteries, calm by design

-

Serious defaults. Zero ceremony.

+

Foundation ownership

+

We maintain the foundation. You maintain the product.

+

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

    @@ -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; diff --git a/src/components/sections/FollowsDemand.astro b/src/components/sections/FollowsDemand.astro new file mode 100644 index 0000000..c8ad087 --- /dev/null +++ b/src/components/sections/FollowsDemand.astro @@ -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.', + }, +]; +--- + +
    +
    +
    +

    Route slicing

    +

    Run what the route needs. Not everything registered around it.

    +
    + +
      + { + slices.map((slice) => ( +
    • +

      {slice.route}

      +

      + {slice.chain.map((node, i) => ( + <> + {i > 0 && } + {node} + + ))} +

      +

      {slice.note}

      +
    • + )) + } +
    + +

    + Routes don't inherit infrastructure just because it was registered nearby. Execution follows dependency + demand. +

    +
    +
    + + diff --git a/src/components/sections/GraphNotChain.astro b/src/components/sections/GraphNotChain.astro index a392ade..8da234b 100644 --- a/src/components/sections/GraphNotChain.astro +++ b/src/components/sections/GraphNotChain.astro @@ -7,11 +7,17 @@ import GraphMotif from '../GraphMotif.astro';

    The idea

    -

    A graph, not a chain.

    +

    Declare what your code needs. Not when it should run.

    - 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 user. Authorization needs user. 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. +

    + +

    + session → auth → user → authorization → + permissions → handler

      @@ -23,9 +29,10 @@ import GraphMotif from '../GraphMotif.astro';

    - 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. + You describe the application; the framework derives the pipeline. DI frameworks resolve a graph of services — Green Tea resolves your request pipeline the same way, from what each route asks for rather than + from the order you happened to write things in.

@@ -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; diff --git a/src/components/sections/Hero.astro b/src/components/sections/Hero.astro index 1d40917..b818dd8 100644 --- a/src/components/sections/Hero.astro +++ b/src/components/sections/Hero.astro @@ -11,13 +11,16 @@ import GraphMotif from '../GraphMotif.astro'; Green Tea. -

Your API is a graph, not a middleware chain.

+

Declare intent. Derive execution. Build your product.

- 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.

+

You focus on business logic. Green Tea maintains the foundation.

+ -

Beta · calm by design

+

Beta · Node · Deno · Bun · Edge

@@ -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 { diff --git a/src/components/sections/HonestBeta.astro b/src/components/sections/HonestBeta.astro index 8b886fe..fe5b0c5 100644 --- a/src/components/sections/HonestBeta.astro +++ b/src/components/sections/HonestBeta.astro @@ -6,8 +6,11 @@

Honest: it's beta.

- 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.