My current SvelteKit boilerplate as of 2025.
This should suffice for any hobby project with minimal hosting costs, the most likely first bottle-neck would be managing multiple deployments of the API server. You can do that with eg. k3s, ECS or switching to Cloudflare adapter (although directly connecting to Postgres from Cloudflare workers could be inefficient).
Also Prisma client doesn't work directly with Cloudflare workers as they want you to buy Prisma Accelarate. If you don't care for that, you'll have to write the queries with different postgres client or switch to another ORM eg. Drizzle.
I'll try keeping this updated.
You need NodeJS >= 20, pnpm >= 10, Docker & Docker Compose installed.
cp ./packages/db/.env-example ./packages/db/.env cp ./packages/api/.env-example ./packages/api/.env.env: openssl rand -base64 32docker-compose up -d postgrespnpm ipnpm libpnpm --filter db migrate && pnpm --filter db seedpnpm apipnpm clientmyapp-localhost, as you can only use single URL per app. (Create prod version separately)GITHUB_OAUTH_CLIENT_ID for packages/api/.envGITHUB_OAUTH_CLIENT_SECRET in packages/api/.env