# Strig > Authorization library: RBAC, ABAC and ReBAC in one decision engine for Rust, Node, Bun, browser, Python, Go and JVM, with governance and audit. Every page below is plain markdown. The whole documentation in one file is [llms-full.txt](https://strig.vercel.app/llms-full.txt). ## Docs - [Introduction](https://strig.vercel.app/docs/index.md): What Strig decides, how it reaches a verdict, and where it runs. - [Getting started](https://strig.vercel.app/docs/getting-started.md): Install Strig, write a policy, ask the first question and read the answer. Then deny something and watch the engine fail closed. - [For AI agents](https://strig.vercel.app/docs/for-ai-agents.md): What Strig is, when to use it, how to install it, a minimal example per language, the questions the engine answers and the usual mistakes. Written for coding assistants and the people who use them. - [Concepts](https://strig.vercel.app/docs/concepts.md): The model behind a Strig decision, from the question to the grant that decides it. - [JavaScript](https://strig.vercel.app/docs/javascript.md): Install the npm package, write conditions, overrides and invariants as JavaScript functions, generate permission types for the frontend and keep grants in a JSON file. - [Web frameworks](https://strig.vercel.app/docs/web-frameworks.md): Protect Express, Fastify and NestJS routes with Strig, either one permission per handler or one central route table that refuses whatever it does not cover. - [Approvals](https://strig.vercel.app/docs/approvals.md): Keep a change to the grants as a pending request until another actor approves or refuses it. The author never approves their own request. - [Audit](https://strig.vercel.app/docs/audit.md): Record every change to the grants, choose what happens when the log cannot be written, and prove later that no record was edited, dropped or cut off the end. - [Reference](https://strig.vercel.app/docs/reference.md): The public API of Strig: the Rust crates, the command line, the npm and Python packages, the Go and Java bindings, the Wasm ABI, the HTTP API, protocol 2 and the closed lists of error codes. ## Policy language - [Policy language](https://strig.vercel.app/docs/policy-language.md): One policy, written in Blocks, Rules or Actors. All three compile to the same model, and you pick the one your team reads fastest. - [Blocks](https://strig.vercel.app/docs/policy-language/blocks.md): Every part of the policy as a named block with key = value fields. The reference for each declaration, with a full example and the usual mistakes. - [Rules](https://strig.vercel.app/docs/policy-language/rules.md): Each fact of the policy as one line, written to be read aloud. The reference for each statement, with a full example and the usual mistakes. - [Actors](https://strig.vercel.app/docs/policy-language/actors.md): The policy grouped by who acts. The reference for each heading, with a full example and the usual mistakes. ## Storage - [Postgres](https://strig.vercel.app/docs/storage/postgres.md): Keep grants, tuples, role assignments and pending requests in Postgres, and commit a change and its notice in one transaction. - [Redis](https://strig.vercel.app/docs/storage/redis.md): Carry change notices between instances over Redis pub/sub, and share exclusive leases with WATCH/MULTI/EXEC. - [Exclusive resources](https://strig.vercel.app/docs/storage/exclusive-store.md): Give a resource one holder at a time, and share the lease between processes with a Postgres or Redis store. - [Revisions and real time](https://strig.vercel.app/docs/storage/consistency.md): Push grant changes to every instance and client as they happen, and make a read after a write see that write. ## Modeling - [Field permissions](https://strig.vercel.app/docs/modeling/field-permissions.md): Let a grant cover some fields of a resource, ask which fields a subject may touch, and mask a response to match. ## Integrations - [Decision server](https://strig.vercel.app/docs/integrations/server.md): Answer decisions over HTTP for services that do not embed the engine, with AuthZEN and Envoy ext_authz on the same source. - [Prisma, Drizzle and Kysely](https://strig.vercel.app/docs/integrations/orms.md): Turn "what can this subject reach" into the where of your ORM, with failing closed on anything it cannot express. - [React and Angular](https://strig.vercel.app/docs/integrations/frontend.md): Show and hide UI from the real-time capabilities stream, and deny whenever there are none. - [Python](https://strig.vercel.app/docs/integrations/python.md): The same engine and the same JSON EngineSpec from Python, as one abi3 wheel per platform. - [Go](https://strig.vercel.app/docs/integrations/go.md): The engine compiled to WebAssembly and run on wazero, with no cgo. - [Java and Kotlin](https://strig.vercel.app/docs/integrations/jvm.md): The same WebAssembly module on Chicory, pure JVM with no native code. ## Governance - [Impact before apply](https://strig.vercel.app/docs/governance/impact.md): See who gains and who loses access from a change before you apply it, and show the approver both the proposed and the current impact. - [Temporary elevation and break-glass](https://strig.vercel.app/docs/governance/elevation.md): Hold a role or a permission for a few hours, approved by someone else or taken in an emergency, and let it expire without a job. - [Separation of duties](https://strig.vercel.app/docs/governance/separation-of-duties.md): Declare what nobody may accumulate and what nobody may do twice on the same resource, and have the engine and the governance enforce it. - [Access recertification](https://strig.vercel.app/docs/governance/recertification.md): Run a campaign where reviewers keep or revoke every grant in a scope before a deadline, and expire what nobody reviewed. - [Why not?](https://strig.vercel.app/docs/governance/why-not.md): Ask what would turn a denial into an allow. Every suggestion is applied to a copy and decided again before it is returned. ## Tools - [Testing a policy](https://strig.vercel.app/docs/tools/testing.md): Write check and mutation cases beside the policy, run them with strig test, and gate pull requests with JUnit and a GitHub Action. - [Diff and lint](https://strig.vercel.app/docs/tools/diff-lint.md): List the decisions a policy change widens or narrows, and find policy that never acts. - [Importing Casbin and OpenFGA](https://strig.vercel.app/docs/tools/importers.md): Convert a Casbin or OpenFGA model and its data into a .strig policy, with a report of what was narrowed or left out. - [Language server and VS Code](https://strig.vercel.app/docs/tools/editor.md): Diagnostics, formatting, completion, hover and go to definition for .strig files. - [Inspector](https://strig.vercel.app/docs/tools/inspector.md): See why a decision came out the way it did, compare subjects across permissions, replay an audit trail and simulate a change, in a window, in the terminal or in the browser. ## Operations - [Observability](https://strig.vercel.app/docs/operations/observability.md): Turn on spans and metrics with the tracing feature, pick your own backend, and know that no label ever carries a subject or resource id. - [Fuzzing](https://strig.vercel.app/docs/operations/fuzzing.md): The fuzz targets that run on engine changes and every night, what they cover, and how to reproduce a crash. ## Guides - [A multi-tenant SaaS](https://strig.vercel.app/docs/guides/saas-multi-tenant.md): Isolate tenants with one policy, filter lists in the database, keep grants in Postgres, audit every change and test the isolation in CI. - [An internal dashboard](https://strig.vercel.app/docs/guides/internal-dashboard.md): Department roles, a four-eyes rule on approvals, temporary access for exports, and a support answer for "why can't I?". - [A public API](https://strig.vercel.app/docs/guides/public-api.md): Put the decision at the gateway with Envoy ext_authz, give API keys roles scoped to an account, and fail closed when the decision service is down. - [Migrating from Casbin / OpenFGA](https://strig.vercel.app/docs/guides/migrating-from-casbin-openfga.md): Convert a Casbin or OpenFGA model, read the report, prove the result decides as the old one did, and switch over. ## Optional - [Upgrading](https://strig.vercel.app/docs/upgrading.md): What the 1.0 promise covers, what breaks a release, how a feature is deprecated, and the steps to move from 0.7 to 1.0 with the code before and after. - [Security](https://strig.vercel.app/docs/security.md): How to report a vulnerability in Strig, which versions get fixes, what is in scope, and how to verify the provenance and the SBOM of a release. - [Benchmarks](https://strig.vercel.app/docs/benchmarks.md): Numbers for the engine in Rust and through the JavaScript binding, with the machine, the versions and the commands to reproduce them.