Diffinery

homeflare/celldpublic

celld/examples/README.md
30 lines · 1.2 KBRaw History
1# Examples
2
3These small Wrangler projects demonstrate progressively more of the Worker and
4Durable Object surface supported by `celld`:
5
6- `hello/` — a stateless Worker `fetch` handler
7- `webapi/` — common Web Platform APIs
8- `counter/` — a SQLite-backed Durable Object
9- `vectordb/` — nearest-color search with a per-object `vec0` index
10- `d1/` — a guestbook on a D1 database
11- `async/` — a timer, an outbound fetch, and asynchronous storage
12- `body/` — request and response bodies
13- `router/` — Worker-to-Durable-Object routing
14- `wsecho/` — WebSocket echo with hibernation
15- `wsclient/` — outbound WebSocket client from a Durable Object
16- `alarm/` — a Durable Object alarm handler
17- `cron/` — a cron trigger that writes each tick into a Durable Object
18- `rpc/` — JS RPC: Durable Object methods, a named entrypoint, callbacks,
19 `RpcTarget`, and promise pipelining
20- `wasm/` — a Durable Object counter in Rust, compiled to Wasm with
21 [workers-rs](https://github.com/cloudflare/workers-rs); needs a build
22 step first (see its [README](wasm/README.md))
23
24Deploy an example from its directory to the same bucket the nodes use:
25
26```sh
27celld deploy . --bucket s3://my-cells-bucket
28```
29
30They are examples, not the complete compatibility test suite.