docs: bring the contributor docs and examples in line with the repository
CI / dco (pull_request) Successful in 5s
CI / runtimes (bun) (pull_request) Successful in 21s
CI / build (pull_request) Successful in 29s
CI / runtimes (edge) (pull_request) Successful in 22s
CI / runtimes (deno) (pull_request) Successful in 33s

CONTRIBUTING said none of the Deno, Bun or edge suites run in CI. They do:
the runtimes job runs all three on every push and gates a merge. It now
says so, names test:all, and lists the audit step CI runs.

The README's benchmark section quoted a ranking against Fastify that went
stale with the next measurement. It now explains what the harness measures
and why, and leaves every number to BENCHMARKS.md. The install section
states the Node 22 floor and that Node 18 and 20 are not supported.

The PR template asks which runtime suites were run. The example README
pointed at ts-node, which is not a dependency, and a dist path tsup never
builds; it now runs each example with tsx. example/server.ts crashed at
boot because its teacup lacked experimental: true.

docs/plans held agent implementation plans from August and September.
Those belong in .specs/, which is not committed, so they leave the
repository. The three places that linked the mesh degrade plan now
describe the planned expects list instead.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-10-28 14:35:01 -05:00
1 parent 4e4553cdc8
commit 02f0473bfc
18 files changed
+49 -2812

No files matched your search

+14 -7
View File
@@ -1,11 +1,18 @@
````markdown
# green-tea example
# green-tea examples
Each file is a runnable app. Run one with `tsx`, which is already a dev dependency:
```bash
npx ts-node example/server.ts # or: npm run build && node dist/example/server.js
curl -H 'x-token: u1' http://localhost:3000/api/users/9
npx tsx example/server.ts # the tour, below
npx tsx example/crud.ts # a CRUD API over an in-memory store, on :3300
npx tsx example/chat.ts # WebSocket rooms, on ws://localhost:4100/chat/:room?token=...
npx tsx example/graphql.ts # GraphQL queries and subscriptions over SSE, on :4200/graphql
```
Demonstrates: typed context contract, graph-derived order, `app.inspect()`,
and a logger plugin that observes the bus without touching the chain.
````
`server.ts` demonstrates the typed context contract, graph-derived order, `app.inspect()`, a
logger plugin that observes the bus without touching the chain, streams, and a mesh teapot and
teacup. Try it with:
```bash
curl -H 'x-token: u1' http://localhost:3000/api/users/9
```
+1
View File
@@ -122,6 +122,7 @@ if (require.main === module) {
console.log('teapot on http://localhost:3002');
const teacupApp = createApp({
modules: [TeacupModule],
experimental: true,
mesh: { teapots: [{ url: `ws://127.0.0.1:3002${MESH_CONTROL_PATH}`, secret: 'demo-secret' }] },
});
teacupApp.listen(3003).then(() => console.log('teacup on http://localhost:3003'));