Description
SvelteForge Premium is a production-ready, multi-tenant SaaS admin template built with SvelteKit 2, Svelte 5, Tailwind CSS 4, and Drizzle ORM. Ships with billing (Stripe & Polar), workspaces & RBAC, helpdesk, CRM, invoicing, e-commerce, kanban, calendar, mail, AI chat, status pages, webhooks, REST API, and 30+ other modules — wired together, type-checked, and seedable on day one. 49 database tables, 59 server modules, 30 protected app routes, 17 test suites.
Multi-Tenancy & Access Control
- Organizations with members, custom roles, invitations, and a workspace switcher
- Permissions catalogue — system roles + custom permission sets
- Impersonation — owners step into a member’s seat with a warning banner and one-click exit
- Workspace-scoped everything — every premium table carries organizationId with onDelete: cascade
Auth, MFA & Passkeys
- TOTP and WebAuthn passkey enrollment with backup recovery codes
- Magic-link sign-in — email-based one-time tokens
- Session-level MFA gate with bypass paths for impersonation
- Account lockout on repeated MFA failure
Billing — Stripe AND Polar
- Two adapters behind one provider abstraction — pick via
BILLING_PROVIDERenv - Stripe: Checkout, customer portal, plan upgrades/downgrades, pause/resume, webhook idempotency
- Polar: hosted checkout, signed webhooks, same shape as Stripe
- Recurring invoice schedules + PDF rendering via pdfkit (no external Chrome process)
- Per-org usage metering with quota dashboards and upgrade CTAs
Communication Apps
- Inbox — Multi-folder mail client with threads, labels, snooze, scheduled send with undo window
- Team Chat — Real-time team chat via SSE with presence, typing indicators, mentions, reactions
- Comments — Generic threaded comments drop-in for invoices, deals, tickets, projects
- Email with adapters for Resend, Cloudflare Email Sending, and console (dev)
Business Apps
- CRM — Contacts directory with custom fields, drag-to-stage deals pipeline, CSV import wizard
- Helpdesk — Ticket queue with SLA stamps, threaded replies, internal notes, category/priority filters
- Invoicing — Line-item editor, auto-numbering, recurring schedules, PDF, Stripe-secured customer portal
- Store (e-commerce) — Products + orders with line-item snapshots and full lifecycle
- Forms builder — Drag-drop with conditional logic and rate-limited public submit endpoint
Project Work
- Projects + tasks with Gantt-style timeline view
- Kanban boards with drag-drop columns and cards
- Calendar with month-grid event view and color tagging
- Notes / Wiki — workspace-shared markdown with folders and pinning
- Files — S3-compatible storage (AWS S3, Cloudflare R2, MinIO, Backblaze B2)
AI Assistant
- Streaming chat backed by Anthropic Claude with prompt-caching pinned per conversation
- Tool-use bridge so the assistant can read app data safely
- Per-conversation model pinning so flipping ANTHROPIC_MODEL mid-flight stays safe
Public-Facing Surfaces
- Status page — services + incidents + scheduled maintenance + double-opt-in subscriber emails
- Customer portal — invoice viewing and Stripe-secured payment for external clients
- Marketing pages — about, FAQ, contact, changelog, API reference, pattern showcase
Audit, Governance & Extensibility
- Audit log with saved-filter chips and CSV export
- API keys with prefix + hashed storage, scopes, IP allowlists, per-key rate limits
- Outgoing webhooks with HMAC-SHA256 signing, event-pattern matching, exponential-backoff retries
- Scheduled reports — recurring CSV-by-email exports
- Cron suite — six recurring endpoints under bearer-token auth
- REST API — /api/v1 with OpenAPI 3.1 spec + Postman collection
- Slack / Discord notification channels keyed by audit event patterns
UX Building Blocks
- Form wizard, data table, CSV importer, product tour, theme customizer
- Customisable My Dashboard with drag-reorder widget grid
- Onboarding wizard at first login
- Browser notifications opt-in helper
Documentation
- 16-page developer reference at
/docs— auth, DB, routing, components, theming, deployment, testing - 30+ user guide chapters at
/guidecovering every premium module - Both fully editable, brandable, and SEO-indexable as SvelteKit routes
Demo Seeder
pnpm db:seed-premium populates an Acme workspace with 12 members, 24 contacts, 22 invoices, 18 deals, 11 products, 18 orders, 6 projects, 12 tickets, kanban with 12 cards, 80 audit-log entries, and 30 tenant orgs for the SaaS Analytics dashboard. Idempotent — re-runs wipe and reseed without touching user accounts.
Tech Stack
| Framework | SvelteKit 2.59 + Svelte 5 (runes API) |
| Language | TypeScript 6 |
| Styling | Tailwind CSS 4 (OKLCH) + shadcn-svelte + tw-animate-css |
| Database | SQLite via Drizzle ORM + better-sqlite3 (WAL mode) |
| Auth | Custom sessions (@oslojs/crypto) + Argon2id + Arctic OAuth |
| MFA | TOTP (@oslojs/otp) + WebAuthn (@simplewebauthn) |
| Billing | Stripe SDK + Polar SDK (env-switched) |
| AI | Anthropic SDK (Claude) with prompt caching |
| Resend + Cloudflare Email Sending + console adapter | |
| Storage | AWS SDK v3 — S3 / R2 / MinIO / B2 |
| Charts | LayerChart 2 (D3-based) |
| pdfkit (in-process, no external browser) | |
| Editor | Tiptap 3 |
| Testing | Vitest + Playwright (17 test suites) |
| Build | Vite 8 + @sveltejs/adapter-node |
License: Commercial | View Live Demo
Pricing