Full-stack SvelteKit template with authentication, i18n, and database integration. Designed for rapid startup of authenticated multi-tenant applications.
Stack: SvelteKit + Svelte 5 | Better Auth (passkeys + magic links) | Paraglide i18n | PostgreSQL | Vitest + Playwright
Requirements: Node 20+, pnpm, Docker
pnpm install
cp .env.example .env.local # edit secrets (BETTER_AUTH_SECRET, etc.)
pnpm db:up
pnpm db:migrate
pnpm dev
Verify: curl localhost:5173/api/health
This template provides infrastructure. To build your app:
src/routes/[[locale]]/(app)/dashboard/ and create your own pagessrc/lib/components/brand/, static/favicon.svgrpName in src/lib/server/auth/index.tssrc/lib/domain/svelte.config.js if neededSee docs/usage.md for deployment and configuration details.
src/
├── lib/
│ ├── server/ # server-only: db, env, auth
│ ├── components/ # UI components
│ ├── stores/ # runes-based state
│ └── i18n/ # paraglide helpers
├── routes/ # SvelteKit routes
└── app.html
db/migrations/ # SQL migrations
scripts/ # CLI scripts
docs/ # documentation
MIT