DISCLAIMER: This project is not production ready. Svelte5 is not stable and RBAC is not fully tested. Use at your own risk.
- Authentication (Email & GitHub OAuth)
- Multitenancy (Groups & Organizations)
- Role Based Acces Control (RBAC)
- Soft deletion
- User tracking
- Svelte5 and SvelteKit application framework
- PostgreSQL relational database
- DrizzleKit TypeScript ORM on top of PortgreSQL
- Lucia auth library
- TailwindCSS CSS framework
- Shadcn-svelte UI component library
- Superforms form validation and SSR submission
- Formsnap form building
- Layerchart charts
- Lucide Icons icon pack
- Resend email service API
- Umami analytics
- Vercel deployment platform
git clone https://github.com/xulioc/sveltekit-multitenant-rbac.git
cd sveltekit-multitenant-rbac
Create a new .env
file
cp .env.example .env
Edit your .env
file
# MANDATORY VARIABLES
PRIVATE_POSTGRES_URL="postgresql://<YOUR POSTGRESS URL>"
pnpm db:generate
pnpm db:push
To start in development mode:
pnpm dev
To build and start in production mode:
pnpm build
pnpm preview
To deploy to Vercel please follow instructions here.
Feel free to contribute. Issues and Pull Requests are welcome.