Skip to content
SoftwaizPublic

About

Normalizes an @cloudflare/vite-plugin build output (RedwoodSDK, or any Vite+Workers project) into a layout celld deploy/dev accepts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recell

Normalizes an @cloudflare/vite-plugin build output — produced by RedwoodSDK's vite build, or any other Vite+Workers project using the same plugin — into a layout celld accepts.

celld is a self-hosted, open-source reimplementation of Cloudflare's Workers/Durable Objects platform. It deploys straight from the wrangler.json a project already has — but the config @cloudflare/vite-plugin generates carries wrangler's full internal surface (observability, jsx_factory, rules, ...) and points its asset binding at a sibling directory outside the project root. celld rejects both. recell fixes both, plus one more asset-pipeline file celld doesn't support.

Usage

npm run build          # your normal RedwoodSDK / Vite build
npx @softwaiz/recell dist
celld dev dist          # or: celld deploy dist --bucket ...

That's it — no config, no options beyond the build directory (defaults to dist).

What it does

  1. Reads the wrangler.json the Cloudflare Vite plugin wrote to <dist>/worker/wrangler.json.
  2. Strips the exact set of keys celld itself reports as unsupported (agent_memory, ai_search, analytics_engine_datasets, jsx_factory, observability, rules, vectorize, and 22 others) — a denylist, not a guessed allowlist, so a key celld newly supports just passes through untouched next time it's run.
  3. Re-roots main and assets.directory so the config lives at <dist>/wrangler.json and no longer points outside the project (../client → client).
  4. Deletes <dist>/client/.assetsignore, which celld doesn't support.

Nothing else is touched — your build output's actual JS, assets, and bindings pass through unmodified.

Deploying a whole app on celld

recell only normalizes a build — it doesn't run celld itself. For the full picture (standing up celld + a storage backend on your own server, exposing it through nginx, and deploying an app onto it), see deploy/celld/README.md.

Why this exists

Written while investigating whether RedwoodSDK — a React framework that targets Cloudflare Workers — could run on celld instead. Short answer: yes, once these config-shape mismatches are handled; the framework itself needed zero changes. Full writeup: What RedwoodSDK Actually Depends On.

Along the way we also found and fixed a real celld bug — its import scanner missed minified brace imports (import{x}from"y"), breaking any nodejs_compat builtin pulled in that way. Patched and filed as denoland/celld#201.

That answered whether it could run on celld. Whether it holds up in actual production — a real storage backend, a CI/CD pipeline, a live app taking real traffic — is a different question, answered in RedwoodSDK, Finally Unlocked from Cloudflare. The live result: game.softwaiz.com, a synchronized multiplayer reaction game running on this exact recipe.

License

MIT

About

Normalizes an @cloudflare/vite-plugin build output (RedwoodSDK, or any Vite+Workers project) into a layout celld deploy/dev accepts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages