Core

Hosting Core

Where to run ziteox-core — Cloudflare Workers + D1 recommended; Vercel and Railway compared for this codebase.

Hosting Core

Recommendation for this codebase: Cloudflare Workers + D1 at core.ziteox.com. Tunnel-to-Mac is not recommended.

Go-live steps: Go live.

FitDetail
CodeAlready targets workerd — D1 binding, WebCrypto, wrangler.toml, e2e on wrangler dev. No rewrite.
Cold startIsolates ≈ 0 cold start for this shape of Worker
Streamingfetch + Web Streams for npm tarball bodies — native
Secretswrangler secret put … --env production
BackupsD1 time-travel restore (~30-day window)
DomainCustom domain on the ziteox.com Cloudflare zone (core.ziteox.com)
Cost≈ free tier / Workers Paid (~$5) at this volume

Tradeoffs

  • D1 single-region primary — writes from far regions add latency (fine for this load).
  • Local workerd IPv6 quirk on some Macs when fetching GitHub’s blob host (dev only; not on deployed Workers) — see Install packages.
  • Vendor lock to D1’s SQLite dialect — still portable SQL for most schema.

Vercel (Functions / Fluid)

Would need a D1 replacement (Neon / Supabase Postgres or Turso) + SQL port + a new data-access layer; env vars instead of bindings. Cold starts on Node functions (Fluid reduces). Response streaming is OK. Hobby/Pro pricing and function duration limits apply. Keeps Core next to client apps in one vendor, but it is a real port, not a config flip.

Railway (fallback)

Long-running Node/Bun container — needs an adapter from the Worker fetch handler (e.g. Hono-style server) plus SQLite file / LibSQL or Postgres, persistent volume, simple secrets, ~$5+/month usage. No cold starts if always-on; you own uptime/scaling/TLS-ish concerns. Good fallback if Cloudflare is unavailable.

  • Cloudflare Tunnel to a Mac — local IPv6/blob hangs, machine uptime, and no production ops story.
  • Switching hosting before go-live — stay on Workers + D1 unless Cloudflare is blocked.