Diffinery

homeflare/celldpublic

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