/GenAI-SaaS-Boilerplate

This is a boilerplate for your GenAI project with Nextjs and FastAPI.

Primary LanguageTypeScript

Open Source Boilerplate and Starter kit for your GenAI projects with NextJS 14+, FastAPI 0.110.0+, TypeScript, Python, SQLModel and much more

🚀 Boilerplate and Starter for Next.js with App Router support, Tailwind CSS and TypeScript ⚡️ Made with developer experience first: Next.js, TypeScript, ESLint, Prettier, Husky, Lint-Staged, Vitest (replacing Jest), Testing Library, Commitlint, VSCode, PostCSS, Tailwind CSS, Authentication with Clerk, Database with DrizzleORM (PostgreSQL, SQLite, and MySQL), Error Monitoring with Sentry, Logging with Pino.js and Log Management, Monitoring as Code, Storybook, Multi-language (i18n), and more. Ready for Next.js 15.

Clone this project and use it to create your own SaaS. You can check the live demo at SaaS Boilerplate.

Features

Developer experience first, extremely flexible code structure and only keep what you need:

  • Next.js with App Router support
  • 🔥 Type checking TypeScript
  • 💎 Integrate with Tailwind CSS and Shadcn UI
  • 🔒 Authentication with Clerk: Sign up, Sign in, Sign out, Forgot password, Reset password, and more.
  • () Stripe for payments.
  • 🔒 FastAPI for api routes and python development.
  • 🔒 CrewAI for GenAI agent crews.

Built-in feature from Next.js:

  • ☕ Minify HTML & CSS
  • 💨 Live reload
  • ✅ Cache busting

Philosophy

  • This will always be free and open source.
  • Nothing is hidden from you, so you have the freedom to make the necessary adjustments to fit your needs and preferences.
  • Dependencies are updated every month
  • Easy to customize
  • Minimal code
  • SEO-friendly
  • 🚀 Production-ready

Requirements

  • Node.js 20+ and npm

Getting started

Run the following command on your local environment:

git clone --depth=1 https://github.com/hmnajam/GenAI-SaaS-Boilerplate my-project-name
cd my-project-name
npm install

For your information, all dependencies are updated every month.

Then, you can run the project locally in development mode with live reload by executing:

npm run dev

Open http://localhost:3000 with your favorite browser to see your project.