How denoland/celld works
celld is a self-hosted distributed Workers/Durable Objects daemon. The main path is project deployment to a shared bucket, then node ownership and routing of requests to a cell, where the embedded runtime executes the Worker and persists SQLite state. Durable writes are captured as LTX, replicated to peers and uploaded for long-term storage; takeover restores from that state. The README documents additional bindings, assets, workflows, cron, and container support. Some internal links below rely on SOURCE INDEX references rather than inspected call sites.
Main entry points: actor.rs Cell actor · js.rs Worker runtime · replica.rs Replication and restore · generation.rs Generation manager
Components 20
Deploy and runtime
- Deploy command
crates/celld/deploy.rs - Static assets
crates/celld/assets.rs - Generation manager
crates/celld/generation.rs - Worker runtime
crates/celld/js.rs
Cells and bindings
- Cell actor
crates/celld/actor.rs - Host services
crates/celld/host_services.rs - Workers bindings
crates/celld/js.rs - Container support
crates/celld/container.rs - Cell and service logic
crates/logic/lib.rs
Fleet coordination
- Cell ownership
crates/celld/ownership_store.rs - Peer transport
crates/celld/main/peer_tunnel.rs
Durability and storage
- Shared object bucket
crates/celld/bucket.rs - SQLite cell storage
crates/celld/storage.rs - LTX capture
crates/ltx/src/db.rs - LTX format
crates/ltx/src/ltx.rs - Replication and restore
crates/ltx/src/replica.rs - Object-store client
crates/ltx/src/client/object_store.rs
Other components
- Operator
- Worker project
- HTTP caller
Connections 22
- Operator → Deploy command: deploys
- Worker project → Deploy command: supplies bundle
- Deploy command → Shared object bucket: stores deployment
crates/celld/deploy.rs - Operator → Generation manager: starts node
- Generation manager → Worker runtime: configures
crates/celld/generation.rs - Generation manager → Static assets: loads assets
crates/celld/generation.rs - HTTP caller → Cell actor: requests cell
- Cell actor → Worker runtime: executes
crates/celld/actor.rs - Worker runtime → Host services: uses services
crates/celld/js.rs - Worker runtime → Workers bindings: exposes
crates/celld/js.rs - Worker runtime → Container support: supports containers
crates/celld/js.rs - Cell actor → Cell and service logic: uses domain logic
- Cell actor → Cell ownership: claims cell
crates/celld/actor.rs - Cell ownership → Shared object bucket: writes ownership
- Cell actor → SQLite cell storage: persists state
- SQLite cell storage → LTX capture: captures commits
- LTX capture → LTX format: encodes changes
crates/ltx/src/db.rs - Cell actor → Replication and restore: replicates writes
- Replication and restore → Peer transport: sends to peers
- Replication and restore → Object-store client: uploads and restores
crates/ltx/src/replica.rs - Object-store client → Shared object bucket: reads and writes
crates/ltx/src/client/object_store.rs - Replication and restore → LTX format: reads LTX
crates/ltx/src/replica.rs