{"id":13494941,"url":"https://github.com/devkiran/NextAPI","last_synced_at":"2025-03-28T15:32:10.020Z","repository":{"id":143948377,"uuid":"585405636","full_name":"devkiran/NextAPI","owner":"devkiran","description":"A Next.js API starter for building SaaS apps","archived":false,"fork":false,"pushed_at":"2023-07-12T18:00:18.000Z","size":421,"stargazers_count":146,"open_issues_count":2,"forks_count":38,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T22:41:42.548Z","etag":null,"topics":["nextjs","nextjs-api","nextjs-api-routes","nextjs-starter","nextjs-template","saas-api","saas-application","saas-boilerplate","saas-starter-kit","supabase","typescript"],"latest_commit_sha":null,"homepage":"https://saas-starter-kits.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devkiran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-01-05T04:47:53.000Z","updated_at":"2025-03-20T22:00:40.000Z","dependencies_parsed_at":"2024-01-16T09:53:18.656Z","dependency_job_id":"ecaa6cfc-506b-4cb0-b6ab-8162e50758b4","html_url":"https://github.com/devkiran/NextAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2FNextAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2FNextAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2FNextAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2FNextAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devkiran","download_url":"https://codeload.github.com/devkiran/NextAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246053853,"owners_count":20716271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","nextjs-api","nextjs-api-routes","nextjs-starter","nextjs-template","saas-api","saas-application","saas-boilerplate","saas-starter-kit","supabase","typescript"],"created_at":"2024-07-31T19:01:29.702Z","updated_at":"2025-03-28T15:32:09.636Z","avatar_url":"https://github.com/devkiran.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# NextAPI\n\n\u003cp\u003e\n    \u003ca href=\"https://github.com/devkiran/NextAPI/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/devkiran/NextAPI\" alt=\"Github stargazers\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/devkiran/NextAPI/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/devkiran/NextAPI\" alt=\"Github issues\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/devkiran/NextAPI/blob/main/LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/github/license/devkiran/NextAPI\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nA Next.js RESTful API Starter for building SaaS app.\n\n## Introduction\n\nLet NextAPI handle the heavy lifting for common SaaS features such as authentication, team management, invites, subscriptions, and more.\n\nSay goodbye to tedious backend boilerplate code and focus on what matters most - building user-friendly UI/UX that delight your customers.\n\nWith its powerful combination of Next.js, Supabase, and Prisma - NextAPI provides the perfect foundation for creating scalable and feature-rich SaaS apps.\n\n[API Documentation](https://saas-api.dev/introduction)\n\n## Built with\n\n- [Next.js](https://nextjs.org/)\n- [Supabase](https://supabase.io/)\n- [Prisma](https://www.prisma.io/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [React.email](https://react.email/)\n\n## API routes\n\nNextAPI comes with a set of API routes that you can use within your React components.\n\n| Method | Path                               | Description              |\n| ------ | ---------------------------------- | ------------------------ |\n| POST   | /api/auth/signup                   | Sign up a new user       |\n| POST   | /api/auth/signin                   | Sign in an existing user |\n| POST   | /api/teams                         | Create a new team        |\n| GET    | /api/teams                         | Get all teams for user   |\n| GET    | /api/teams/:slug                   | Get a team               |\n| DELETE | /api/teams/:slug                   | Delete a team            |\n| PUT    | /api/teams/:slug                   | Update a team            |\n| POST   | /api/teams/:slug/invites           | Create a new invite      |\n| GET    | /api/teams/:slug/invites           | Get all invites for team |\n| GET    | /api/teams/:slug/invites/:inviteId | Get an invite            |\n| DELETE | /api/teams/:slug/invites/:inviteId | Delete an invite         |\n| GET    | /api/teams/:slug/members           | Get all members for team |\n| PUT    | /api/teams/:slug/members/:memberId | Update a member          |\n| DELETE | /api/teams/:slug/members/:memberId | Delete a member          |\n| GET    | /api/me                            | Get current user         |\n| PUT    | /api/me                            | Update current user      |\n| POST   | /api/invites/:inviteId/accept      | Accept an invite         |\n| POST   | /api/invites/:inviteId/decline     | Reject an invite         |\n\n## Emails are sent for the following events\n\n- When a new user signs up\n- When a new invite is created\n- When a user is added to a team\n- When a user is removed from a team\n\n## Getting started\n\n- Fork this repository\n- Clone your forked repository\n- Navigate to the project directory\n- Run `npm install` to install dependencies\n- Copy `.env.example` to `.env.local` and update the environment variables\n- Run `npx prisma migrate deploy` to apply migrations\n- Run `npm run dev` to start the development server\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkiran%2FNextAPI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevkiran%2FNextAPI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkiran%2FNextAPI/lists"}