Other Code Examples
Find an open-source example repository that shows Permit.io authorization in the framework, language, or stack you use. This page is for developers who want working code to read or copy before they add permission checks to their own app. For guided walkthroughs of full demo apps, see the other pages in this section, such as Food Delivery System Example.
What the examples cover
Each repository is a runnable app or integration maintained in the permitio GitHub organization. The examples show how to:
- Call
permit.check()from a backend framework or middleware. - Model role-based access control (RBAC), attribute-based access control (ABAC), and relationship-based access control (ReBAC) policies, and sync users, resources, and relationships to Permit.
- Show or hide frontend features with the
permit-fe-sdkand CASL. - Run the policy decision point (PDP) on different platforms.
- Manage policy as code with GitOps, Open Policy Agent (OPA) Rego, and the Open Policy Administration Layer (OPAL).
- Add permission checks to AI agents and retrieval pipelines.
Typical topics in the list:
| Topic | Examples of what you find |
|---|---|
| Backend frameworks | Express, Fastify, FastAPI, Spring Boot, Go, and Java apps that call permit.check() |
| Frontend frameworks | React, Angular, and Vue apps that toggle UI with permit-fe-sdk and CASL |
| Full demo apps | Galactic Health Corporation, Pink Mobile, the Nuxt food delivery app, and a banking demo |
| Deployment | PDP deployment examples for different platforms |
| Policy as code | Example OPAL policy repositories, generated policy code, and Rego-based ReBAC |
| AI agents | LangChain, Langflow, and PydanticAI integrations |
Browse the example repositories
The following list loads in your browser from the GitHub search API. The list includes every non-archived repository in the permitio organization that has the example topic, sorted by the most recently updated. Each card links to the repository and shows its GitHub description. To search the same set on GitHub, open permitio repositories with the example topic. If the list stays empty, the GitHub search API may have rate-limited unauthenticated requests from your network. Use the GitHub search link instead.
Next steps
- Healthcare Demo Application walks through RBAC, ABAC, and ReBAC in one Next.js app.
- Teleco Demo Application shows a policy model built with the Node.js SDK.
- Check permissions with permit.check() covers the check call used in every example.