Skip to content

SvelteKit CloudflareAI-First Full-Stack Starter

Build production-ready apps with 3 AI Agents. Modern stack, zero config, deploy in minutes.

SvelteKit CF Logo

🎯 What Makes This Different? ​

πŸ€– AI-First by Design

This isn't just a starter kitβ€”it's an AI Agent Workflow system:

  1. INIT_AGENT creates your project structure, PRD, TDD, UI Kit
  2. TASK_AGENT implements features from PROGRESS.md auto-tracking
  3. MANAGER_AGENT handles changes, updates docs, creates release notes

Result: Document-driven development where AI does 80% of the work.

πŸš€ For Developers Who Ship

Stop configuring, start building:

  • No database setup - D1 is zero-config
  • No auth setup - Lucia is pre-configured
  • No deployment setup - Cloudflare Pages is one command
  • No API boilerplate - Form Actions pattern included

Just describe what you want, and let the AI Agents build it.


πŸ› οΈ The Stack ​

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Svelte 5         β”‚  Reactive UI with Runes ($state)    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  SvelteKit 2.x    β”‚  Full-stack framework, file routing  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Tailwind CSS 4   β”‚  CSS-first, no config needed         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Cloudflare D1    β”‚  SQLite at edge, zero setup          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Drizzle ORM 0.40 β”‚  Type-safe SQL, intuitive            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Lucia Auth       β”‚  Session auth, secure by default     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Cloudflare Pages β”‚  Edge deployment, auto-scaling       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start (Really 5 Minutes) ​

bash
# 1. Clone starter
git clone https://github.com/maulanashalihin/svelte-kit-cloudflare-starter.git my-app
cd my-app && npm install

# 2. Create database (one command)
npx wrangler d1 create my-app-db
# Copy database_id to wrangler.toml

# 3. Run migrations & start
npm run db:migrate:local
npm run dev

πŸŽ‰ Open http://localhost:5173 β€” Auth, database, everything works.


πŸ€– The 3 AI Agent Workflow ​

Every project gets 3 specialized AI Agents:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  INIT_AGENT                                                  β”‚
β”‚  β”œβ”€β”€ Creates PRD.md (Product Requirements)                   β”‚
β”‚  β”œβ”€β”€ Creates TDD.md (Technical Design)                       β”‚
β”‚  β”œβ”€β”€ Creates ui-kit.html (Design System)                     β”‚
β”‚  └── Creates PROGRESS.md (Task Tracking)                     β”‚
β”‚                        ↓                                     β”‚
β”‚  TASK_AGENT                                                  β”‚
β”‚  β”œβ”€β”€ Reads PROGRESS.md                                       β”‚
β”‚  β”œβ”€β”€ Implements features one by one                          β”‚
β”‚  β”œβ”€β”€ Auto-commits & pushes                                   β”‚
β”‚  └── Updates PROGRESS.md                                     β”‚
β”‚                        ↓                                     β”‚
β”‚  Cloudflare (Auto Deploy)                                    β”‚
β”‚                        ↓                                     β”‚
β”‚  MANAGER_AGENT                                               β”‚
β”‚  β”œβ”€β”€ Handles change requests                                 β”‚
β”‚  β”œβ”€β”€ Updates all documentation                               β”‚
β”‚  └── Creates release notes                                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Usage:

bash
"@workflow/INIT_AGENT.md β€” start my project"
"@workflow/TASK_AGENT.md β€” build next feature"  
"@workflow/MANAGER_AGENT.md β€” handle this change"

πŸ“‚ Documentation Structure ​

SectionWhat You'll LearnTime
Getting Started5-minute setup, no config needed10 min
AI Agent WorkflowHow to use 3 AI Agents effectively15 min
Development FlowSvelteKit patterns that work20 min
FeaturesBuilt-in auth, upload, email15 min
DeploymentOne-command deploy to edge10 min

πŸ’‘ Pick Your Path ​

Path 1: Ship Today (1 hour) ​

For builders who want results now

Getting Started (10m) β†’ Build with TASK_AGENT (40m) β†’ Deploy (10m)

Path 2: Master the Stack (3 hours) ​

For developers who want deep understanding

Getting Started β†’ Development Flow β†’ Architecture β†’ AI Workflow
     10m              20m              30m            15m

Let AI Agents do the heavy lifting

INIT_AGENT (20m) β†’ TASK_AGENT (∞) β†’ Deploy (10m) β†’ MANAGER_AGENT
  PRD/TDD setup    Feature factory    Live on edge    Handle changes

πŸ”— Resources ​


Stop configuring. Start building. πŸš€

Get Started β†’

SvelteKit Cloudflare Starter - Build Fast, Deploy Everywhere πŸš€