A modern, full-stack web application boilerplate built with speed and developer experience in mind.
- React Router v7 - Next generation routing with file-based routing, type safety, and server components
- Prisma ORM - Next-generation Node.js and TypeScript ORM
- Better Auth - Simple and secure authentication
- Turso - Distributed SQLite database built on libSQL
- shadcn/ui - Re-usable components built with Radix UI and Tailwind CSS
- Tailwind CSS - Utility-first CSS framework
- Conform - Form validation and state management
- Zod - TypeScript-first schema validation
- Node.js 18+ and pnpm
- Turso CLI installed (
brew install tursodatabase/tap/turso
) - Git
- Sign up for a free account at Turso
- Create a new database:
turso db create [your-db-name]
- Get your database URL and authentication token:
turso db show [your-db-name] turso db tokens create [your-db-name]
-
Clone the repository:
git clone https://github.com/osmanorhan/breeze-stack.git cd breeze-stack
-
Install dependencies:
pnpm install
-
Create a .env file:
DATABASE_URL="libsql://[your-db-url]" DATABASE_AUTH_TOKEN="[your-token]" SESSION_SECRET="[your-session-secret]"
-
Generate Prisma client:
pnpm run db:generate
-
Generate auth tables:
pnpm dlx @better-auth/cli generate --config ./app/lib/auth.server.ts
-
Apply migrations:
pnpm dlx prisma migrate dev --name init
-
Apply initial migrations to Turso:
turso db shell [your-db-name] < ./prisma/migrations/20250104172246_init/migration.sql
Start the development server:
pnpm run dev
├── app/
│ ├── components/ # Reusable components
│ ├── lib/ # Utilities and configurations
│ ├── routes/ # File-based routing
│ └── styles/ # Global styles
├── prisma/
│ ├── migrations/ # Database migrations
│ └── schema.prisma # Database schema
When making changes to the schema:
- Update
prisma/schema.prisma
- Generate migration:
npx prisma migrate dev --name [descriptive-name]
- Apply to Turso:
turso db shell [your-db-name] < ./prisma/migrations/[timestamp]_[name]/migration.sql
Authentication is handled by Better Auth. The setup includes:
- Email/Password authentication
- OAuth providers (Google)
- Session management
- Protected routes
- 🎯 Type-safe routing and data loading
- 🔒 Built-in authentication with multiple providers
- 📱 Responsive layout with modern UI components
- 🎨 Dark mode support
- 🔍 Form validation with schema-based approach
- 🚀 Fast development workflow
- 📦 Pre-built components and layouts
MIT
- Role-based access control (RBAC)
- Team/Organization support
- Two-factor authentication (2FA)
- Password reset flow
- Email verification
- Advanced table features (sorting, filtering, pagination)
- File upload support with object storage
- Rich text editor integration (Lexical?)
- Dashboard analytics and charts
- Notification system
- Search functionality (add Meili?)
- SVG
- API documentation with Swagger/OpenAPI
- Unit and integration testing setup
- GitHub Actions CI/CD pipeline
- Performance monitoring
- Error tracking integration
- WebSocket support for real-time features
- Background job processing
- Caching layer
- Basic authentication flow
- Project CRUD operations
- Form validation with Conform
- Responsive dashboard layout
- Dark mode support
- Database migrations
Contributions are welcome! Please feel free to submit a Pull Request. Check our roadmap for planned features or suggest new ones.