@softwaiz/recell
v0.1.0
Published
Normalizes an @cloudflare/vite-plugin build output (RedwoodSDK, or any Vite+Workers project using the same plugin) into a layout celld deploy/dev accepts.
Maintainers
Readme
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
- Reads the
wrangler.jsonthe Cloudflare Vite plugin wrote to<dist>/worker/wrangler.json. - 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. - Re-roots
mainandassets.directoryso the config lives at<dist>/wrangler.jsonand no longer points outside the project (../client→client). - 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.
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.
License
MIT
