Compare commits
18
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
464cd5309e | ||
|
|
b05a6c4fa8 | ||
|
|
d24243b23f | ||
|
|
771617930e | ||
|
|
750e268a9f | ||
|
|
f7473d0338 | ||
|
|
9a34ab0699 | ||
|
|
b978dacd4f | ||
|
|
a92cc0f82f | ||
|
|
1869e6c2c3 | ||
|
|
813f7f88ad | ||
|
|
f1afa05349 | ||
|
|
7f8980b958 | ||
|
|
2907b1e148 | ||
|
|
48736d3c4d | ||
|
|
4a05f364fd | ||
|
|
adca1c5bdf | ||
|
|
6e1888b8ff |
No files matched your search
@@ -0,0 +1,19 @@
|
||||
name: CI
|
||||
|
||||
# Build gate. Runs on both forges (path .github is read by Gitea and GitHub).
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
@@ -0,0 +1,27 @@
|
||||
name: Promote → GitHub
|
||||
|
||||
# Runs on GITEA ONLY. Mirrors only main + version tags to the public GitHub repo.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ['v*']
|
||||
|
||||
jobs:
|
||||
push-github:
|
||||
if: ${{ github.server_url != 'https://github.com' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Push main + tags to GitHub
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_PROMOTE_TOKEN }}
|
||||
run: |
|
||||
git remote add github "https://x-access-token:${GH_TOKEN}@github.com/Expressive-Tea/green-tea-site.git"
|
||||
if [ "${{ github.ref_type }}" = "tag" ]; then
|
||||
git push github "refs/tags/${{ github.ref_name }}"
|
||||
else
|
||||
git push github "HEAD:refs/heads/main"
|
||||
git push github --tags
|
||||
fi
|
||||
@@ -0,0 +1,26 @@
|
||||
name: Release → dist.tar.gz
|
||||
|
||||
# Production artifact. Runs on GITHUB ONLY, on a version tag. Builds the static site
|
||||
# and packages dist/ as a .tar.gz attached to the GitHub release — the cPanel deploy
|
||||
# pulls that artifact.
|
||||
on:
|
||||
push:
|
||||
tags: ['v*']
|
||||
|
||||
jobs:
|
||||
package:
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- name: Package dist/
|
||||
run: tar -czf "green-tea-site-${{ github.ref_name }}.tar.gz" -C dist .
|
||||
- name: Attach to GitHub release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: green-tea-site-${{ github.ref_name }}.tar.gz
|
||||
@@ -15,6 +15,10 @@ node_modules/
|
||||
.env
|
||||
.env.production
|
||||
|
||||
# real DB credentials for the launch-list endpoint (never commit)
|
||||
subscribe.config.php
|
||||
**/subscribe.config.php
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Green Tea. — marketing site
|
||||
|
||||
The public marketing site for [Green Tea](https://green-tea.dev), a zen, opinionated, type-safe graph-pipeline HTTP
|
||||
The public marketing site for [Green Tea](https://green-tea.expressive-tea.io), a zen, opinionated, type-safe graph-pipeline HTTP
|
||||
framework. Built with [Astro](https://astro.build) — the landing page, blog, and brand shell live here. The
|
||||
framework's technical docs live in a separate repository and are only linked from this site, not rebuilt here.
|
||||
|
||||
@@ -50,28 +50,31 @@ public/ — static assets (favicon, og.png, robots.txt)
|
||||
|
||||
## Deployment (manual — Cloudflare Pages)
|
||||
|
||||
There is no deploy CI configured for this repo. Deploys are triggered manually from the Cloudflare Pages
|
||||
dashboard:
|
||||
The site is hosted on the **expressive-tea.io cPanel** under the subdomain `green-tea.expressive-tea.io`.
|
||||
There is no deploy CI — you build locally and upload the static output.
|
||||
|
||||
1. Create a new Pages project and connect this repository.
|
||||
2. **Framework preset:** Astro
|
||||
3. **Build command:** `npm run build`
|
||||
4. **Build output directory:** `dist`
|
||||
5. Deploy, then attach the custom domain `green-tea.dev` under the project's Custom Domains settings.
|
||||
1. `npm run build` → static output in `dist/`.
|
||||
2. Upload the **contents** of `dist/` into the subdomain's document root
|
||||
(e.g. `public_html/green-tea/`) via the cPanel File Manager or SFTP.
|
||||
3. The docs are a **separate build** served from `/docs` on the same subdomain — see the
|
||||
[core repo](https://github.com/Expressive-Tea/green-tea)'s `website/` (built with `base: '/docs'`);
|
||||
its `dist/` contents go into `public_html/green-tea/docs/`. Two independent builds, one subdomain,
|
||||
no nested sub-subdomain.
|
||||
|
||||
Re-run the same "Create deployment" flow from the dashboard for subsequent releases — pushes do not trigger an
|
||||
automatic build.
|
||||
The `*.expressive-tea.io` AutoSSL certificate already covers `green-tea.expressive-tea.io`; `/docs` needs
|
||||
no certificate of its own because it is a path, not a host.
|
||||
|
||||
## Placeholder links
|
||||
## Links that don't resolve yet
|
||||
|
||||
The repository (`https://github.com/green-tea-dev/green-tea`) and npm package (`@green-tea/core`) referenced
|
||||
throughout the site (Header, Footer, Hero, blog) are **placeholders** — the GitHub org/repo and the npm package are
|
||||
not public yet. Before launch:
|
||||
Green Tea lives under the **Expressive-Tea** GitHub org — the same org as the framework it grew out of. The site
|
||||
already points there (`https://github.com/Expressive-Tea/green-tea`, in Header, Footer, Hero, and HonestBeta), but
|
||||
those targets are not public yet. Before launch, confirm each one actually resolves:
|
||||
|
||||
- Confirm the real GitHub org/repo and update every reference in `src/` if it differs from
|
||||
`https://github.com/green-tea-dev/green-tea`.
|
||||
- Confirm `@green-tea/core` is the published npm package name and update links if it changes.
|
||||
- Confirm `https://docs.green-tea.dev` resolves once the docs site is live.
|
||||
- The GitHub repo is public under that org.
|
||||
- `@green-tea/core` is published to npm under that name.
|
||||
- `https://green-tea.expressive-tea.io/docs` is live and serving the docs site.
|
||||
|
||||
Every one of these is a visible 404 on the landing page until it's true.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ import sitemap from '@astrojs/sitemap';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://green-tea.dev',
|
||||
site: 'https://green-tea.expressive-tea.io',
|
||||
integrations: [mdx(), sitemap()]
|
||||
});
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "green-tea-site",
|
||||
"version": "0.0.1",
|
||||
"version": "26.7.0-beta.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "green-tea-site",
|
||||
"version": "0.0.1",
|
||||
"version": "26.7.0-beta.0",
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^7.0.2",
|
||||
"@astrojs/rss": "^4.0.19",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "green-tea-site",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"version": "26.7.0-beta.0",
|
||||
"engines": {
|
||||
"node": ">=22.12.0"
|
||||
},
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://green-tea.dev/sitemap-index.xml
|
||||
Sitemap: https://green-tea.expressive-tea.io/sitemap-index.xml
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Green Tea launch-list capture.
|
||||
*
|
||||
* The static site POSTs here (same origin on the cPanel subdomain). A valid
|
||||
* email lands in MySQL; duplicates are a silent no-op. DB credentials live in
|
||||
* subscribe.config.php, kept OUTSIDE the web root — see server/ in the repo.
|
||||
*/
|
||||
|
||||
header('X-Content-Type-Options: nosniff');
|
||||
|
||||
/** Reply as JSON to fetch(), redirect back for a no-JS form post. */
|
||||
function respond(bool $ok, int $code, string $message, bool $wantsJson): void
|
||||
{
|
||||
http_response_code($code);
|
||||
if ($wantsJson) {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(['ok' => $ok, 'message' => $message]);
|
||||
} else {
|
||||
header('Location: /?subscribed=' . ($ok ? '1' : '0') . '#subscribe');
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
$wantsJson = isset($_SERVER['HTTP_X_REQUESTED_WITH'])
|
||||
&& strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'fetch';
|
||||
|
||||
if (($_SERVER['REQUEST_METHOD'] ?? 'GET') !== 'POST') {
|
||||
respond(false, 405, 'Method not allowed.', $wantsJson);
|
||||
}
|
||||
|
||||
// Honeypot: bots fill hidden fields, people don't. Accept silently, store nothing.
|
||||
if (trim((string) ($_POST['website'] ?? '')) !== '') {
|
||||
respond(true, 200, "You're on the list.", $wantsJson);
|
||||
}
|
||||
|
||||
$email = trim((string) ($_POST['email'] ?? ''));
|
||||
if ($email === '' || strlen($email) > 254 || !filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
||||
respond(false, 422, 'Please enter a valid email address.', $wantsJson);
|
||||
}
|
||||
|
||||
// Config one level above the web root is preferred; same-dir is a fallback.
|
||||
$configFile = __DIR__ . '/../subscribe.config.php';
|
||||
if (!is_file($configFile)) {
|
||||
$configFile = __DIR__ . '/subscribe.config.php';
|
||||
}
|
||||
if (!is_file($configFile)) {
|
||||
error_log('subscribe: missing subscribe.config.php');
|
||||
respond(false, 500, 'Signups are not configured yet.', $wantsJson);
|
||||
}
|
||||
$config = require $configFile;
|
||||
|
||||
try {
|
||||
$pdo = new PDO($config['dsn'], $config['user'], $config['pass'], [
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
]);
|
||||
// Unique index on email makes this idempotent — a repeat signup is a no-op.
|
||||
$stmt = $pdo->prepare(
|
||||
'INSERT INTO subscribers (email, created_at, ip) VALUES (:email, NOW(), :ip)
|
||||
ON DUPLICATE KEY UPDATE email = email'
|
||||
);
|
||||
$stmt->execute([
|
||||
':email' => $email,
|
||||
':ip' => $_SERVER['REMOTE_ADDR'] ?? null,
|
||||
]);
|
||||
} catch (Throwable $e) {
|
||||
error_log('subscribe: ' . $e->getMessage());
|
||||
respond(false, 500, 'Could not save that right now — try again later.', $wantsJson);
|
||||
}
|
||||
|
||||
// Optional heads-up email. Never fatal: the DB row is the source of truth.
|
||||
if (!empty($config['notify'])) {
|
||||
@mail(
|
||||
(string) $config['notify'],
|
||||
'Green Tea: new subscriber',
|
||||
"New launch-list signup: {$email}",
|
||||
'From: Green Tea <' . $config['notify'] . '>'
|
||||
);
|
||||
}
|
||||
|
||||
respond(true, 200, "You're on the list — we'll ping you at 1.0.", $wantsJson);
|
||||
@@ -0,0 +1,24 @@
|
||||
# Launch-list backend (cPanel)
|
||||
|
||||
The email capture on the site posts to `subscribe.php`, which ships in the build
|
||||
(`public/subscribe.php` → `dist/subscribe.php`). To wire it up on cPanel:
|
||||
|
||||
1. **Create the DB** in cPanel → MySQL Databases. Note db name, user, password.
|
||||
2. **Create the table**: run `schema.sql` in phpMyAdmin against that DB.
|
||||
3. **Add credentials**: copy `subscribe.config.example.php` to `subscribe.config.php`,
|
||||
fill in the DB values, and upload it **one level above** the subdomain's docroot
|
||||
(so it is never web-servable). `subscribe.php` looks there first.
|
||||
4. **Deploy** the built `dist/` into the subdomain docroot. `subscribe.php` is already inside it.
|
||||
5. **Smoke test**:
|
||||
```
|
||||
curl -i -X POST -H 'X-Requested-With: fetch' \
|
||||
--data 'email=test@example.com' \
|
||||
https://green-tea.expressive-tea.io/subscribe.php
|
||||
```
|
||||
Expect `{"ok":true,...}` and a row in `subscribers`.
|
||||
|
||||
Notes:
|
||||
- Duplicate signups are a silent success (unique index on `email`).
|
||||
- A hidden honeypot field blocks basic bots.
|
||||
- No-JS visitors are redirected to `/?subscribed=1`; with JS they get inline feedback.
|
||||
- No rate limiting yet — add one at the cPanel/CDN layer if signups get abused.
|
||||
@@ -0,0 +1,7 @@
|
||||
-- Launch-list table for subscribe.php. Run once against the green-tea DB.
|
||||
CREATE TABLE IF NOT EXISTS subscribers (
|
||||
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||
email VARCHAR(254) NOT NULL UNIQUE,
|
||||
created_at DATETIME NOT NULL,
|
||||
ip VARCHAR(45) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Copy this to `subscribe.config.php` and fill in real values.
|
||||
*
|
||||
* Place the real file ONE LEVEL ABOVE the web root if you can (so it is never
|
||||
* web-servable), e.g. /home/USER/subscribe.config.php when the docroot is
|
||||
* /home/USER/green-tea.expressive-tea.io/. subscribe.php looks there first,
|
||||
* then falls back to sitting next to it.
|
||||
*
|
||||
* Never commit the real subscribe.config.php — it holds the DB password.
|
||||
*/
|
||||
|
||||
return [
|
||||
'dsn' => 'mysql:host=localhost;dbname=YOUR_DB;charset=utf8mb4',
|
||||
'user' => 'YOUR_DB_USER',
|
||||
'pass' => 'YOUR_DB_PASSWORD',
|
||||
'notify' => 'support@expressive-tea.io', // set to '' to skip notification emails
|
||||
];
|
||||
@@ -3,14 +3,14 @@ const linkColumns = [
|
||||
{
|
||||
heading: 'Learn',
|
||||
links: [
|
||||
{ label: 'Docs', href: 'https://docs.green-tea.dev', external: true },
|
||||
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
|
||||
{ label: 'Blog', href: '/blog', external: false },
|
||||
],
|
||||
},
|
||||
{
|
||||
heading: 'Code',
|
||||
links: [
|
||||
{ label: 'GitHub', href: 'https://github.com/green-tea-dev/green-tea', external: true },
|
||||
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true },
|
||||
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true },
|
||||
],
|
||||
},
|
||||
@@ -24,6 +24,7 @@ const year = new Date().getFullYear();
|
||||
<div class="site-footer__brand">
|
||||
<span class="site-footer__wordmark">Green Tea<span class="site-footer__dot">.</span></span>
|
||||
<p class="site-footer__tagline">A zen, opinionated, type-safe framework.</p>
|
||||
<p class="site-footer__byline">by the Expressive Tea Team</p>
|
||||
</div>
|
||||
|
||||
<nav class="site-footer__columns" aria-label="Footer">
|
||||
@@ -47,7 +48,7 @@ const year = new Date().getFullYear();
|
||||
</div>
|
||||
|
||||
<div class="wrap site-footer__bottom">
|
||||
<p>© {year} · MIT · That's the tea. 🍵</p>
|
||||
<p>© {year} Expressive Tea Team · MIT · That's the tea. 🍵</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -82,6 +83,13 @@ const year = new Date().getFullYear();
|
||||
max-width: 26ch;
|
||||
}
|
||||
|
||||
.site-footer__byline {
|
||||
color: var(--matcha);
|
||||
margin: 0.35em 0 0;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.site-footer__columns {
|
||||
display: flex;
|
||||
gap: 3.5rem;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
import logoUrl from '../assets/logo.svg?url';
|
||||
|
||||
const navLinks = [
|
||||
{ label: 'Docs', href: 'https://docs.green-tea.dev', external: true },
|
||||
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
|
||||
{ label: 'Blog', href: '/blog', external: false },
|
||||
{ label: 'GitHub', href: 'https://github.com/green-tea-dev/green-tea', external: true },
|
||||
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true },
|
||||
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true },
|
||||
];
|
||||
---
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
---
|
||||
// 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 beta, on the RC track — the API can still shift between releases. It fits greenfield services, internal tools, and side projects where you own the deploy and can pin versions. 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 keeps pace with Fastify and runs several times faster than Express, behind only raw Node http. 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 and gated behind an explicit opt-in. Build on the single-service core for now, and treat mesh as a preview, not a foundation.`,
|
||||
},
|
||||
{
|
||||
q: 'What does "beta" mean for breaking changes?',
|
||||
a: `Expect occasional breaking changes on the RC track, called out in the changelog. Pin your version and read the release notes before upgrading, and you won't be surprised.`,
|
||||
},
|
||||
];
|
||||
---
|
||||
|
||||
<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 beta.</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>
|
||||
@@ -23,7 +23,9 @@ import GraphMotif from '../GraphMotif.astro';
|
||||
</ul>
|
||||
|
||||
<p class="graph-idea__punch">
|
||||
This is pure composition. No other framework shows it, because no one else has the graph.
|
||||
This is pure composition. DI frameworks resolve a graph of <em>services</em>; Green Tea resolves your <em
|
||||
>request pipeline</em
|
||||
> the same way — the steps a route runs are computed from what it asks for, not the order you wrote them in.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -11,18 +11,18 @@ import GraphMotif from '../GraphMotif.astro';
|
||||
<span class="hero__wordmark">Green Tea<span class="hero__dot">.</span></span>
|
||||
</div>
|
||||
|
||||
<h1>A zen, opinionated, type-safe framework.</h1>
|
||||
<h1>Your API is a graph, not a middleware chain.</h1>
|
||||
|
||||
<p class="hero__subhead">
|
||||
Your API is a graph, not a middleware chain. You declare what each step needs — the framework computes the
|
||||
Green Tea is a zen, opinionated, type-safe framework: you declare what each step needs — it computes the
|
||||
order. One runtime dependency. Runs wherever JavaScript runs.
|
||||
</p>
|
||||
|
||||
<div class="btn-row hero__ctas">
|
||||
<a class="btn btn--primary" href="https://docs.green-tea.dev" target="_blank" rel="noopener noreferrer">
|
||||
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
|
||||
Get started
|
||||
</a>
|
||||
<a class="btn btn--ghost" href="https://github.com/green-tea-dev/green-tea" target="_blank" rel="noopener noreferrer">
|
||||
<a class="btn btn--ghost" href="https://github.com/Expressive-Tea/green-tea" target="_blank" rel="noopener noreferrer">
|
||||
GitHub
|
||||
</a>
|
||||
<a class="btn btn--ghost" href="https://www.npmjs.com/package/@green-tea/core" target="_blank" rel="noopener noreferrer">
|
||||
|
||||
@@ -10,11 +10,32 @@
|
||||
ergonomics. If you're tired of maintaining someone else's foundation, come try it.
|
||||
</p>
|
||||
|
||||
<form class="subscribe" action="/subscribe.php" method="post">
|
||||
<p class="subscribe__lead">Not ready yet? Get one email when 1.0 ships — nothing else.</p>
|
||||
<div class="subscribe__row">
|
||||
<label class="sr-only" for="sub-email">Email address</label>
|
||||
<input
|
||||
id="sub-email"
|
||||
class="subscribe__input"
|
||||
type="email"
|
||||
name="email"
|
||||
required
|
||||
maxlength="254"
|
||||
placeholder="you@company.com"
|
||||
autocomplete="email"
|
||||
/>
|
||||
<!-- honeypot: real people never fill this -->
|
||||
<input class="subscribe__hp" type="text" name="website" tabindex="-1" autocomplete="off" aria-hidden="true" />
|
||||
<button class="btn btn--primary" type="submit">Notify me at 1.0</button>
|
||||
</div>
|
||||
<p class="subscribe__msg" role="status" aria-live="polite"></p>
|
||||
</form>
|
||||
|
||||
<div class="btn-row honest__ctas">
|
||||
<a class="btn btn--primary" href="https://docs.green-tea.dev" target="_blank" rel="noopener noreferrer">
|
||||
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
|
||||
Read the docs
|
||||
</a>
|
||||
<a class="btn btn--ghost" href="https://github.com/green-tea-dev/green-tea" target="_blank" rel="noopener noreferrer">
|
||||
<a class="btn btn--ghost" href="https://github.com/Expressive-Tea/green-tea" target="_blank" rel="noopener noreferrer">
|
||||
Star on GitHub
|
||||
</a>
|
||||
</div>
|
||||
@@ -49,4 +70,110 @@
|
||||
font-size: 1.5rem;
|
||||
color: var(--matcha);
|
||||
}
|
||||
|
||||
.subscribe {
|
||||
max-width: 30rem;
|
||||
margin: 0 auto 2.5rem;
|
||||
}
|
||||
|
||||
.subscribe__lead {
|
||||
margin: 0 0 0.9rem;
|
||||
color: var(--dim);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.subscribe__row {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.subscribe__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 0.7rem 0.9rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid color-mix(in srgb, var(--dim) 35%, transparent);
|
||||
background: var(--base);
|
||||
color: var(--ink);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.subscribe__input:focus-visible {
|
||||
outline: 2px solid var(--matcha);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
/* honeypot — kept in the layout for bots, off-screen for humans */
|
||||
.subscribe__hp {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.subscribe__msg {
|
||||
margin: 0.75rem 0 0;
|
||||
min-height: 1.2em;
|
||||
font-size: 0.9rem;
|
||||
color: var(--matcha);
|
||||
}
|
||||
|
||||
.subscribe__msg[data-error] {
|
||||
color: var(--violet);
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.subscribe__row {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
const form = document.querySelector('.subscribe');
|
||||
if (form instanceof HTMLFormElement) {
|
||||
const msg = form.querySelector('.subscribe__msg');
|
||||
const button = form.querySelector('button');
|
||||
form.addEventListener('submit', async (event) => {
|
||||
event.preventDefault();
|
||||
if (button) button.disabled = true;
|
||||
if (msg) {
|
||||
msg.textContent = '';
|
||||
delete msg.dataset.error;
|
||||
}
|
||||
try {
|
||||
const res = await fetch(form.action, {
|
||||
method: 'POST',
|
||||
headers: { 'X-Requested-With': 'fetch' },
|
||||
body: new FormData(form),
|
||||
});
|
||||
const data = await res.json().catch(() => ({ ok: res.ok, message: '' }));
|
||||
if (msg) {
|
||||
msg.textContent = data.message || (data.ok ? "You're on the list." : 'Something went wrong.');
|
||||
if (!data.ok) msg.dataset.error = 'true';
|
||||
}
|
||||
if (data.ok) form.reset();
|
||||
} catch {
|
||||
if (msg) {
|
||||
msg.textContent = 'Network error — try again.';
|
||||
msg.dataset.error = 'true';
|
||||
}
|
||||
} finally {
|
||||
if (button) button.disabled = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,205 @@
|
||||
---
|
||||
// Curated from the core README's comparison table — the rows that differ most, kept honest.
|
||||
const cols = ['Express', 'Fastify', 'NestJS'];
|
||||
const rows = [
|
||||
{
|
||||
label: 'The pipeline is',
|
||||
others: ['a positional chain', 'hooks + plugins', 'DI + guards/interceptors'],
|
||||
gt: 'a graph, topologically sorted',
|
||||
},
|
||||
{
|
||||
label: 'Order comes from',
|
||||
others: ['the line you wrote it on', 'hook phase + registration', 'module wiring'],
|
||||
gt: 'what each step needs',
|
||||
},
|
||||
{
|
||||
label: 'Is req.user there?',
|
||||
others: ['hope so', 'hope so', 'if the guard ran'],
|
||||
gt: 'boot fails if nothing provides it',
|
||||
},
|
||||
{
|
||||
label: 'See the pipeline',
|
||||
others: ['read the code', 'read the code', 'paid Devtools'],
|
||||
gt: 'explain / graph, free',
|
||||
},
|
||||
{
|
||||
label: 'Real-time',
|
||||
others: ['bolt on a ws/sse lib', 'a plugin', 'a separate gateway'],
|
||||
gt: 'one AsyncIterable primitive',
|
||||
},
|
||||
{
|
||||
label: 'Runs on',
|
||||
others: ['Node', 'Node', 'Node'],
|
||||
gt: 'Node · Deno · Bun · edge',
|
||||
},
|
||||
{
|
||||
label: 'Runtime deps',
|
||||
others: ['minimal', 'minimal', 'heavy (rxjs, …)'],
|
||||
gt: 'reflect-metadata only',
|
||||
},
|
||||
];
|
||||
---
|
||||
|
||||
<section class="compare">
|
||||
<div class="wrap">
|
||||
<div class="compare__head">
|
||||
<p class="kicker">How it compares</p>
|
||||
<h2>Not another framework. A different model.</h2>
|
||||
<p class="compare__lede">
|
||||
Every framework here can serve <code>/users/:id</code>. The difference shows up as the app grows — more
|
||||
dependencies, real-time, more than one machine.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="compare__scroll" role="region" aria-label="Framework comparison" tabindex="0">
|
||||
<table class="compare__table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><span class="sr-only">Capability</span></th>
|
||||
{cols.map((c) => <th scope="col">{c}</th>)}
|
||||
<th scope="col" class="is-gt">Green Tea<span class="is-gt__dot">.</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{
|
||||
rows.map((row) => (
|
||||
<tr>
|
||||
<th scope="row">{row.label}</th>
|
||||
{row.others.map((cell) => (
|
||||
<td>{cell}</td>
|
||||
))}
|
||||
<td class="is-gt">{row.gt}</td>
|
||||
</tr>
|
||||
))
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="compare__foot">
|
||||
Same idea, said plainly: other stacks answer <em>“what does this handler depend on?”</em>, <em>“how do I push
|
||||
data over time?”</em> and <em>“how do I call another service?”</em> with three subsystems. Green Tea answers
|
||||
all three with one — the graph.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.compare {
|
||||
/* the panel-vs-base rhythm alternates; this sits between two panels, so keep it base */
|
||||
background: var(--base);
|
||||
}
|
||||
|
||||
.compare__head {
|
||||
max-width: 60ch;
|
||||
margin: 0 auto 2.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.compare__lede {
|
||||
color: var(--dim);
|
||||
font-size: 1.1rem;
|
||||
margin: 0.75rem auto 0;
|
||||
max-width: 54ch;
|
||||
}
|
||||
|
||||
.compare__lede code {
|
||||
background: var(--panel);
|
||||
border-radius: 4px;
|
||||
padding: 0.15em 0.4em;
|
||||
font-size: 0.9em;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* Horizontal scroll on narrow screens without ever scrolling the page body. */
|
||||
.compare__scroll {
|
||||
overflow-x: auto;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(139, 148, 158, 0.18);
|
||||
}
|
||||
|
||||
.compare__scroll:focus-visible {
|
||||
outline: 2px solid var(--matcha);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.compare__table {
|
||||
width: 100%;
|
||||
min-width: 720px;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.compare__table th,
|
||||
.compare__table td {
|
||||
padding: 0.85rem 1.1rem;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
border-bottom: 1px solid rgba(139, 148, 158, 0.12);
|
||||
}
|
||||
|
||||
/* row headers (the capability being compared) */
|
||||
.compare__table tbody th {
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* competitor cells read quiet */
|
||||
.compare__table tbody td {
|
||||
color: var(--dim);
|
||||
}
|
||||
|
||||
.compare__table thead th {
|
||||
font-weight: 600;
|
||||
color: var(--dim);
|
||||
font-size: 0.85rem;
|
||||
letter-spacing: 0.02em;
|
||||
border-bottom-color: rgba(139, 148, 158, 0.25);
|
||||
}
|
||||
|
||||
/* the Green Tea column: lit, matcha, load-bearing */
|
||||
.compare__table .is-gt {
|
||||
background: rgba(95, 184, 138, 0.07);
|
||||
color: var(--ink);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.compare__table thead .is-gt {
|
||||
color: var(--matcha);
|
||||
font-weight: 700;
|
||||
font-family: var(--font-heading);
|
||||
letter-spacing: 0;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.is-gt__dot {
|
||||
color: var(--violet);
|
||||
}
|
||||
|
||||
.compare__foot {
|
||||
max-width: 62ch;
|
||||
margin: 2rem auto 0;
|
||||
text-align: center;
|
||||
color: var(--dim);
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.compare__foot em {
|
||||
color: var(--ink);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -7,8 +7,10 @@
|
||||
<h2>One primitive for real-time.</h2>
|
||||
|
||||
<p class="realtime__body">
|
||||
SSE, ndjson, or a duplex WebSocket — return an <code>AsyncIterable</code>. One mental model, one line. No
|
||||
separate gateway, no bolt-on package.
|
||||
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.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -16,7 +16,11 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
|
||||
{chips.map((chip) => <li><code>{chip}</code></li>)}
|
||||
</ul>
|
||||
|
||||
<p class="runs__micro">Built on web standards. Not hostage to a runtime's fate.</p>
|
||||
<p class="runs__micro">
|
||||
Built on web standards. Not hostage to a runtime's fate. <span class="runs__caveat"
|
||||
>(The edge has no filesystem, so file-backed views and static serving stay on the server runtimes.)</span
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -68,4 +72,12 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
|
||||
font-size: 0.9rem;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* The caveat is true and belongs on the page, but it shouldn't outshout the claim. */
|
||||
.runs__caveat {
|
||||
display: block;
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.75;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,62 @@
|
||||
---
|
||||
title: "I benchmarked green-tea honestly. The network humbled it."
|
||||
description: "Every framework claims it's faster. I put green-tea on two real machines with a real network between them and watched most of that story evaporate — plus the O(n²) I found in my own code while I was there."
|
||||
pubDate: 2026-07-17
|
||||
author: "Diego Reséndez"
|
||||
tags: ["green-tea", "benchmarks", "honesty"]
|
||||
---
|
||||
|
||||
Every framework's landing page has the same line: *mine is faster.* Usually there's a chart. Usually green bars, the author's framework on top.
|
||||
|
||||
I could show you that chart for green-tea. On a single machine, over loopback, it sits at the top of the pack — ahead of Express, ahead of Fastify. It's true. It's also the least honest number I could put in front of you. So let me tell you what happens when you stop benchmarking against yourself.
|
||||
|
||||
## The setup
|
||||
|
||||
Two bare-metal machines. One runs the server. The other does nothing but generate load. They're wired together on a real gigabit network, 0.2ms apart — not a laptop talking to itself over loopback, but the shape an actual deployment has: a client, a wire, a server.
|
||||
|
||||
## What the network does to the leaderboard
|
||||
|
||||
The moment there's a wire between client and server, two things happen. Every number drops, and the gaps between frameworks close.
|
||||
|
||||
| Framework | Requests/sec (two machines, 1GbE) |
|
||||
| --- | --- |
|
||||
| raw Node `http` (no framework) | 40,300 |
|
||||
| Fastify | 34,000 |
|
||||
| Nest (on Fastify) | 28,600 |
|
||||
| **green-tea** | **28,200** |
|
||||
| Express | 9,800 |
|
||||
| Nest (on Express) | 8,900 |
|
||||
|
||||
Here's the uncomfortable part for anyone selling speed: at a realistic one-request-at-a-time load, the server sat nearly idle — single-digit CPU — while throughput flatlined. It wasn't the framework working hard. It was the round-trip. Add more connections and you only add latency; the ceiling doesn't move, because the bottleneck was never the framework. It was the network you'll actually deploy on.
|
||||
|
||||
So the "3× faster than Express" you see in loopback charts? That's a measurement of CPU overhead in a vacuum, and real traffic rarely lives there. Over the wire, green-tea lands right in the fast group — a hair behind Fastify, tied with Nest-on-Fastify, and still comfortably ahead of the Express-based stacks. Not *the* fastest. *With* the fastest. That's the honest sentence, and it's the one I'm comfortable shipping.
|
||||
|
||||
## The part no Node-only framework can show you
|
||||
|
||||
green-tea runs the same app on Node, Bun, and Deno — you swap the entry point, not the code. So I ran the identical app on all three:
|
||||
|
||||
| Runtime | Requests/sec (same green-tea app) |
|
||||
| --- | --- |
|
||||
| Deno | 44,800 |
|
||||
| Bun | 44,100 |
|
||||
| Node | 27,900 |
|
||||
|
||||
On normal traffic, Bun and Deno serve the same green-tea app at roughly 1.6× Node's throughput — free, for changing one line. An honest footnote: Bun's server actually gets *slower* under HTTP pipelining, and I'm not going to pretend I understand why yet — but I'm not going to hide it either. Deno scaled the cleanest.
|
||||
|
||||
Express, Fastify, and Nest can't play this game at all. They're Node-only. This is the one benchmark where green-tea isn't competing — it's alone.
|
||||
|
||||
## While I was here, I broke my own framework
|
||||
|
||||
Stress-testing is where you find the skeletons. I pushed a request pipeline to an absurd depth — far past anything a real app would build — and watched throughput fall off a cliff. That shouldn't happen: the graph is sorted once at boot, so running it should be cheap and linear in the number of steps.
|
||||
|
||||
It was quadratic. One line in the step runner rebuilt the *entire* request context on every step — copy the whole thing, every time, growing as it went. Harmless at three steps. Brutal at a hundred. I changed it to merge in place instead of rebuild: one line, O(n²) → O(n), and the deep case got 2.5× faster with the full test suite still green.
|
||||
|
||||
You will almost certainly never write a pipeline deep enough to have felt it. I fixed it anyway — because that's the job, and because I'd rather tell you I found it than have you find it.
|
||||
|
||||
## What I'm actually claiming
|
||||
|
||||
Not that green-tea is the fastest thing on the internet. Over a real network, "fastest framework" is mostly a rounding error — the wire has the final say, and everyone in the fast group is close. What green-tea gives you is a model that doesn't fight you, the same app on four runtimes, and someone who benchmarks it honestly enough to publish the parts that don't flatter it.
|
||||
|
||||
Performance is table stakes, and green-tea clears the bar. The reason to use it was never the benchmark.
|
||||
|
||||
That's the tea. 🍵
|
||||
@@ -26,7 +26,7 @@ That's Green Tea.
|
||||
|
||||
The core idea is simple to say and took a long time to get right: the request pipeline is an explicit dependency graph, not a mutable middleware chain. You don't push handlers onto a stack and hope the order holds. You declare what each step needs — `@needs('user')`, say — and the framework computes the order for you. There's no chain to get wrong, because there's no chain.
|
||||
|
||||
Real-time isn't bolted on either. It's one primitive: return an `AsyncIterable` and you have a stream, whether that stream is a WebSocket, an SSE connection, or something else entirely. One shape, one mental model, no separate package to reconcile with the rest of the framework.
|
||||
Real-time isn't bolted on either. It's one primitive — an `AsyncIterable` — for every kind of stream: a WebSocket, an SSE connection, an ndjson feed. You declare which transport with a decorator and return the iterable; one shape, one mental model, no separate package to reconcile with the rest of the framework.
|
||||
|
||||
And because none of it depends on Express or Node's http module specifically, it runs on Node, on Deno, on Bun, and on the edge — built on web standards instead of one runtime's particular APIs. One runtime dependency, total. Not a supply chain, one dependency.
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ interface Props {
|
||||
}
|
||||
|
||||
const {
|
||||
title = 'Green Tea. — A zen, opinionated, type-safe framework.',
|
||||
title = 'Green Tea — A zen, type-safe graph-pipeline HTTP framework',
|
||||
description = 'Green Tea is a graph-pipeline HTTP framework: declare what you need, not the order to build it. Runtime-agnostic, type-safe, calm by design.',
|
||||
image = '/og.png',
|
||||
} = Astro.props;
|
||||
|
||||
@@ -2,13 +2,15 @@
|
||||
import Base from '../layouts/Base.astro';
|
||||
import Hero from '../components/sections/Hero.astro';
|
||||
import GraphNotChain from '../components/sections/GraphNotChain.astro';
|
||||
import HowItCompares from '../components/sections/HowItCompares.astro';
|
||||
import RunsEverywhere from '../components/sections/RunsEverywhere.astro';
|
||||
import RealTime from '../components/sections/RealTime.astro';
|
||||
import Batteries from '../components/sections/Batteries.astro';
|
||||
import SeeIt from '../components/sections/SeeIt.astro';
|
||||
import Faq from '../components/sections/Faq.astro';
|
||||
import HonestBeta from '../components/sections/HonestBeta.astro';
|
||||
|
||||
const title = 'Green Tea. — A zen, opinionated, type-safe framework';
|
||||
const title = 'Green Tea — Type-safe graph-pipeline framework for Node, Deno & Bun';
|
||||
const description =
|
||||
'Your API is a graph, not a middleware chain. Declare what each step needs and Green Tea computes the order — one runtime dependency, type-safe, runtime-agnostic, calm by design.';
|
||||
---
|
||||
@@ -16,9 +18,11 @@ const description =
|
||||
<Base title={title} description={description}>
|
||||
<Hero />
|
||||
<GraphNotChain />
|
||||
<HowItCompares />
|
||||
<RunsEverywhere />
|
||||
<RealTime />
|
||||
<Batteries />
|
||||
<SeeIt />
|
||||
<Faq />
|
||||
<HonestBeta />
|
||||
</Base>
|
||||
Reference in new issue
Block a user