{"id":13539893,"url":"https://github.com/joaopcm/snipshare","last_synced_at":"2025-04-15T18:32:59.138Z","repository":{"id":136324303,"uuid":"606091613","full_name":"joaopcm/snipshare","owner":"joaopcm","description":"Revolutionize your coding experience with Snipshare - the all-in-one platform for creating, executing, and sharing Node.js code snippets! Join the coding revolution today at www.snipshare.co 🚀🌟","archived":false,"fork":false,"pushed_at":"2024-07-24T21:11:41.000Z","size":1512,"stargazers_count":60,"open_issues_count":9,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T18:48:00.164Z","etag":null,"topics":["markdown","nextjs","nodejs","notes","reactjs","typescript","web-containers"],"latest_commit_sha":null,"homepage":"https://www.snipshare.co","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/joaopcm.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,"publiccode":null,"codemeta":null},"funding":{"github":["joaopcm"],"patreon":"jopcmelo","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-02-24T15:24:01.000Z","updated_at":"2024-12-19T07:34:52.000Z","dependencies_parsed_at":"2024-07-23T15:19:38.491Z","dependency_job_id":"8958c288-f93a-43b2-b7e6-4a78dc832ee9","html_url":"https://github.com/joaopcm/snipshare","commit_stats":null,"previous_names":["joaopcm/snipshare","joaopcm/nodepad"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopcm%2Fsnipshare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopcm%2Fsnipshare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopcm%2Fsnipshare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopcm%2Fsnipshare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaopcm","download_url":"https://codeload.github.com/joaopcm/snipshare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248749052,"owners_count":21155675,"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":["markdown","nextjs","nodejs","notes","reactjs","typescript","web-containers"],"created_at":"2024-08-01T09:01:33.556Z","updated_at":"2025-04-15T18:32:59.108Z","avatar_url":"https://github.com/joaopcm.png","language":"TypeScript","funding_links":["https://github.com/sponsors/joaopcm","https://patreon.com/jopcmelo"],"categories":["TypeScript","typescript"],"sub_categories":[],"readme":"# Snipshare\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 email \u0026 password;\n- [ ] It should be able to authenticate using Github account;\n- [ ] It should be able to recover password using email;\n- [x] It should be able to create an account (email, 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 (email, 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\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;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaopcm%2Fsnipshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaopcm%2Fsnipshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaopcm%2Fsnipshare/lists"}