Provides RESTful API routes covering authentication, teams, invitations, and member management
NextAPI — Next.js SaaS Template
By devkiran
NextAPI is a Next.js-based RESTful API starter for SaaS applications, providing backend endpoints for authentication, team management, invitations, and member management.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 2
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Uses a combination of Next.js, Supabase, Prisma, TypeScript, and React.email
Triggers emails on events such as registration, invitation, joining a team, and removal from a team
Under the MIT license, permitting free use, modification, commercial use, and distribution of this version of the code
Template Details
NextAPI is an open-source Next.js RESTful API starter by devkiran on GitHub, intended for building SaaS applications. It packages common SaaS backend functionality (authentication, team management, invitations, member management) into a set of API routes that developers can call directly from React components, reducing repetitive backend boilerplate.
Technically, the project uses Next.js, Supabase, Prisma, TypeScript, and React.email. The API routes cover registration, login, reading and writing the current user, team CRUD, creating/querying/deleting team invitations, querying/updating/deleting members, and accepting or declining invitations. Emails are sent when a new user registers, an invitation is created, a user joins a team, or a user is removed from a team.
Before use, you need to prepare environment variables yourself and run Prisma migrations; the project itself does not include configuration for hosting, database, or email services. The repository is under the MIT license, and the free scope is the code in this version; third-party assets such as demo images, fonts, and icons, as well as external services such as domains, hosting, and databases, require separate verification of licensing and costs.
Is it right for your project?
Use Cases
- Quickly setting up backend endpoints for authentication and team collaboration in a SaaS product
- Calling ready-made team and invitation APIs directly from React components
- Extending your own SaaS business logic on top of the Supabase and Prisma data layer
Suitable For
- Developers who need a SaaS backend API starting point and want to reduce boilerplate
- Teams using a Next.js and TypeScript stack
- Projects planning to use Supabase and Prisma as the data and authentication foundation
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
After forking and cloning the repository, run npm install in the project directory to install dependencies
- 2
Copy .env.example to .env.local and fill in the environment variables
- 3
Run npx prisma migrate deploy to apply database migrations
- 4
Run npm run dev to start the development server
- 5
External services such as domains, hosting, databases, payments, or AI may incur additional charges; third-party assets must be checked against their respective licenses
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis listing covers the free version under the MIT license in the public repository; the free scope is this version of the code and does not mean external services or third-party assets are free.
Must comply with when using
- Permits free use, modification, commercial use, and distribution of this version of the code.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Before use, you must configure environment variables yourself (such as credentials for external services like Supabase, database, and email); the project does not provide configuration or quotas for these services.
- You need to prepare and connect a database yourself and run Prisma migrations before use; database hosting and costs are borne by the user.
- Depends on external services such as Supabase and Prisma; you need to register accounts yourself and charges may apply.
- API documentation is hosted on the external site saas-api.dev; access and availability depend on that third-party service.
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may incur additional charges.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
Copy `.env.example` to `.env.local` and update the environment variables
Original README
Run `npx prisma migrate deploy` to apply migrations
Original README
With its powerful combination of Next.js, Supabase, and Prisma
Original README
https://github.com/devkiran/NextAPI/blob/main/LICENSE.mdhttps://github.com/devkiran/NextAPI/blob/main/README.md[API Documentation](https://saas-api.dev/introduction)
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-01. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 81 / 100
- Technologies
- Next.js · React
- Website type
- SaaS · Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2023-07-12
- Screenshot last checked
- 2026-10-01
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Next.js as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: d3d363969dcc90a15d64a55dafc2f54034e53ce1619c56c04ab6f246bdc85059
2026-10-01T01:21:24.603Z
Source file / repository# NextAPI
<p>
<a href="https://github.com/devkiran/NextAPI/stargazers"><img src="https://img.shields.io/github/stars/devkiran/NextAPI" alt="Github stargazers"></a>
<a href="https://github.com/devkiran/NextAPI/issues"><img src="https://img.shields.io/github/issues/devkiran/NextAPI" alt="Github issues"></a>
<a href="https://github.com/devkiran/NextAPI/blob/main/LICENSE.md"><img src="https://img.shields.io/github/license/devkiran/NextAPI" alt="License"></a>
</p>
A Next.js RESTful API Starter for building SaaS app.
## Introduction
Let NextAPI handle the heavy lifting for common SaaS features such as authentication, team management, invites, subscriptions, and more.
Say goodbye to tedious backend boilerplate code and focus on what matters most - building user-friendly UI/UX that delight your customers.
With its powerful combination of Next.js, Supabase, and Prisma - NextAPI provides the perfect foundation for creating scalable and feature-rich SaaS apps.
[API Documentation](https://saas-api.dev/introduction)
## Built with
- [Next.js](https://nextjs.org/)
- [Supabase](https://supabase.io/)
- [Prisma](https://www.prisma.io/)
- [TypeScript](https://www.typescriptlang.org/)
- [React.email](https://react.email/)
## API routes
NextAPI comes with a set of API routes that you can use within your React components.
| Method | Path | Description |
| ------ | ---------------------------------- | ------------------------ |
| POST | /api/auth/signup | Sign up a new user |
| POST | /api/auth/signin | Sign in an existing user |
| POST | /api/teams | Create a new team |
| GET | /api/teams | Get all teams for user |
| GET | /api/teams/:slug | Get a team |
| DELETE | /api/teams/:slug | Delete a team |
| PUT | /api/teams/:slug | Update a team |
| POST | /api/teams/:slug/invites | Create a new invite |
| GET | /api/teams/:slug/invites | Get all invites for team |
| GET | /api/teams/:slug/invites/:inviteId | Get an invite |
| DELETE | /api/teams/:slug/invites/:inviteId | Delete an invite |
| GET | /api/teams/:slug/members | Get all members for team |
| PUT | /api/teams/:slug/members/:memberId | Update a member |
| DELETE | /api/teams/:slug/members/:memberId | Delete a member |
| GET | /api/me | Get current user |
| PUT | /api/me | Update current user |
| POST | /api/invites/:inviteId/accept | Accept an invite |
| POST | /api/invites/:inviteId/decline | Reject an invite |
## Emails are sent for the following events
- When a new user signs up
- When a new invite is created
- When a user is added to a team
- When a user is removed from a team
## Getting started
- Fork this repository
- Clone your forked repository
- Navigate to the project directory
- Run `npm install` to install dependencies
- Copy `.env.example` to `.env.local` and update the environment variables
- Run `npx prisma migrate deploy` to apply migrations
- Run `npm run dev` to start the development server
## License
MIT License
Explore similar templates
Compare previews and descriptions within the same stack and category.

Next.js SaaS Starter
The official Next.js SaaS starter template, integrating email/password authentication, Stripe Checkout subscriptions, a dashboard with user/team CRUD, basic Owner/Member RBAC, and activity logging.
Next.js · SaaS

Next.js Commerce
Vercel's officially maintained Next.js App Router ecommerce starter with deep Shopify integration, offering a complete product catalog, cart, and checkout flow. Core logic is modular for swapping backends, and community provider versions exist for BigCommerce, Medusa, and Saleor.
Next.js · E-commerce

Next-js-Boilerplate
A developer-first Next.js 16 starter with Tailwind CSS 4 and TypeScript, supporting both App Router and Page Router.
Next.js · Starter

tailwind-nextjs-starter-blog
A Next.js and Tailwind CSS blog starter template using Contentlayer for Markdown/MDX, with built-in SEO, code highlighting, and tags. It targets personal technical blogs and migration from Jekyll/Hugo to React, and supports one-click Vercel deployment.
Next.js · Blog

next-forge
next-forge is a Turborepo-based Next.js template maintained by Vercel, positioned as a starting point for SaaS products.
Next.js · Starter

SaaS-Boilerplate
SaaS-Boilerplate is an open-source SaaS starter template built with Next.js App Router, React 19, TypeScript, Tailwind CSS, and Shadcn UI.
Next.js · SaaS
