@svelbase/sv
v0.3.0
Published
@svelbase/sv is an addon for generating SvelteKit projects with PocketBase integrations
Maintainers
Readme
svelbase
A sv community add-on for PocketBase integration in SvelteKit projects.
[!IMPORTANT] Svelte maintainers have not reviewed community add-ons for malicious code. Use at your own discretion.
Usage
Add to an existing SvelteKit project:
npx sv add @svelbase/svOr include it when creating a new one:
npx sv create my-app --add @svelbase/svWhat you get
- 🔌 One-command setup — works on new or existing SvelteKit projects
- 🗄️ Typed PocketBase client — a ready-to-use wrapper at
src/lib/pocketbase.js - 🔐 SSR-ready auth — cookie-based auth wired into
src/hooks.server.ts - ⚙️ Environment config —
.env/.env.exampleset up withPUBLIC_POCKETBASE_URL - 🐳 Docker or local binary — run PocketBase however you prefer
- 🖥️ Optional starter UI — login/register pages, ready to customize
Options
| Option | Description | Default |
|---|---|---|
| pb | How to run PocketBase — local (downloads a binary) or docker | local |
| authUi | Add starter login/register pages | true |
Pass options directly instead of answering the interactive prompts:
npx sv add @svelbase/sv="pb:docker,authUi:false"Local development
git clone https://github.com/JGugino/svelbase
cd svelbase
npm install
npm run buildTest against a scratch SvelteKit project without publishing:
npx sv add file:../svelbaseContributing
Issues and PRs are welcome — see CONTRIBUTING.md.
License
GNU GPL-3.0
