Cloudflare Worker that serves tools.synthesiswriting.org and routes URL path prefixes to per-tool Pages projects.
tools.synthesiswriting.org/
├── /slopcheck and /slopcheck/* → proxies to slopcheck.pages.dev
├── / → minimal tools-index landing page
└── (anything else) → 404
Adding a new tool: append an entry to TOOL_ROUTES in src/worker.js. One line. The Pages project deploys independently of this Worker.
- Each tool keeps its own repo, deploy lifecycle, KV bindings, secrets, environment surface.
- One tool's deploy doesn't risk breaking another tool.
- Tools can use different stacks (Pages + Functions, pure static, Workers).
- The router is ~50 lines and changes only when a tool is added.
cd synthesis-tools-router
wrangler deployThe wrangler.toml declares the tools.synthesiswriting.org/* route on the synthesiswriting.org zone, so deploys take effect immediately.
src/worker.js— the router logicwrangler.toml— Worker config + route bindingpackage.json— scripts (deploy / dev / tail)