{"id":15083821,"url":"https://github.com/vandodev/course-saas-next-rbac","last_synced_at":"2026-02-15T03:32:17.379Z","repository":{"id":234836495,"uuid":"789590771","full_name":"vandodev/course-saas-next-rbac","owner":"vandodev","description":"NextSAS-RBAC: SaaS robusto com Next.js 14, RBAC, ABAC, Node.js, Fastify, Prisma e TurboRepo para controle de acesso granular, front-end performante e desenvolvimento eficiente.","archived":false,"fork":false,"pushed_at":"2024-08-12T12:31:36.000Z","size":1070,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T10:32:40.366Z","etag":null,"topics":["api","casl","docker","docker-compose","eslint","fastify","monorepo","next","nextjs","node","nodejs","orm","postgres","prisma","prisma-orm","react","rocketseat","rod","turborepo","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vandodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2024-04-21T01:39:52.000Z","updated_at":"2025-01-13T09:53:38.000Z","dependencies_parsed_at":"2024-06-21T09:00:18.009Z","dependency_job_id":"5e3a2bf6-e762-478f-b151-ec47dc9d67a3","html_url":"https://github.com/vandodev/course-saas-next-rbac","commit_stats":null,"previous_names":["vandodev/course-saas-next-rbac"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vandodev/course-saas-next-rbac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandodev%2Fcourse-saas-next-rbac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandodev%2Fcourse-saas-next-rbac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandodev%2Fcourse-saas-next-rbac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandodev%2Fcourse-saas-next-rbac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vandodev","download_url":"https://codeload.github.com/vandodev/course-saas-next-rbac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandodev%2Fcourse-saas-next-rbac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29466929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","casl","docker","docker-compose","eslint","fastify","monorepo","next","nextjs","node","nodejs","orm","postgres","prisma","prisma-orm","react","rocketseat","rod","turborepo","typescript"],"created_at":"2024-09-25T06:33:19.017Z","updated_at":"2026-02-15T03:32:17.357Z","avatar_url":"https://github.com/vandodev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js SaaS + RBAC\n\nThis project contains all the necessary boilerplate to setup a multi-tenant SaaS with Next.js including authentication and RBAC authorization.\n\n## Features\n\n### Authentication\n\n- [ ] It should be able to authenticate using e-mail \u0026 password;\n- [ ] It should be able to authenticate using Github account;\n- [ ] It should be able to recover password using e-mail;\n- [x] It should be able to create an account (e-mail, name and password);\n\n### Organizations\n\n- [ ] It should be able to create a new organization;\n- [ ] It should be able to get organizations to which the user belongs;\n- [ ] It should be able to update an organization;\n- [ ] It should be able to shutdown an organization;\n- [ ] It should be able to transfer organization ownership;\n\n### Invites\n\n- [ ] It should be able to invite a new member (e-mail, role);\n- [ ] It should be able to accept an invite;\n- [ ] It should be able to revoke a pending invite;\n\n### Members\n\n- [ ] It should be able to get organization members;\n- [ ] It should be able to update a member role;\n\n### Projects\n\n- [ ] It should be able to get projects within a organization;\n- [ ] It should be able to create a new project (name, url, description);\n- [ ] It should be able to update a project (name, url, description);\n- [ ] It should be able to delete a project;\n\n### Billing\n\n- [ ] It should be able to get billing details for organization ($20 per project / $10 per member excluding billing role);\n\n## RBAC\n\nRoles \u0026 permissions.\n\n### Roles\n\n- Owner (count as administrator)\n- Administrator\n- Member\n- Billing (one per organization)\n- Anonymous\n\n### Permissions table\n\n|                          | Administrator | Member | Billing | Anonymous |\n| ------------------------ | ------------- | ------ | ------- | --------- |\n| Update organization      | ✅            | ❌     | ❌      | ❌        |\n| Delete organization      | ✅            | ❌     | ❌      | ❌        |\n| Invite a member          | ✅            | ❌     | ❌      | ❌        |\n| Revoke an invite         | ✅            | ❌     | ❌      | ❌        |\n| List members             | ✅            | ✅     | ✅      | ❌        |\n| Transfer ownership       | ⚠️            | ❌     | ❌      | ❌        |\n| Update member role       | ✅            | ❌     | ❌      | ❌        |\n| Delete member            | ✅            | ⚠️     | ❌      | ❌        |\n| List projects            | ✅            | ✅     | ✅      | ❌        |\n| Create a new project     | ✅            | ✅     | ❌      | ❌        |\n| Update a project         | ✅            | ⚠️     | ❌      | ❌        |\n| Delete a project         | ✅            | ⚠️     | ❌      | ❌        |\n| Get billing details      | ✅            | ❌     | ✅      | ❌        |\n| Export billing details   | ✅            | ❌     | ✅      | ❌        |\n\n\u003e ✅ = allowed\n\u003e ❌ = not allowed\n\u003e ⚠️ = allowed w/ conditions\n#### Conditions\n\n- Only owners may transfer organization ownership;\n- Only administrators and project authors may update/delete the project;\n- Members can leave their own organization;","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvandodev%2Fcourse-saas-next-rbac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvandodev%2Fcourse-saas-next-rbac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvandodev%2Fcourse-saas-next-rbac/lists"}