NextDay is more than just a todo app - it's a production-ready starter template for building modern SaaS applications. Built with Next.js 15, it provides a solid foundation with all the essential features you need to kickstart your next SaaS project:
- 🔒 Authentication with Better Auth
- 💳 Payments infrastructure with Polar
- 🔄 CRUD operations with optimistic updates
- 📊 Database setup with Drizzle ORM
- 🎯 Credit-based feature gating system
- 🎨 Polished UI with shadcn/ui components
This project serves as a reference implementation and starting point for future SaaS products. Once you understand how everything works together, you can fork it and adapt it to build your own SaaS ideas quickly.
- Production Ready: Includes authentication, payments, and database setup
- Modern Stack: Uses the latest stable versions of Next.js, React, and TypeScript
- Best Practices: Implements patterns for state management, form handling, and API design
- Type Safe: Full TypeScript support with strict type checking
- Developer Experience: Hot reload, ESLint, Prettier configured out of the box
- Smart Todo Lists: Create, manage, and organize tasks efficiently
- Focus Mode: Built-in Pomodoro timer with lofi music integration
- Real-time Updates: Instant synchronization across devices
- Modern UI: Clean, responsive interface built with shadcn/ui
- Dark Mode: Full support for light/dark themes
- Authentication: Secure user authentication via Better Auth
- Premium Features: Credit-based system for Pomodoro sessions
- Payments: Subscription management through Polar
- Framework: Next.js 15 with App Router
- Language: TypeScript
- Database: PostgreSQL with Drizzle ORM
- Authentication: Better Auth
- Styling: Tailwind CSS
- Components: shadcn/ui
- State Management: TanStack Query for server state
- Forms: React Hook Form with Zod validation
- Animations: Framer Motion
- Icons: Lucide Icons
- Package Manager: Bun
The app uses Better Auth for authentication. Users can:
- Sign up with email/password
- Sign in with social providers
- Reset password
- Manage their profile
- Users start with 100 free credits
- Each Pomodoro session costs 20 credits
- Credits can be purchased through Polar subscriptions
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- shadcn for the amazing UI components
- Better Auth for authentication
- Polar for payments infrastructure
- lofi.cafe for the music integration