07836ce6bb3a7931b7ad7cb3ee2fe5ce8d799538
Stackq
Basic Svelte 5 + SvelteKit project with shadcn-svelte and PocketBase, using Bun.
Stack
- Svelte 5 with SvelteKit 2
- Tailwind CSS v4 via
@tailwindcss/vite - shadcn-svelte (new-york style, slate base)
- PocketBase — auth and API at
https://pocketbase.ccllc.pro
Develop
bun install # if needed
bun run dev
Open http://localhost:5173. Unauthenticated users are redirected to /login.
Login
- Login page:
/login— email + password, styled like HRM. - Logout: home page “Log out” or visit
/logout. - Auth is stored in a
pb_authcookie and restored/refreshed insrc/hooks.server.ts.
PocketBase
- Client:
import { pb } from '$lib/pocketbase'for browser-side API and auth. - Server: use
event.locals.pbandevent.locals.userin load functions and form actions. - To change the PocketBase URL or auth collection, edit
src/lib/pocketbase.tsandsrc/hooks.server.ts.
Add more components
bunx shadcn-svelte@latest add <component-name>
Build
bun run build
bun run preview # preview production build
Description
Languages
JavaScript
93.3%
Svelte
4.4%
TypeScript
2%
CSS
0.3%