docs(site): document matcha, stop contradicting the transport rule, drop Node-only

The streaming guide argued with itself: the table said a plain return
streams by Accept while the section below it, added with the
explicit-transport change, said that same return is a 500. The prose got
swept, the table didn't.

Getting started said green-tea targets Node — true when written, wrong
since the Deno/Bun/edge adapters landed — and led with a manual install
even though matcha scaffolds a live app in two commands. matcha had no
page at all, so the CLI was invisible to anyone reading the docs.

site: pointed at green-tea.dev, which is the marketing site's domain; the
docs deploy to docs.green-tea.dev.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-17 09:29:04 -05:00
1 parent 0541464093
commit c12be9a2f5
6 files changed
+100 -7

No files matched your search

+13 -2
View File
@@ -3,7 +3,16 @@ title: Getting started
description: Install green-tea, configure TypeScript decorators, and build your first graph-based route.
---
## Install
## Scaffold it
The fastest path is [matcha](/guides/cli/), green-tea's CLI. It writes a project that runs on the first command — no wiring, no config:
```bash
matcha new my-api # --runtime node (default) | deno | bun
cd my-api && matcha run
```
## Or install by hand
```bash
npm install @green-tea/core reflect-metadata
@@ -12,7 +21,9 @@ npm install ws # WebSocket routes (@Ws) and mesh
npm install busboy # multipart/form-data file uploads
```
green-tea targets **Node ≥ 18** and uses **legacy** TypeScript decorators. Enable them in your `tsconfig.json`:
green-tea runs on **Node ≥ 18, Deno, Bun, and the edge** — the same app, you only swap the entry point. This guide uses Node; see [runtimes](/guides/runtimes/) for the others and for what the edge can't offer.
green-tea uses **legacy** TypeScript decorators. Enable them in your `tsconfig.json`:
```json
{