feat: ship llms.txt, a guide for LLM coding agents, in the npm and JSR packages

green-tea is new, so coding agents have no training data on it and
write Express: app.use, next(), res.status().json(). llms.txt states
what differs: the mental model, a complete app, the decorators and
built-in tokens, how to return responses, the options agents usually
need, common mistakes with the correct form, testing, and how to
inspect an app first.

Every code block was typechecked against src/, and each behavioural
claim was checked with a small probe app.

The file ships inside the package, so it always matches the installed
version. matcha's scaffolded AGENTS.md points at it. Only a packaged
file is added; the API is unchanged.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-10-30 20:30:05 -05:00
1 parent 6eaa519059
commit 4877ea1754
5 files changed
+330 -1

No files matched your search

+1
View File
@@ -318,6 +318,7 @@ green-tea is **beta**, on the road to a release candidate. Express and Fastify h
## Docs & development
- **[green-tea.expressive-tea.io/docs](https://green-tea.expressive-tea.io/docs)** — getting started, concepts (the graph, `flow`), and guides: routing, DI, validation, uploads, streaming, HTML, security, errors, introspection, OpenAPI, plugins, mesh, runtimes, testing. Its source lives in [green-tea-docs](https://github.com/Expressive-Tea/green-tea-docs).
- **For LLM coding agents:** [`llms.txt`](./llms.txt) ships in the package (`node_modules/@green-tea/core/llms.txt`) and matches the installed version; the docs serve the whole site as one file at [`/docs/llms-full.txt`](https://green-tea.expressive-tea.io/docs/llms-full.txt).
- **[matcha](https://github.com/Expressive-Tea/matcha)** — the CLI. `matcha new` scaffolds a project (Node, Deno, or Bun), `matcha create` generates and auto-wires controllers/steps/providers/modules, `matcha run` detects your runtime and watches. A standalone Rust binary — no JS runtime needed to install it.
> **Changing public API? The docs are a separate repository now, and nothing tells you when you break them.**