Introduction
A comprehensive SaaS template built with Next.js App Router, shadcn/ui, Better Auth, and more.
Introduction
firstweb.app is designed to help developers launch their SaaS projects in hours instead of days. It provides all the boilerplate you need, from identity and payments to analytics and storage.
Features
- UI & Design: shadcn/ui, Tailwind CSS, Responsive design
- i18n: Multi-language support, next-intl integration
- Authentication: Better Auth, OAuth, Magic Link, Email/Password
- Database: Prisma ORM, PostgreSQL/MySQL/SQLite support
- Email: Resend, Email templates
- Payments: Stripe integration, Subscription & One-time
- Storage: S3 Compatible (Cloudflare R2, B2)
- Analytics: GA4, Vercel, PostHog, Umami
Tech Stack
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Auth: Better Auth
- Database: Prisma (PostgreSQL)
Getting Started
git clone <your-repo-url>
npm install
cp .env.example .env
npx prisma generate
npm run devCheck .env.example for required environment variables.
Docker Deployment
Quick start with Docker Compose:
docker-compose up -dProject Structure
src/app/- Next.js App Router (i18n)src/components/- UI and Shared Componentssrc/lib/- Auth, DB, Stripe, Storage logicmessages/- Translation JSON filesprisma/- Schema and Migrations