Hero, the honest section, the FAQ and the runtimes caveat now say release candidate and API frozen, per .specs/2026-10-30-rc1-copy.md. "1.0" becomes "stable": CalVer has no 1.0. The performance answer uses the RC.1 benchmark numbers, and the runtimes caveat notes that native TLS is Node-only. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
151 lines
4.9 KiB
Plaintext
151 lines
4.9 KiB
Plaintext
---
|
||
// Beta-scoped objection handling. Answers stay honest: no benchmarks are
|
||
// invented, and every claim here matches what the rest of the site already says.
|
||
const items = [
|
||
{
|
||
q: 'Is Green Tea ready for production?',
|
||
a: `It's a release candidate: the API is frozen, and until stable every release is a fix. It fits greenfield services, internal tools, and side projects where you own the deploy. If you need a decade of third-party middleware today, stay on Express for now.`,
|
||
},
|
||
{
|
||
q: 'Can I drop it into my existing Express app?',
|
||
a: `No — and that's the point. Green Tea replaces the middleware chain with a dependency graph, so adopting it means rewriting the pipeline, not swapping a router. It shines on a new service or a bounded rewrite, not as an incremental Express patch.`,
|
||
},
|
||
{
|
||
q: 'How does it perform against Express or Fastify?',
|
||
a: `Performance isn't the pitch — the model is — but there's a reproducible benchmark in the core repo (BENCHMARKS.md), written to be hard on us, not flattering. On a single-box harness green-tea is level with Fastify on a plain JSON route, a few percent behind it on routing and pipelines, and behind it on validation; it runs about three times faster than Express. Read the caveats there: it's loopback on one machine, so trust the ratios between frameworks, not the absolute numbers. The graph is topologically sorted once at boot, not per request — you don't pay for it on the hot path.`,
|
||
},
|
||
{
|
||
q: 'What will it add to my dependency tree?',
|
||
a: `One runtime dependency: reflect-metadata. ws and busboy are optional peers you install only if you use WebSockets or uploads. Validation is bring-your-own via Standard Schema (zod, valibot, or arktype), so the core stays lean.`,
|
||
},
|
||
{
|
||
q: 'Is mesh (multi-service) ready to use?',
|
||
a: `Not yet. Mesh is alpha, gated behind an explicit opt-in, and outside the API freeze, so it may change in any release. What does not change is everything around it: mesh adapts to the stable API rather than altering it, so an app that does not use mesh is never affected by a mesh release. Build on the single-service core for now, and treat mesh as a preview, not a foundation.`,
|
||
},
|
||
{
|
||
q: 'What does the API freeze promise?',
|
||
a: `From RC.1 to the stable release, nothing in the public API is added, removed or renamed — releases are fixes only, and every API change would have to show up as a diff to the committed API report, which CI checks. After stable, nothing is removed without being deprecated first: at least two monthly releases of notice, a @deprecated tag naming the replacement, and a single warning in your logger. Mesh is experimental and outside the promise.`,
|
||
},
|
||
];
|
||
---
|
||
|
||
<section class="faq section--panel">
|
||
<div class="wrap faq__inner">
|
||
<div class="faq__head">
|
||
<p class="kicker">Straight answers</p>
|
||
<h2>Questions worth asking about a release candidate.</h2>
|
||
</div>
|
||
|
||
<ul class="faq__list">
|
||
{
|
||
items.map((item) => (
|
||
<li class="faq__item">
|
||
<details>
|
||
<summary>
|
||
<span>{item.q}</span>
|
||
<span class="faq__mark" aria-hidden="true" />
|
||
</summary>
|
||
<p>{item.a}</p>
|
||
</details>
|
||
</li>
|
||
))
|
||
}
|
||
</ul>
|
||
</div>
|
||
</section>
|
||
|
||
<style>
|
||
.faq__inner {
|
||
max-width: 720px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.faq__head {
|
||
max-width: 52ch;
|
||
margin: 0 auto 2.5rem;
|
||
text-align: center;
|
||
}
|
||
|
||
.faq__head h2 {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.faq__list {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.faq__item {
|
||
border: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
|
||
border-radius: 12px;
|
||
background: var(--base);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.faq__item summary {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 1rem;
|
||
padding: 1.15rem 1.4rem;
|
||
cursor: pointer;
|
||
color: var(--ink);
|
||
font-weight: 600;
|
||
list-style: none;
|
||
}
|
||
|
||
/* kill the native disclosure triangle across engines */
|
||
.faq__item summary::-webkit-details-marker {
|
||
display: none;
|
||
}
|
||
|
||
.faq__item summary:focus-visible {
|
||
outline: 2px solid var(--matcha);
|
||
outline-offset: -2px;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
/* a + that rotates into an × when open — no icon asset needed */
|
||
.faq__mark {
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
width: 14px;
|
||
height: 14px;
|
||
}
|
||
|
||
.faq__mark::before,
|
||
.faq__mark::after {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
margin: auto;
|
||
background: var(--matcha);
|
||
transition: transform 0.2s ease;
|
||
}
|
||
|
||
.faq__mark::before {
|
||
width: 14px;
|
||
height: 2px;
|
||
}
|
||
|
||
.faq__mark::after {
|
||
width: 2px;
|
||
height: 14px;
|
||
}
|
||
|
||
.faq__item details[open] .faq__mark::after {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.faq__item details p {
|
||
margin: 0;
|
||
padding: 0 1.4rem 1.3rem;
|
||
color: var(--dim);
|
||
line-height: 1.7;
|
||
}
|
||
</style>
|