Deployment
Dojo runs on Cloudflare Workers with Durable Objects for state management. You can deploy your own instance.
Architecture
Section titled “Architecture”Dojo’s server consists of:
- Cloudflare Worker — handles API requests and serves the web UI
- Durable Objects — manage repository state with strong consistency
- R2 Storage — stores large objects (blobs, trees)
Prerequisites
Section titled “Prerequisites”- A Cloudflare account with Workers Paid plan (for Durable Objects)
- Node.js 18+ and
wranglerCLI - The Dojo source code
Deploying
Section titled “Deploying”# Clone the repositorygit clone https://github.com/nichochar/dojocd dojo
# Install dependenciesbun install
# Deploy the workercd packages/workerbun run deployConfiguration
Section titled “Configuration”Configure your deployment through wrangler.jsonc in packages/worker/:
- Custom domain — set up a custom domain in the Cloudflare dashboard
- Environment variables — configure secrets with
wrangler secret put - D1 database — create and bind a D1 database for metadata storage
DNS setup
Section titled “DNS setup”Point your domain to the Cloudflare Worker:
- Add your domain to Cloudflare
- In Workers & Pages → your worker → Custom Domains
- Add your domain (e.g.,
dojo.yourdomain.com)