| Feature | Description |
|---|---|
| β‘ SvelteKit 5 | Latest Svelte with runes, server-side rendering, and file-based routing |
| βοΈ Cloudflare Workers | Edge-first deployment with global distribution and near-zero cold starts |
| ποΈ Cloudflare D1 | Serverless SQLite database with automatic replication |
| π¨ Tailwind CSS | Utility-first CSS framework for rapid UI development |
| π§ Drizzle ORM | Type-safe, lightweight ORM with migrations support |
| π Paraglide i18n | Fully type-safe internationalization (EN/VI) |
| π¦ Bun | Ultra-fast JavaScript runtime and package manager |
| β ESLint + Prettier | Consistent code style and automatic formatting |
βββ π― Framework β SvelteKit 5 (Svelte 5 with Runes)
βββ π Runtime β Cloudflare Workers (Edge)
βββ πΎ Database β Cloudflare D1 (SQLite)
βββ π ORM β Drizzle ORM
βββ π¨ Styling β Tailwind CSS
βββ π i18n β Paraglide
βββ π¦ Package Mgr β Bun
βββ π Linting β ESLint
βββ β¨ Formatting β Prettier
# Clone this template
git clone <your-repo-url>
cd <project-name>
# Install dependencies
bun install
# Start development server
bun run dev
# Generate migrations
bun run db:generate
# Push migrations to local D1
bun run db:migrate
# Open Drizzle Studio (database GUI)
bun run db:studio
βββ src/
β βββ lib/ # Reusable library code
β β βββ server/ # Server-only utilities (DB, auth, etc.)
β β βββ components/# Svelte components
β βββ routes/ # SvelteKit file-based routing
β βββ app.css # Global styles
βββ drizzle/ # Database migrations
βββ messages/ # i18n translation files
βββ wrangler.jsonc # Cloudflare Workers config
βββ drizzle.config.ts # Drizzle ORM config
| Command | Description |
|---|---|
bun run dev |
Start development server |
bun run build |
Build for production |
bun run preview |
Preview production build locally |
bun run check |
Type-check the project |
bun run lint |
Lint & format code |
bun run db:generate |
Generate Drizzle migrations |
bun run db:migrate |
Apply migrations |
bun run db:studio |
Open Drizzle Studio |
Deploy to Cloudflare Workers with a single command:
# Deploy to production
bun run deploy
Note: Make sure you've configured your
wrangler.jsoncanddrizzle.config.tsand authenticated with Cloudflare CLI.
MIT Β© VΕ© ThΓ nh Trung
Built with β€οΈ using SvelteKit and Cloudflare