# TanStack CMS blog on Kody A TanStack CMS blog recomposed as a hosted Kody app: a fetch-handler entry that reuses the framework-agnostic CMS pieces (content model, store, renderers) on Kody's Worker runtime, backed by Neon serverless Postgres. It is **not** a port of the TanStack Start blog — Start's Vite/Nitro build does not fit Kody's source-only, esbuild, two-graph app contract. ## Prerequisites - A Neon (or other serverless/HTTP-reachable) Postgres. Save its pooled connection string as the package secret `DATABASE_URL`. - No local build step: Kody installs deps from npm and bundles at publish. ## Stages 1. **DB probe (current)** — `GET /` reads the `DATABASE_URL` secret, opens a Neon Pool over WebSocket, and returns `select version()`. Proves secret-read + Neon-on-workerd before the CMS is wired in. `/healthz` → `{ ok: true }`. 2. **Public site** — first-boot migrate + seed, then React-SSR published pages and posts via `@tanstack/cms-core` + `@tanstack/cms-ui-react/site`. 3. **Admin + API** — mount `createCmsApiHandler` and real auth. ## Done-when Stage 1: `GET /` returns `{ ok: true, version: "PostgreSQL …" }` from the hosted URL. Then advance to stage 2. ## Intent Prove and then ship a TanStack CMS blog deployable to a personal Kody account with a live URL and zero infra, non-WASM image handling (Jimp), and no AI.