svelbase
v0.1.7
Published
A CLI tool for creating SvelteKit projects with Pocketbase intergrations such as auth.
Downloads
1,277
Maintainers
Readme
svelbase
Scaffold a SvelteKit + PocketBase project in one command.
Usage
npx svelbase my-appYou'll be prompted for Svelte(w/ Vite)/SvelteKit, TypeScript/JavaScript, Tailwind CSS, and whether to run PocketBase via Docker. svelbase then:
- Scaffolds SvelteKit using
sv create - Adds a typed PocketBase client at
src/lib/pocketbase.ts - Wires up cookie-based SSR auth in
src/hooks.server.ts - Writes
.env/.env.examplewithPUBLIC_POCKETBASE_URL - Optionally adds a
docker-compose.ymlfor local PocketBase
Local development
npm install
npm run dev # watch mode via tsdown
npm link # test the `svelbase` command locallyLicense
GPL-3.0
