This repository is a SvelteKit project scaffolded with the Svelte CLI. It uses the minimal template with TypeScript enabled as a starting point for building the Better Auth UI. Tailwind CSS is configured via the Svelte CLI add-on.
- Node.js 18 or later
- pnpm 9 or later
Install project dependencies with pnpm:
pnpm installStart a local development server at http://localhost:5173:
pnpm run devRun SvelteKit's check to validate types and generated routes:
pnpm run checkCreate an optimized production build:
pnpm run buildPreview the production build locally:
pnpm run preview- Run the Vitest suite (server and browser projects) in CI-friendly mode:
pnpm run test:unit -- --run- Run end-to-end tests with Playwright (requires installed browsers):
pnpm run test:e2eIf Playwright browsers are missing locally, install them once with:
pnpm exec playwright install --with-deps- Launch the Storybook development server at
http://localhost:6006:
pnpm run storybook- Build the static Storybook bundle (outputs to
storybook-static/):
pnpm run storybook:build- The
Auth/SignedInstory demonstrates how protected content renders only when a session is present.