{"id":20761541,"url":"https://github.com/zenstackhq/authz-modeling-samples","last_synced_at":"2025-09-27T23:30:32.016Z","repository":{"id":216945715,"uuid":"742219308","full_name":"zenstackhq/authz-modeling-samples","owner":"zenstackhq","description":"Samples schemas for different patterns of modeling authorization","archived":false,"fork":false,"pushed_at":"2024-01-13T10:25:42.000Z","size":68,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T22:22:29.065Z","etag":null,"topics":["authorization","nodejs","orm","prisma","typescript","zenstack"],"latest_commit_sha":null,"homepage":"","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/zenstackhq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-12T01:59:05.000Z","updated_at":"2024-12-22T17:12:32.000Z","dependencies_parsed_at":"2024-01-13T20:40:46.944Z","dependency_job_id":"b3b963da-e972-47db-b6fe-49f8c232e52d","html_url":"https://github.com/zenstackhq/authz-modeling-samples","commit_stats":null,"previous_names":["zenstackhq/authz-modeling-samples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenstackhq%2Fauthz-modeling-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenstackhq%2Fauthz-modeling-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenstackhq%2Fauthz-modeling-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenstackhq%2Fauthz-modeling-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenstackhq","download_url":"https://codeload.github.com/zenstackhq/authz-modeling-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234469615,"owners_count":18838607,"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":["authorization","nodejs","orm","prisma","typescript","zenstack"],"created_at":"2024-11-17T10:22:31.387Z","updated_at":"2025-09-27T23:30:31.665Z","avatar_url":"https://github.com/zenstackhq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Samples ZenStack schemas for different patterns of modeling authorization\n\n## What's ZenStack\n\n[ZenStack](https://github.com/zenstackhq/zenstack) is a NodeJS full-stack toolkit which supercharges [Prisma ORM](https://prisma.io) in many ways. Please [read here](https://zenstack.dev/docs) first.\n\n## About This Repo\n\nThis repo contains ZModel schemas and test code that demonstrate different patterns of modeling application's authorization.\n\nYou can find more detailed explanation in the blog post [Modeling Authorization in Prisma - No Theory, Just Code](https://zenstack.dev/blog/model-authz).\n\n## How To Run\n\nMake sure [\"pnpm\" is installed](https://pnpm.io/installation).\n\n-   pnpm install\n-   cd samples/[sample folder]\n-   pnpm generate\n-   pnpm test\n\n## Catalog\n\n- [simple-acl](samples/simple-acl): simple access control list\n- [simple-rbac](samples/simple-rbac): simple role-based access control\n- [simple-abac](samples/simple-abac): simple attribute-based access control\n- [multi-tenancy](samples/multi-tenancy): SaaS-like multi-tenancy authorization\n\n## Not Finding What You Want?\n\nPlease join [ZenStack Discord](https://discord.gg/Ykhr738dUe) to let us know your needs.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenstackhq%2Fauthz-modeling-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenstackhq%2Fauthz-modeling-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenstackhq%2Fauthz-modeling-samples/lists"}