
Sveltekit Auth
An open-source Sveltekit authentication starter project using Lucia, shadcn-svelte, Drizzle, Zod, and Superforms for a production-ready setup.

Sveltekit Auth: Comprehensive Authentication Starter for Sveltekit
Sveltekit Auth is an open-source starter project designed to quickly implement robust authentication in your Sveltekit applications. It leverages powerful libraries like Lucia for auth, shadcn-svelte for UI, Drizzle for database operations, and Zod with Superforms for seamless form handling. This boilerplate provides a production-ready foundation, including email verification and password reset, enabling developers to focus on core application features rather than boilerplate authentication setup.
Features:
- Lucia-based Authentication: Core email/password login system, with an example for Google OAuth integration.
- shadcn-svelte UI: Utilizes beautiful and accessible UI components from shadcn-svelte.
- Drizzle ORM Integration: Provides database connectivity and type safety, compatible with various databases, managed with Drizzle Kit.
- Zod & Superforms: Implements schema validation with Zod and streamlined form management with Superforms.
- Email Verification: Includes a flow for users to verify their email addresses.
- Password Reset: Allows users to securely reset their forgotten passwords via email.
- Email Change Re-verification: Ensures email changes are confirmed by sending a re-verification link to the new address.
- User Profile Management: Enables users to edit their profile, including email address and password.
- User Roles Support: Incorporates a system for defining and managing user roles.
- Theme Switching: Offers light and dark mode themes for user preference.
- Error Logging System: Features an integrated logging system for tracking application errors (example with Axiom).
- Lucide Icons: Incorporates a wide range of icons from Lucide for UI elements.
- Organized File Structure: Provides a clear and maintainable project layout for easier development.
- High Performance: Optimized for speed, achieving excellent scores in Google PageSpeed Insights.
- Database Migration Tools: Includes npm scripts for Drizzle ORM to generate, migrate, and view database schemas.
Summary:
This Sveltekit starter accelerates development by providing a fully-featured authentication system out-of-the-box. It integrates Lucia, shadcn-svelte, Drizzle, Zod, and Superforms to deliver a robust solution for user management, including email verification, password resets, and profile editing. Ideal for developers seeking a production-ready starting point for Sveltekit projects requiring secure authentication and a modern UI.

Similar to Sveltekit Auth:


