Files
website/src/components/sections/RealTime.astro
T
chrnx 7238819520
CI / build (pull_request) Successful in 12s
content: sell foundation ownership, not the absence of middleware
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 <diego.resendez@zero-oneit.com>
2026-08-18 09:29:53 -05:00

52 lines
1.3 KiB
Plaintext

---
---
<section class="realtime section--panel">
<div class="wrap realtime__inner">
<p class="kicker">Real-time</p>
<h2>One mental model. Different transports.</h2>
<p class="realtime__body">
Your business code has one idea — values arriving over time — and in Green Tea that idea is an <code
>AsyncIterable</code
>. Declare the transport with a decorator (<code>@Sse</code>, <code>@Ws</code>, <code>@Stream</code>) 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.
</p>
<p class="realtime__tree">
<code>AsyncIterable</code> → <code>SSE</code> · <code>NDJSON</code> · <code>WebSocket</code>
</p>
</div>
</section>
<style>
.realtime__tree {
margin: 1.2rem 0 0;
font-size: 0.95rem;
line-height: 2.1;
color: var(--dim);
}
.realtime__inner {
max-width: 60ch;
margin: 0 auto;
text-align: center;
}
.realtime__body {
color: var(--dim);
font-size: 1.1rem;
margin: 0 auto;
max-width: 52ch;
}
.realtime__body code {
background: var(--base);
border-radius: 4px;
padding: 0.15em 0.4em;
font-size: 0.9em;
color: var(--ink);
}
</style>