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

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

+
Get started @@ -30,7 +33,7 @@ import GraphMotif from '../GraphMotif.astro';
-

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.

diff --git a/src/components/sections/RealTime.astro b/src/components/sections/RealTime.astro index b7e1b5a..25f0c3c 100644 --- a/src/components/sections/RealTime.astro +++ b/src/components/sections/RealTime.astro @@ -4,18 +4,30 @@

Real-time

-

One primitive for real-time.

+

One mental model. Different transports.

- 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. + Your business code has one idea — values arriving over time — and in Green Tea that idea is an AsyncIterable. Declare the transport with a decorator (@Sse, @Ws, @Stream) 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. +

+ +

+ AsyncIterable → SSE · NDJSON · WebSocket

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

Ownership

+

Who should do the infrastructure work?

+
+ +
+ { + rows.map((row) => ( +
+
{row.job}
+
{row.owner}
+
+ )) + } +
+
Business rules
+
You
+
+
+ +

+ The framework should carry framework complexity. Your application should carry product complexity. +

+
+
+ + diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index d8cf7ee..c04dcdf 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -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', diff --git a/src/pages/index.astro b/src/pages/index.astro index 7bd388d..2adb07b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -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 = { + - - + + - + +