Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SvelteKit Stack

An opinionated SvelteKit stack — auth, database, linting, git hooks, and local-prod DB parity already set up. Product scope for each project lives in docs/product.md.

Tech Stack

Quick Start

Prerequisites

Create new project

git clone git@github.com:mislam/sveltekit-stack.git my-app
cd my-app && rm -rf .git

Set the project name (e.g. my-app) in package.json, compose.yaml, and bun.lock.

git init
git add -A && git commit -m "chore: scaffold from sveltekit-stack"

Setup

bun install
cp .env.example .env
bun auth:secret --write

Add GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET to .env, and configure a local redirect URI — see Better Auth docs.

bun dev:up
bun db:push
bun dev

Dev server: http://localhost:5173

Update docs/product.md with your product scope.

Development

bun dev:up      # start Postgres + Neon proxy (Docker)
bun dev         # SvelteKit dev server
bun dev:down    # stop Docker services

Code Quality

bun check       # typecheck (svelte-check)
bun format      # Prettier write
bun lint        # ESLint + Prettier check
bun lint:fix    # ESLint fix + Prettier write

Testing

bun run test        # run all tests once (CI-style)
bun run test:unit   # Vitest watch mode

Do not use bun test — that invokes Bun's built-in runner, not this project's Vitest setup.

Database

Same driver stack as production (@neondatabase/serverless + drizzle-orm/neon-http), with Postgres and a Neon HTTP proxy in Docker (docker/neon-proxy/).

flowchart LR
  App["App<br/>(neon-http)"] -->|HTTP :4444| Proxy["Neon proxy"]
  Proxy --> DB[(Postgres :5432)]
  Kit["Drizzle Kit"] -->|TCP| DB
Loading

Offline: add 127.0.0.1 db.localtest.me to /etc/hosts.

bun dev:up        # Postgres + Neon proxy (builds proxy image on first run)
bun db:push       # apply schema (requires dev:up)
bun db:generate   # generate migrations
bun db:migrate    # run migrations
bun db:studio     # Drizzle Studio

Git Hooks

Husky + lint-staged:

Documentation

About

An opinionated SvelteKit stack with Drizzle, Better Auth, Bun, agent-ready tooling.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages