zenstack
zenstack copied to clipboard
Typescript toolkit on top of Prisma ORM, offering flexible and declarative Access Control Policy(Authorization/Permission) for RBAC/ABAC/PBAC/ReBAC with auto-generated type-safe APIs and frontend hook...
Today policy expressions can use "Collection Predicate" to query relations, which is quite flexible: ```prisma model SpaceUser { id String @id @default(uuid()) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt space Space...
The [Linguist](https://github.com/github-linguist/linguist/) project is what GitHub uses for language detection and third-party grammar selection. We can enable syntax highlighting for the ZenStack language on GitHub by providing a language grammar...
Right now you can't use `future()` to check for post-update values in field-level rules. The workaround is to use a model-level rule instead. People may desire such a support so...
## Background Related Pisma issue: https://github.com/prisma/prisma/issues/3219 ## Proposed Solution 1. Add language-level "type" declaration support (not mapped to database tables) #783 2. Enforce schema checking at runtime for the strongly-typed...
## Background One of the traps that ZenStack users frequently fall into is not providing all the fields needed in the user context object when calling `enhance`. Today, ZenStack doesn't...
Discord link: https://discord.com/channels/1035538056146595961/1178398784980525207
Hello Yiming. I appreciate for this great project. I have been working on a project and generated Openapi from my .zmodel using zenstack/openapi generator, but I have a problem in...
**Is your feature request related to a problem? Please describe.** Generate test mocks / DB seeds based on schema/zod with some mapping (names, emails, images, dates, etc.) + using libs...