| 1 | # Cloudflare compatibility |
| 2 | |
| 3 | celld implements the Cloudflare Workers APIs that this page links to. The notes |
| 4 | under each API list only the celld gaps and differences. |
| 5 | |
| 6 | - **Yes** means that an application that uses the API runs on celld. The notes |
| 7 | list each difference from Cloudflare and each method that is not available. |
| 8 | - **Partial** means that a large part of the API is missing, so an application |
| 9 | that depends on that part does not run. |
| 10 | - **Experimental** means that the API needs an opt-in setting, and it can change |
| 11 | without notice. |
| 12 | - **No** means that celld does not implement the API. |
| 13 | |
| 14 | celld must reject an unsupported configuration or API at deployment or first |
| 15 | use. An unsupported feature that does not cause an error is a defect. This page |
| 16 | identifies each known exception. |
| 17 | |
| 18 | ## Services |
| 19 | |
| 20 | | service | status | |
| 21 | | --- | --- | |
| 22 | | [Workers](#workers) | **Yes** | |
| 23 | | [Durable Objects](#durable-objects) | **Yes** | |
| 24 | | [Durable Object Facets](#durable-object-facets) | **Experimental** | |
| 25 | | [Static assets](#static-assets) | **Yes** | |
| 26 | | [Cron Triggers](#cron-triggers) | **Yes** | |
| 27 | | [Dynamic Workers](#dynamic-workers) | **Experimental** | |
| 28 | | [KV](#kv) | **Yes** | |
| 29 | | [Queues](#queues) | **Yes** | |
| 30 | | [D1](#d1) | **Yes** | |
| 31 | | [Workflows](#workflows) | **Yes** | |
| 32 | | [R2](#r2) | **Yes** | |
| 33 | | Workers AI | **No** | |
| 34 | | Vectorize | **No** | |
| 35 | | Hyperdrive | **No** | |
| 36 | | Browser Rendering | **No** | |
| 37 | | Email Workers | **No** | |
| 38 | | Python Workers | **No** | |
| 39 | |
| 40 | ### [Workers](https://developers.cloudflare.com/workers/runtime-apis/) |
| 41 | |
| 42 | - The [runtime API table](#runtime-apis) lists the Worker runtime gaps. |
| 43 | - celld does not manage a custom domain or terminate TLS. Terminate TLS in the |
| 44 | ingress proxy. |
| 45 | - An outbound `fetch` accepts an `AbortSignal` in its options. An abort rejects |
| 46 | the call with the reason of the signal, and it cancels the request that is in |
| 47 | flight, so the destination gets a disconnect. celld reads only a signal that |
| 48 | the caller supplies. An incoming request carries its own signal for the |
| 49 | disconnect of the client, and a subrequest does not inherit it. |
| 50 | - celld does not host a model, so Workers AI is not available. An experimental |
| 51 | HTTP adapter lets an application that calls `env.AI.run()` deploy unchanged: |
| 52 | with `CELLD_AI_URL` set, the `run` method posts the model and the input as |
| 53 | JSON to that URL. The `run` method takes a third options argument. |
| 54 | `returnRawResponse: true` gives back the unconsumed upstream `Response`, so |
| 55 | an application can read a streaming completion chunk by chunk. The raw option gives back the `Response` |
| 56 | for an error status too, so the application must test `ok` or `status` |
| 57 | itself. The default parses the upstream body as JSON, and it throws |
| 58 | an `Error` for a status that is not 2xx. The message of that `Error` gives |
| 59 | the status and the first 512 characters of the upstream body, so an |
| 60 | application can see the cause. A `signal` option cancels the request |
| 61 | through the same `fetch` mechanism, and it also cancels a response body that |
| 62 | the application is reading. |
| 63 | |
| 64 | ### [Durable Objects](https://developers.cloudflare.com/durable-objects/) |
| 65 | |
| 66 | - An RPC stub cannot cross an isolate boundary. See [RPC](#rpc). |
| 67 | - An outbound WebSocket does not continue after the object moves to another |
| 68 | node. |
| 69 | - celld refuses invalid UTF-8 from a SQLite `TEXT` value. Store arbitrary |
| 70 | bytes in a `BLOB`. |
| 71 | - `SqlStorage.Cursor.toArray()` gives a celld-specific error when the isolate |
| 72 | is near its V8 heap limit. |
| 73 | - `storage.sync()` resolves only after the object store or the fleet ensemble |
| 74 | holds every write that the object committed before the call. The promise |
| 75 | rejects when celld cannot prove the writes durable before the shorter of |
| 76 | the durability budget (`CELLD_LTX_DURABILITY_TIMEOUT_SECS`, default: 10 |
| 77 | seconds, counted from the start of the write's upload) and |
| 78 | `CELLD_OPERATION_DEADLINE_MS` (default: 15000 milliseconds). celld then |
| 79 | resets the object and restores the proven history. The reset can stop the |
| 80 | object before the handler observes the rejection, so an application must not |
| 81 | depend on the rejection to recover. |
| 82 | - `storage.sync()` rejects while a `transaction()` is open on the object, |
| 83 | because the transaction is not committed and no proof can cover its writes. |
| 84 | Call `sync()` after the transaction commits. A `sync()` promise that a |
| 85 | `transactionSync()` callback creates settles after the callback returns, so |
| 86 | it covers the committed transaction. If the callback rolls back, an existing |
| 87 | `sync()` promise resolves after the rollback without preserving canceled writes. |
| 88 | - `storage.sync()` rejects after `ctx.abort()` or a failed |
| 89 | `blockConcurrencyWhile()` aborted the object. |
| 90 | - A transaction handle rejects new storage operations after the transaction |
| 91 | commits or rolls back. Calling `rollback()` again after a rollback has no |
| 92 | effect. A rollback also cancels writes submitted without an `await` inside |
| 93 | that transaction. A nested rollback preserves the outer transaction's writes. |
| 94 | - A callback that finishes after an object abort cannot release a newer |
| 95 | critical section's input gate or stop the node with a stale gate release. |
| 96 | - A `transaction()` callback runs under the input gate, as in Workerd: no |
| 97 | other event starts in the object until the callback returns. celld does not |
| 98 | hold an event that was already waiting on a subrequest or a timer when the |
| 99 | callback started. That event resumes during the callback, and its writes |
| 100 | join the open transaction. A callback that runs for more than 30 seconds |
| 101 | resets the object and rolls the transaction back, because the limit of |
| 102 | `blockConcurrencyWhile()` applies to it. A callback that throws rolls the |
| 103 | transaction back and rejects, and the object continues. A block that |
| 104 | starts nested blocks and does not await them holds the gate until they |
| 105 | settle, each within its own 30 seconds, as nested critical sections do in |
| 106 | Workerd. |
| 107 | - A `blockConcurrencyWhile()` callback continues after the client of its |
| 108 | request disconnects. The object serves the next event when the callback |
| 109 | settles. |
| 110 | - With `CELLD_OUTPUT_GATE=0`, or with no object store configured, |
| 111 | `storage.sync()` resolves after the local commit and does not wait for a |
| 112 | durability proof. |
| 113 | - A handler that fails after it writes answers only after the write is |
| 114 | durable. celld holds the error behind the same output gate as a success, |
| 115 | because the write is committed and a later request can read it. This rule |
| 116 | applies to a `fetch` or RPC handler that throws or returns an invalid |
| 117 | response, to a `webSocketMessage`, `webSocketOpen`, or `webSocketClose` |
| 118 | handler, and to an `alarm` handler. When celld cannot prove the write durable |
| 119 | before the shorter of `CELLD_LTX_DURABILITY_TIMEOUT_SECS` and |
| 120 | `CELLD_OPERATION_DEADLINE_MS`, the request fails with a durability error and |
| 121 | celld resets the object. With `CELLD_OUTPUT_GATE=0`, the error leaves after |
| 122 | the local commit. |
| 123 | - A handler that fails without a write of its own answers only after every |
| 124 | write that the object holds is durable. The message of a handler that throws |
| 125 | can carry a value that the handler read, so celld holds the error as it holds |
| 126 | a read-only response. A failure that celld raises, and not the handler — a |
| 127 | handler over its time budget, or a handler that waits on nothing — carries no |
| 128 | value from the object, so it leaves at once. |
| 129 | |
| 130 | ### [Static assets](https://developers.cloudflare.com/workers/static-assets/) |
| 131 | |
| 132 | - celld does not compress an asset response. Put a compressing proxy in front |
| 133 | of the fleet when a client needs gzip or brotli. |
| 134 | - celld has no edge cache. A node downloads an asset from the bucket on the |
| 135 | first request, and it keeps a local disk cache of 512 MiB |
| 136 | (`CELLD_ASSET_CACHE_BYTES`). Each response carries an `etag` and |
| 137 | `cache-control: public, max-age=0, must-revalidate`, so a browser |
| 138 | revalidates with `If-None-Match` and gets `304`. |
| 139 | - A node that has not restarted after a new deployment serves the new |
| 140 | deployment's content-hashed assets. celld checks the deployment pointer |
| 141 | after an asset miss, at most one time in 5 seconds. |
| 142 | - A `_headers` file cannot set or remove `connection`, `content-length`, or |
| 143 | `transfer-encoding`. |
| 144 | - celld enforces the Cloudflare rule limits at deployment, so a `_headers` |
| 145 | file with more than 100 rules or a `_redirects` file with more than 2,000 |
| 146 | static or 100 dynamic rules stops the deploy. Each directive file has a |
| 147 | 100 KiB limit. |
| 148 | - `celld deploy` does not read `.assetsignore`, and a project that contains |
| 149 | one must deploy with Wrangler. The command refuses a symbolic link, a |
| 150 | special file, a non-UTF-8 name, a path above 1024 bytes, a path that |
| 151 | changes under percent-decoding, and a `_worker.js` entry. |
| 152 | - A deployment can contain at most 20,000 assets, 25 MiB for each asset, and |
| 153 | 1 GiB in total. |
| 154 | |
| 155 | ### [Cron Triggers](https://developers.cloudflare.com/workers/configuration/cron-triggers/) |
| 156 | |
| 157 | - celld rejects a descending range such as `SAT-SUN` or `NOV-FEB`. |
| 158 | - celld rejects `*` inside a list such as `1,*`. |
| 159 | - celld runs one handler for each occurrence across the complete fleet. |
| 160 | - After fleet downtime, celld runs the most recent missed occurrence one time. |
| 161 | - celld runs one handler at a time for each script. It retries a failed handler |
| 162 | until the next occurrence unless the handler calls `noRetry()`. |
| 163 | - A service-binding target cannot run its own Cron Triggers. |
| 164 | |
| 165 | ### [Dynamic Workers](https://developers.cloudflare.com/dynamic-workers/) |
| 166 | |
| 167 | - Dynamic Workers are experimental. `CELLD_WORKER_LOADER=LOADER` exposes the |
| 168 | Worker Loader binding at `env.LOADER`. |
| 169 | - `getDurableObjectClass()` returns a class for a Durable Object facet. |
| 170 | - A call into a loaded Worker from a Durable Object waits for a durability proof |
| 171 | of the object's writes, because the call carries the object's state. A |
| 172 | service-binding call waits in the same way. |
| 173 | - A `globalOutbound` Fetcher is not available. |
| 174 | - A loaded Worker cannot receive a capability stub in `env`. |
| 175 | - Awaitable and pipelined properties are not available. |
| 176 | |
| 177 | ### [Durable Object Facets](https://developers.cloudflare.com/dynamic-workers/usage/durable-object-facets/) |
| 178 | |
| 179 | - Facets are experimental, and they require Dynamic Workers. `ctx.facets` |
| 180 | supports `get()`, `abort()`, and `delete()` for a class from the Worker |
| 181 | Loader binding. |
| 182 | - A facet has an isolated SQLite database, and celld replicates this database |
| 183 | with the root Durable Object. |
| 184 | - A facet writes into the database of the root Durable Object, so an outbound |
| 185 | effect from inside a facet waits for the durability proof of that object. |
| 186 | `storage.sync()` inside a facet makes the same statement about that object. |
| 187 | - A facet class from `ctx.exports` or a Durable Object binding is not |
| 188 | available. The `clone()` method is also not available. |
| 189 | - A `props` value for `getDurableObjectClass()` must be JSON-serializable. |
| 190 | |
| 191 | ### [KV](https://developers.cloudflare.com/kv/api/) |
| 192 | |
| 193 | - celld has no edge cache. `cacheTtl` has no effect, and `cacheStatus` is |
| 194 | `null`. |
| 195 | - A value above 1 MiB requires a fleet bucket. |
| 196 | - celld stores a separate object when an application writes an identical large |
| 197 | value after a namespace changes owners. The separate object prevents an old |
| 198 | owner from deleting the current value. |
| 199 | - celld reads a large-value row from an older release, but it does not reclaim |
| 200 | the legacy object after the row is removed. |
| 201 | - A namespace has one writer. Use more namespaces to increase write capacity. |
| 202 | - A namespace ID can use the Cloudflare hexadecimal form or another stable |
| 203 | string. |
| 204 | |
| 205 | ### [Queues](https://developers.cloudflare.com/queues/configuration/javascript-apis/) |
| 206 | |
| 207 | - A queue has one writer. Use more queues to increase write capacity. |
| 208 | - A Queue owner admits at most 256 concurrent producer calls. It commits |
| 209 | concurrent calls in shared transactions, and each reply still waits for its |
| 210 | own durability proof. This bound lets alarms and settlements run, and it |
| 211 | limits the message bodies that wait for durability. The owner refuses an |
| 212 | additional call, and the producer can retry it. |
| 213 | - A queue can have one consumer script. The consumer cannot also export a |
| 214 | `fetch()` handler. |
| 215 | - A message id is a UUID version 7. The first 48 bits hold the enqueue time |
| 216 | in milliseconds, so the ids of one Queue owner sort in enqueue order. |
| 217 | - celld retains a message for four days. You cannot configure this period. |
| 218 | - Pull consumers and the Queues HTTP API are not available. |
| 219 | - Dashboard controls, manual consumer attachment, R2 event notifications, and |
| 220 | Queue event subscriptions are not available. |
| 221 | |
| 222 | ### [D1](https://developers.cloudflare.com/d1/worker-api/d1-database/) |
| 223 | |
| 224 | - A binding result can contain at most 100,000 rows or 32 MiB. |
| 225 | - celld refuses invalid UTF-8 from a SQLite `TEXT` value. Store arbitrary |
| 226 | bytes in a `BLOB`. |
| 227 | |
| 228 | ### [Workflows](https://developers.cloudflare.com/workflows/build/workers-api/) |
| 229 | |
| 230 | - `create()` replaces a terminal instance that has the same ID. Cloudflare |
| 231 | refuses each duplicate ID. |
| 232 | - celld replays `run()` from the start, so code outside a step runs again. |
| 233 | - A crash after a step side effect can run the step callback again. |
| 234 | - `retention` and `locationHint` are not available. |
| 235 | - Non-step work cannot remain pending for more than 60 seconds. |
| 236 | - A step result, an event payload, and the workflow parameters each have a |
| 237 | 1 MiB limit. |
| 238 | - `pause()` stops a queued or waiting instance immediately. It lets an active |
| 239 | step finish, and the status changes from `waitingForPause` to `paused` before |
| 240 | the next step starts. |
| 241 | - `resume()` starts a paused instance and cancels a pending pause. A paused |
| 242 | retry, sleep, or event wait keeps its remaining wait duration. |
| 243 | - `restart()` starts a new generation from the beginning by default. Its |
| 244 | `from` option can select a step by its `name`, `count`, and `type`. The |
| 245 | `count` value defaults to `1`, and the `type` value defaults to `do`. |
| 246 | - A selected restart reuses each result before the selected step and reruns |
| 247 | that step and each later step. The runtime rejects a selector that does not |
| 248 | match the execution history. |
| 249 | - `delete()`, `deleteBatch()`, and rollback are not available. |
| 250 | - A sensitive step result and a `ReadableStream` step result are not |
| 251 | available. |
| 252 | |
| 253 | ### [R2](https://developers.cloudflare.com/r2/api/workers/workers-api-reference/) |
| 254 | |
| 255 | - An R2 binding uses the fleet bucket under `r2/<bucket_name>/`. |
| 256 | - The `version` of an object equals its content ETag, so two uploads of |
| 257 | identical bytes to one key return one version. |
| 258 | - `ssecKey` is not available. |
| 259 | - A conditional write cannot use a streamed body larger than 8 MiB. |
| 260 | - `createMultipartUpload()` does not accept a checksum. |
| 261 | - A multipart upload cannot resume on another node or after a restart. |
| 262 | - celld cannot replace a multipart part that the object store already holds. |
| 263 | - Out-of-order parts can use at most 256 MiB of memory, and completion cannot |
| 264 | change the order of stored parts. |
| 265 | - `jurisdiction` is not available. |
| 266 | |
| 267 | ## Runtime APIs |
| 268 | |
| 269 | | API | status | |
| 270 | | --- | --- | |
| 271 | | [Fetch, Request, Response, and Headers](#fetch-request-response-and-headers) | **Yes** | |
| 272 | | [Bindings](#bindings) | **Yes** | |
| 273 | | [Context](#context) | **Yes** | |
| 274 | | [Handlers](#handlers) | **Yes** | |
| 275 | | [RPC](#rpc) | **Yes** | |
| 276 | | [Streams](#streams) | **Yes** | |
| 277 | | Encoding | **Yes** | |
| 278 | | [WebSockets](#websockets) | **Yes** | |
| 279 | | [Web Crypto](#web-crypto) | **Yes** | |
| 280 | | [Web standards](#web-standards) | **Yes** | |
| 281 | | WebAssembly | **Yes** | |
| 282 | | [Performance and timers](#performance-and-timers) | **Yes** | |
| 283 | | [Console](#console) | **Yes** | |
| 284 | | [Node.js compatibility](#nodejs-compatibility) | **Partial** | |
| 285 | | [Cache](#cache) | **Partial** | |
| 286 | | HTMLRewriter | **Yes** | |
| 287 | | [TCP sockets](#tcp-sockets) | **Yes** | |
| 288 | | EventSource | **Yes** | |
| 289 | | MessageChannel | **Yes** | |
| 290 | | BroadcastChannel | **No** | |
| 291 | |
| 292 | ### [Fetch, Request, Response, and Headers](https://developers.cloudflare.com/workers/runtime-apis/fetch/) |
| 293 | |
| 294 | - The `cache` request option is not available. |
| 295 | - The `redirect` option accepts `follow`, `manual`, and `error`. The `error` |
| 296 | value rejects a redirect with a `TypeError` before celld sends a request to |
| 297 | the destination. celld rejects each other value. |
| 298 | - celld removes `Content-Length` from a Worker response. It preserves the |
| 299 | header for a `HEAD` response. |
| 300 | - A remote Durable Object call streams the request body to the owner. The call |
| 301 | cannot retry after body transmission starts because celld keeps no replay |
| 302 | copy. |
| 303 | - A remote Durable Object call waits for a rejected owner generation to change. |
| 304 | The wait cannot exceed `CELLD_OPERATION_DEADLINE_MS`. |
| 305 | |
| 306 | ### [Bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/) |
| 307 | |
| 308 | - The [services table](#services) lists the available binding types. |
| 309 | - celld supports Durable Objects, services, variables, assets, D1, KV, Queues, |
| 310 | Workflows, and R2 bindings. Each other binding type is not available. |
| 311 | |
| 312 | ### [Context](https://developers.cloudflare.com/workers/runtime-apis/context/) |
| 313 | |
| 314 | - `passThroughOnException()` has no effect because celld has no CDN fallback. |
| 315 | - `ctx.facets` is available only inside a Durable Object. |
| 316 | |
| 317 | ### [Handlers](https://developers.cloudflare.com/workers/runtime-apis/handlers/) |
| 318 | |
| 319 | - The `tail` and `email` handlers are not available. |
| 320 | |
| 321 | ### [RPC](https://developers.cloudflare.com/workers/runtime-apis/rpc/) |
| 322 | |
| 323 | - A cross-isolate named service binding supports only a single method call. It |
| 324 | does not support `fetch()`, awaitable properties, or pipelined paths. |
| 325 | - An RPC stub cannot cross an isolate boundary. |
| 326 | - `ctx.exports` contains only the entrypoints that the configuration declares. |
| 327 | - A remote RPC retries only when the failed peer attempt did not start the |
| 328 | method. An application must use a stable operation ID for another retry. |
| 329 | |
| 330 | ### [Streams](https://developers.cloudflare.com/workers/runtime-apis/streams/) |
| 331 | |
| 332 | - celld expires an unclaimed and inactive HTTP stream after 60 seconds. A |
| 333 | successful stream operation starts a new 60-second period. |
| 334 | - A natural stream end or the explicit cancellation of an active read produces |
| 335 | EOF. A read from an expired or unknown stream produces an error. |
| 336 | - A response body tee uses one bounded buffer for each branch, so the slowest |
| 337 | live branch controls the source backpressure. celld cancels the source after |
| 338 | both branches close. |
| 339 | |
| 340 | ### [WebSockets](https://developers.cloudflare.com/workers/runtime-apis/websockets/) |
| 341 | |
| 342 | - A caller must call `accept()` on the socket from a subrequest upgrade. |
| 343 | - An outbound Worker socket closes after the response and `waitUntil` work |
| 344 | end. |
| 345 | - A Worker socket that the response returns stays open after the response. |
| 346 | The response takes ownership of the socket, so the end of the request |
| 347 | cannot close it. |
| 348 | - celld applies a 1 MiB byte budget to the non-terminal frames in each |
| 349 | isolate-polled WebSocket input queue. The budget includes the message data and |
| 350 | a fixed charge for each frame. |
| 351 | - The queue reserves one terminal close outside this budget. Therefore, a full |
| 352 | queue cannot prevent celld from releasing the host socket task. |
| 353 | - If the isolate does not continue to poll, celld discards its unread frames |
| 354 | during socket cleanup. A later pull reports an abnormal close. |
| 355 | - A message larger than 1 MiB uses the complete queue budget. Therefore, celld |
| 356 | waits for the Worker to consume that message before it reads another message. |
| 357 | - celld rejects an upgrade when the response status is not 101. |
| 358 | - celld removes Worker-supplied protocol and connection headers from an upgrade |
| 359 | response. |
| 360 | - An outbound upgrade combines repeated values for one header name. |
| 361 | - celld rejects a close frame from a client when its status code is not valid |
| 362 | for the WebSocket protocol. The close event has code `1002`, and `wasClean` |
| 363 | is `false`. |
| 364 | - A WebSocket transport cannot move to a new cell owner. A client must reconnect |
| 365 | and keep the same application operation ID. |
| 366 | - `acceptWebSocket()` throws when the isolate uses more than 90 percent of its |
| 367 | V8 heap limit. |
| 368 | |
| 369 | ### [Web Crypto](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/) |
| 370 | |
| 371 | - HMAC signing and verification accept MD5, SHA-1, SHA-224, SHA-256, |
| 372 | SHA-384, and SHA-512. |
| 373 | - ECDSA signatures support only the P-256 curve and the SHA-256 hash. |
| 374 | - AES-GCM supports authentication tags from 96 through 128 bits in 8-bit |
| 375 | increments. It returns an `OperationError` for every other tag length. |
| 376 | - RSA-OAEP supports SHA-1, SHA-256, SHA-384, and SHA-512. A nonempty label must |
| 377 | contain valid UTF-8 bytes. |
| 378 | - A secret key cannot use the `jwk` format in `exportKey()` or |
| 379 | `wrapKey()`. |
| 380 | |
| 381 | ### [Web standards](https://developers.cloudflare.com/workers/runtime-apis/web-standards/) |
| 382 | |
| 383 | - An `AbortSignal` does not abort an RPC call. |
| 384 | - `signal.onabort` has no effect. Use `addEventListener("abort", ...)`. |
| 385 | - `structuredClone()` does not clone an `AbortSignal`. |
| 386 | |
| 387 | ### [Performance and timers](https://developers.cloudflare.com/workers/runtime-apis/performance/) |
| 388 | |
| 389 | `performance.timeOrigin` is `0`, and `performance.now()` matches `Date.now()`. |
| 390 | Both clocks advance at an I/O boundary and stay fixed during JavaScript |
| 391 | execution. |
| 392 | |
| 393 | ### [Console](https://developers.cloudflare.com/workers/runtime-apis/console/) |
| 394 | |
| 395 | ### [Node.js compatibility](https://developers.cloudflare.com/workers/runtime-apis/nodejs/) |
| 396 | |
| 397 | - celld implements `node:assert`, `node:async_hooks`, `node:buffer`, |
| 398 | `node:diagnostics_channel`, `node:events`, `node:fs`, `node:os`, |
| 399 | `node:path`, `node:stream`, `node:timers/promises`, and `node:util`. |
| 400 | - `node:diagnostics_channel` implements named channels, subscriptions, |
| 401 | `AsyncLocalStorage` binding, and tracing helpers. It does not export channel |
| 402 | messages to a tail Worker. |
| 403 | - `node:os` returns the deterministic operating-system values that Workerd |
| 404 | returns. Its `tmpdir()` and `homedir()` functions return `/tmp/`. |
| 405 | - `node:crypto` does not implement Diffie-Hellman, streaming signatures, |
| 406 | ciphers, RSA-PSS, or DSA signatures and key generation. |
| 407 | - `node:zlib` implements only the synchronous gzip and deflate functions. |
| 408 | - `node:fs` provides an empty, memory-backed `/tmp` for each request. The |
| 409 | promise, callback, and synchronous APIs implement `access`, `mkdir`, |
| 410 | `realpath`, `stat`, `lstat`, and `readFile`. |
| 411 | - A callback runs after the current turn, therefore an application cannot |
| 412 | observe a result before its call returns. celld reports a filesystem error |
| 413 | through the callback, but throws an argument error, because a bad argument |
| 414 | can make the callback unusable. |
| 415 | - These APIs accept a string, a `Buffer`, or a file `URL`. The `stat` and |
| 416 | `lstat` APIs support bigint metadata. |
| 417 | - `fs.constants` gives the four access modes. The `access` API reports what the |
| 418 | filesystem permits and not a POSIX permission, so a check for `X_OK` always |
| 419 | fails, because no file is executable. A check for `W_OK` on a read-only path |
| 420 | fails with the `ENOENT` error that a missing path also gives, therefore an |
| 421 | application cannot tell the two apart. |
| 422 | - `node:fs` also provides a read-only `/bundle` directory. It contains one file |
| 423 | for each module in the Worker bundle, so an application can read its own |
| 424 | source. The entry module is `/bundle/worker.js`. |
| 425 | - A module name is a path, so a module named `a/b.js` becomes the file |
| 426 | `/bundle/a/b.js` and celld creates the directory `/bundle/a`. |
| 427 | - A `/bundle` file contains the raw bytes of the module, therefore a read |
| 428 | returns the source text and not a compiled module. Each attempt to change |
| 429 | `/bundle` throws `EPERM`. |
| 430 | - The temporary filesystem does not contain file data. A read of a `/tmp` path |
| 431 | returns `ENOENT`, and each unsupported filesystem call throws an error. |
| 432 | - The celld bundler supports a synchronous CommonJS `require()` of a Node.js |
| 433 | built-in module. A raw ESM Worker does not receive a global `require()`. |
| 434 | - An import of each other Node.js module succeeds, and the first call into |
| 435 | the module throws an error. |
| 436 | |
| 437 | ### [Cache](https://developers.cloudflare.com/workers/runtime-apis/cache/) |
| 438 | |
| 439 | - celld has no shared edge cache, so the Cache API cannot serve a stored |
| 440 | response. `caches.default` and `caches.open()` give a cache with |
| 441 | always-miss semantics. |
| 442 | - `put()` validates its arguments and reads the response body to |
| 443 | completion, and it stores nothing. |
| 444 | - `match()` gives `undefined`, and `delete()` gives `false`. |
| 445 | |
| 446 | ### [TCP sockets](https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/) |
| 447 | |
| 448 | - A socket cannot outlive the event that created it. celld closes the |
| 449 | socket when the event ends, so a Durable Object must reconnect in a |
| 450 | later event. |
| 451 | - celld verifies a TLS server against the bundled Mozilla root store. |
| 452 | - Cloudflare blocks some destination ports, and celld does not block a |
| 453 | port. The operator controls the egress policy of the fleet network. |
| 454 | |
| 455 | ### BroadcastChannel |
| 456 | |
| 457 | - Cloudflare Workers does not provide BroadcastChannel, and celld does not |
| 458 | provide it. The class is defined, so a bundle can reference it at load |
| 459 | time, and the constructor throws an error. |
| 460 | |
| 461 | ## Compatibility flags |
| 462 | |
| 463 | celld honors these compatibility switches: |
| 464 | |
| 465 | - `delete_all_deletes_alarm` |
| 466 | - `js_rpc` |
| 467 | - `fetcher_no_get_put_delete` |
| 468 | - `sqlite_vec` |
| 469 | - `websocket_standard_binary_type` |
| 470 | - The static-assets navigation flags |
| 471 | |
| 472 | celld accepts each other compatibility flag without effect. |
| 473 | `Cloudflare.compatibilityFlags` reports only the flags that celld honors. |
| 474 | |
| 475 | ## Wrangler configuration |
| 476 | |
| 477 | `celld deploy` accepts `wrangler.jsonc` or `wrangler.json`. It does not |
| 478 | accept `wrangler.toml`. |
| 479 | |
| 480 | The `name` value must contain 1 to 63 lowercase ASCII letters, digits, or |
| 481 | internal hyphens. The value must not start or end with a hyphen. |
| 482 | |
| 483 | The deployment accepts these top-level keys: |
| 484 | |
| 485 | - `$schema`, `name`, `main`, and `no_bundle` |
| 486 | - `compatibility_date` and `compatibility_flags` |
| 487 | - `durable_objects` and `migrations` |
| 488 | - `assets`, `services`, `triggers`, and `vars` |
| 489 | - `d1_databases`, `kv_namespaces`, `queues`, `workflows`, and |
| 490 | `r2_buckets` |
| 491 | |
| 492 | Each other top-level key, including `routes`, stops the deployment. |
| 493 | An asset-only project can omit `main`. celld refuses a symlink or special file |
| 494 | in an asset directory. The native deploy command refuses an asset path that |
| 495 | does not remain unchanged after UTF-8 percent-decoding, and `.assetsignore` |
| 496 | requires Wrangler. |
| 497 | |
| 498 | See [Limitations](limitations.md) for the operating-system, networking, |
| 499 | security, pressure, and update boundaries. |