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>
19 lines
705 B
Markdown
19 lines
705 B
Markdown
# green-tea examples
|
|
|
|
Each file is a runnable app. Run one with `tsx`, which is already a dev dependency:
|
|
|
|
```bash
|
|
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
|
|
```
|
|
|
|
`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
|
|
```
|