This is "Syntax Live Polls" — a realtime conference polling app built on Cloudflare Workers + PartyServer with a React 19 / TanStack Start frontend. It is a single-service full-stack app; pnpm dev starts everything (Vite dev server, Cloudflare Workers local runtime, Durable Objects with embedded SQLite).
pnpm dev
This starts the Vite dev server on http://localhost:5173/. No external databases or Docker containers are needed — all persistence uses Durable Object SQLite locally.
| View | URL |
|---|---|
| Audience (default room) | http://localhost:5173/r/main-stage/ |
| Host (default room) | http://localhost:5173/r/main-stage/host?hostKey=change-me |
| Projector (default room) | http://localhost:5173/r/main-stage/screen |
| Admin | http://localhost:5173/admin/?adminKey=change-me-admin |
Default credentials in wrangler.jsonc: HOST_KEY=change-me, ADMIN_KEY=change-me-admin.
- Build:
pnpm build - TypeScript check:
npx tsc --noEmit(there is a pre-existing TS error insrc/server.tsline 99 that does not block the dev server or build) - No dedicated lint or test scripts are configured in
package.json.
- The
pnpm.onlyBuiltDependenciesfield inpackage.jsonmust listesbuild,sharp, andworkerdto avoid the interactivepnpm approve-buildsprompt. This is already configured. - The
/route redirects to/r/main-stage/automatically. - Admin API endpoints require the
x-admin-keyheader (value fromADMIN_KEYenv var).