Skip to main content

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-sdk and 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:

TopicExamples of what you find
Backend frameworksExpress, Fastify, FastAPI, Spring Boot, Go, and Java apps that call permit.check()
Frontend frameworksReact, Angular, and Vue apps that toggle UI with permit-fe-sdk and CASL
Full demo appsGalactic Health Corporation, Pink Mobile, the Nuxt food delivery app, and a banking demo
DeploymentPDP deployment examples for different platforms
Policy as codeExample OPAL policy repositories, generated policy code, and Rego-based ReBAC
AI agentsLangChain, 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