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>
110 lines
2.4 KiB
Plaintext
110 lines
2.4 KiB
Plaintext
---
|
|
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.',
|
|
},
|
|
];
|
|
---
|
|
|
|
<section class="demand section--panel">
|
|
<div class="wrap demand__inner">
|
|
<div class="demand__head">
|
|
<p class="kicker">Route slicing</p>
|
|
<h2>Run what the route needs. Not everything registered around it.</h2>
|
|
</div>
|
|
|
|
<ul class="demand__slices">
|
|
{
|
|
slices.map((slice) => (
|
|
<li class="demand__slice">
|
|
<p class="demand__route"><code>{slice.route}</code></p>
|
|
<p class="demand__chain">
|
|
{slice.chain.map((node, i) => (
|
|
<>
|
|
{i > 0 && <span class="demand__arrow" aria-hidden="true">→</span>}
|
|
<code>{node}</code>
|
|
</>
|
|
))}
|
|
</p>
|
|
<p class="demand__note">{slice.note}</p>
|
|
</li>
|
|
))
|
|
}
|
|
</ul>
|
|
|
|
<p class="demand__punch">
|
|
Routes don't inherit infrastructure just because it was registered nearby. Execution follows dependency
|
|
demand.
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<style>
|
|
.demand {
|
|
padding-block: clamp(3rem, 8vw, 5.5rem);
|
|
}
|
|
|
|
.demand__head {
|
|
margin-bottom: 2.2rem;
|
|
max-width: 46rem;
|
|
}
|
|
|
|
.demand__head h2 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.demand__slices {
|
|
list-style: none;
|
|
margin: 0 0 2rem;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
|
|
}
|
|
|
|
.demand__slice {
|
|
padding: 1.3rem 1.4rem;
|
|
border: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.demand__route {
|
|
margin: 0 0 0.8rem;
|
|
font-family: var(--font-heading);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.demand__chain {
|
|
margin: 0 0 0.9rem;
|
|
line-height: 2.1;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.demand__arrow {
|
|
color: var(--matcha);
|
|
margin-inline: 0.35rem;
|
|
}
|
|
|
|
.demand__note {
|
|
margin: 0;
|
|
color: var(--dim);
|
|
line-height: 1.7;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.demand__punch {
|
|
margin: 0;
|
|
max-width: 46rem;
|
|
font-size: 1.05rem;
|
|
line-height: 1.7;
|
|
color: var(--ink);
|
|
}
|
|
</style>
|