logo

Architecture

Understand how the Worker routes frontend pages, API requests, jobs, and consumers

Request Flow

The Worker entry dispatches API requests to Hono and page requests to SvelteKit.

Request flow diagram

Runtime Modules

Business code stays in src/api, src/db, src/jobs, src/consumers, and src/ai.

Build Flow

pre-build.mjs generates wrangler.jsonc, runs migrations, and prepares the project for local or remote deployment.