These are reference implementations of adapters that take a Cerbos Query Plan (PlanResources API) response and convert it into a filter which can be applied to your data fetching layer to return just the instances of a resource that a user would have access to.
Current supported adapters:
- Convex
- Drizzle ORM
- Elasticsearch (Java)
- Ent (Go)
- LangChain / ChromaDB
- Mongoose
- pgx (Go)
- Prisma
- Spring Data JPA
- SQLAlchemy
Every adapter is proved against two shared corpora at the root of this repository:
conformance/— deliberately hostile shapes, proving each adapter's filter returns exactly the rows the PDP allows.demo/— one realistic domain, proving each adapter's published package installs, imports, and composes with its ORM's real query methods.