Diffinery

homeflare/celldpublic

celld/examples/README.md
28 lines · 1.1 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- `async/` — a timer, an outbound fetch, and asynchronous storage
11- `body/` — request and response bodies
12- `router/` — Worker-to-Durable-Object routing
13- `wsecho/` — WebSocket echo with hibernation
14- `wsclient/` — outbound WebSocket client from a Durable Object
15- `alarm/` — a Durable Object alarm handler
16- `rpc/` — JS RPC: Durable Object methods, a named entrypoint, callbacks,
17 `RpcTarget`, and promise pipelining
18- `wasm/` — a Durable Object counter in Rust, compiled to Wasm with
19 [workers-rs](https://github.com/cloudflare/workers-rs); needs a build
20 step first (see its [README](wasm/README.md))
21
22Deploy an example from its directory to the same bucket the nodes use:
23
24```sh
25celld deploy . --bucket s3://my-cells-bucket
26```
27
28They are examples, not the complete compatibility test suite.