content: sell foundation ownership, not the absence of middleware
CI / build (pull_request) Successful in 12s
CI / build (pull_request) Successful in 12s
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>
This commit is contained in:
11 files changed
+345
-42
No files matched your search
@@ -4,18 +4,30 @@
|
||||
<section class="realtime section--panel">
|
||||
<div class="wrap realtime__inner">
|
||||
<p class="kicker">Real-time</p>
|
||||
<h2>One primitive for real-time.</h2>
|
||||
<h2>One mental model. Different transports.</h2>
|
||||
|
||||
<p class="realtime__body">
|
||||
SSE, ndjson, or a duplex WebSocket — one primitive, an <code>AsyncIterable</code>. You declare the transport
|
||||
with a decorator (<code>@Sse</code>, <code>@Ws</code>, <code>@Stream</code>); 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 <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;
|
||||
|
||||
Reference in new issue
Block a user