| 1 | # Cloudflare service compatibility |
| 2 | |
| 3 | celld runs the Workers and Durable Objects programming model, not the whole |
| 4 | Cloudflare platform. The scope rule is simple: **anything built on Durable |
| 5 | Objects is in reach; a fundamentally different primitive is out.** Cloudflare |
| 6 | builds D1 on Durable Objects, so a D1 binding is a thin layer over what celld |
| 7 | already has. KV is a globally-replicated eventually-consistent edge cache and |
| 8 | R2 is blob storage — different systems, not on the roadmap. |
| 9 | |
| 10 | Unsupported bindings fail loudly at deploy or at first use. Silent |
| 11 | compatibility gaps are bugs. |
| 12 | |
| 13 | ## Supported |
| 14 | |
| 15 | | service | notes | |
| 16 | | --- | --- | |
| 17 | | **Durable Objects** | The core. SQLite storage, alarms, inbound hibernatable WebSockets, outbound `ws:`/`wss:` WebSocket clients (constructor and `fetch()` upgrade), single-writer semantics, addressed by name. | |
| 18 | | **Workers** | Module Workers: `fetch`, service bindings, Durable Object bindings. | |
| 19 | | **Static assets** | Co-deployed immutable files, served from the fleet bucket: `assets.directory`, `binding`, `html_handling`, `not_found_handling`, `run_worker_first`, plus `_headers` and `_redirects`. Asset-only projects deploy without a Worker. | |
| 20 | |
| 21 | ## Planned |
| 22 | |
| 23 | | service | notes | |
| 24 | | --- | --- | |
| 25 | | **D1** | A D1 database is a Durable Object with a SQL API; celld already has the hard part. Coming soon. | |
| 26 | | **Workflows** | Durable execution over cells and alarms. | |
| 27 | | **Queues** | DO-shaped; will be added if demand appears. | |
| 28 | |
| 29 | ## Not planned |
| 30 | |
| 31 | | service | why | |
| 32 | | --- | --- | |
| 33 | | **KV** | A globally-distributed eventually-consistent edge cache — a different consistency model, not built on Durable Objects. | |
| 34 | | **R2** | Blob object storage is what celld runs *on* (your bucket), not what it provides. Declared `r2_buckets` bindings load, but every method throws. | |
| 35 | | **Cache API** | An edge HTTP cache is a platform feature, not a durability primitive. | |
| 36 | | **Workers AI, Vectorize, Hyperdrive, Browser Rendering, Email** | Managed platform services with no self-hosted equivalent in scope. | |
| 37 | | **Cron triggers, custom domains, TLS termination** | Platform surface. celld has its own durable alarms; put TLS in your ingress proxy. | |
| 38 | |
| 39 | ## Wrangler configuration |
| 40 | |
| 41 | `celld deploy` builds a standard Wrangler project (esbuild on `PATH`) and |
| 42 | accepts `wrangler.jsonc` or `wrangler.json` — not `wrangler.toml`. The |
| 43 | supported config keys are `name`, `main`, `compatibility_date`, |
| 44 | `compatibility_flags`, `durable_objects`, `migrations`, and `assets`; `main` |
| 45 | may be omitted for an asset-only project. Symlinks and special files in the |
| 46 | asset directory are refused, and `.assetsignore` still requires Wrangler. Any |
| 47 | other key — `routes`, `vars`, `kv_namespaces`, and the rest — fails the |
| 48 | deploy with an error naming it rather than being silently dropped. Remove it |
| 49 | or deploy that project with Wrangler. |
| 50 | |
| 51 | See the [v0.0.1 limitations](limitations.md) for the exact boundary of the |
| 52 | implemented Worker surface in this release. |