Files
core/example
chrnx 75f9583068
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 21s
CI / build (pull_request) Successful in 31s
CI / runtimes (edge) (pull_request) Successful in 23s
CI / runtimes (deno) (pull_request) Successful in 34s
docs: bring the contributor docs and examples in line with the repository
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>
2026-10-28 14:32:03 -05:00
..

green-tea examples

Each file is a runnable app. Run one with tsx, which is already a dev dependency:

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:

curl -H 'x-token: u1' http://localhost:3000/api/users/9