Files
website/src/layouts/Base.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

107 lines
3.3 KiB
Plaintext

---
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import '../styles/global.css';
type OpenGraphType = 'website' | 'article';
type StructuredData = Record<string, unknown>;
interface Props {
title?: string;
description?: string;
image?: string;
ogType?: OpenGraphType;
robots?: string;
publishedTime?: Date;
updatedTime?: Date;
authorUrl?: string;
tags?: string[];
structuredData?: StructuredData;
}
const {
title = 'Green Tea — A zen, type-safe graph-pipeline HTTP framework',
description = 'Green Tea is a dependency-driven TypeScript backend framework: declare what your code needs and it derives, validates and executes the graph. Runtime-agnostic, type-safe, calm by design.',
image = '/og.png',
ogType = 'website',
robots = 'index, follow',
publishedTime,
updatedTime,
authorUrl,
tags,
structuredData,
} = Astro.props;
const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString();
const ogImageURL = new URL(image, Astro.site).toString();
const serializedStructuredData = structuredData
? JSON.stringify(structuredData).replace(/</g, '\\u003c')
: undefined;
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="canonical" href={canonicalURL} />
<title>{title}</title>
<meta name="description" content={description} />
<meta name="robots" content={robots} />
<!-- Open Graph -->
<meta property="og:type" content={ogType} />
<meta property="og:url" content={canonicalURL} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={ogImageURL} />
{
ogType === 'article' && (
<>
{publishedTime && <meta property="article:published_time" content={publishedTime.toISOString()} />}
{updatedTime && <meta property="article:modified_time" content={updatedTime.toISOString()} />}
{authorUrl && <meta property="article:author" content={authorUrl} />}
{tags?.map((tag) => <meta property="article:tag" content={tag} />)}
</>
)
}
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={ogImageURL} />
{serializedStructuredData && <script type="application/ld+json" set:html={serializedStructuredData} />}
<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="Green Tea. Blog" href="/rss.xml" />
<!-- Fonts -->
<link
rel="preload"
href="/fonts/zen-maru-gothic-latin-700.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<meta name="generator" content={Astro.generator} />
{/* GoatCounter — no cookies, no personal data, no consent banner needed. */}
<script
data-goatcounter="https://greentea.goatcounter.com/count"
async
src="//gc.zgo.at/count.js"></script>
</head>
<body>
<Header />
<main>
<slot />
</main>
<Footer />
</body>
</html>