Files
website/src/components/sections/Batteries.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

109 lines
2.7 KiB
Plaintext

---
const cards = [
{ 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: '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.',
},
];
---
<section class="batteries">
<div class="wrap">
<div class="batteries__head">
<p class="kicker">Foundation ownership</p>
<h2>We maintain the foundation. You maintain the product.</h2>
<p class="batteries__lede">
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.
</p>
</div>
<ul class="batteries__grid">
{
cards.map((card) => (
<li class="batteries__card">
<h3>{card.title}</h3>
<p>{card.body}</p>
</li>
))
}
</ul>
</div>
</section>
<style>
.batteries__head {
max-width: 52ch;
margin: 0 auto 3rem;
text-align: center;
}
.batteries__head h2 {
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;
padding: 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.25rem;
}
.batteries__card {
padding: 1.75rem;
background: var(--panel);
border: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
border-radius: 12px;
}
.batteries__card h3 {
color: var(--matcha);
font-size: 1.05rem;
margin-bottom: 0.5em;
}
.batteries__card p {
margin: 0;
color: var(--dim);
font-size: 0.95rem;
line-height: 1.65;
}
@media (max-width: 860px) {
.batteries__grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 560px) {
.batteries__grid {
grid-template-columns: 1fr;
}
}
</style>