View Demo Β· Quick Start Β· Features
Inspired by the Rails doctrine, this project embraces an omakase approachβoffering an opinionated selection of tools and a structured foundation while giving you the freedom to customize and extend as needed. Whether you're a seasoned developer or just starting out, this starter kit is carefully curated to get you up and running with SvelteKit by providing everything you need to build modern, scalable web applications with ease.
# Clone the repository
git clone https://github.com/n00ki/sveltekit-omakase.git my-app
cd my-app
# Install dependencies using your preferred package manager
bun install
# or: npm/pnpm/yarn install
# Setup environment variables
cp .env.example .env
# Edit .env with your configuration
# Initialize the database locally
bun db:push
# Start the development server
bun dev
src/
βββ lib/
β βββ assets/ # Static assets (logo, images)
β βββ components/ # Svelte components
β β βββ ui/ # shadcn-svelte primitives
β βββ constants/ # Domain constants and enums
β βββ db/
β β βββ models/ # Drizzle schemas (User, Session, etc.)
β β βββ queries/ # Pure data queries
β β βββ migrations/ # SQL migrations
β βββ hooks/ # Svelte hooks
β βββ mail/ # Email (Resend + SailKit templates)
β βββ messages/ # User-facing messages (i18n)
β βββ remote/ # Remote functions (*.remote.ts)
β βββ server/ # Server-only code
β β βββ auth.ts # Better-Auth config + helpers
β β βββ database.ts # Drizzle connection (default export)
β β βββ flash.ts # Flash message helpers
β β βββ rate-limit.ts # Rate limit helper
β β βββ storage.ts # R2/S3 client
β βββ state/ # Global state (*.svelte.ts)
β βββ utils/ # Shared utilities
β βββ validations/ # Zod schemas
βββ routes/
β βββ (auth)/ # Auth flows (login, register, password)
β βββ (app)/ # Protected routes (dashboard, settings)
β βββ api/ # API endpoints
βββ styles/
βββ app.css # Global styles + Tailwind config
$components β src/lib/components
$models β src/lib/db/models
$queries β src/lib/db/queries
$remote β src/lib/remote
Start with docs/architecture.md for project structure, rules of the road, remote function patterns, and common commands.
Contributions are welcome! Please feel free to submit a Pull Request πͺ
Special thanks to these incredible contributors to the open-source community: