التخطي إلى المحتوى الرئيسي

Online Editor

The online editor lets you write and test Casbin models and policies in the browser, with syntax highlighting and completion.

Features​

AI assistance​

Get suggestions and help while editing models and policies.

editor-ai

Engine selection​

Run enforcement with Go, Java, Node.js, Python, Rust, or .NET.

editor-engine

Multiple engines​

Switch implementations to check behavior across languages.

editor-multi-engine

Custom endpoint​

Point the editor at your own Casbin service for live testing.

editor-endpoint

File upload​

Import existing model and policy files to start working immediately.

editor-upload

Use Custom Functions​

Add custom matching functions (for example, "RBAC with Patterns") by clicking the "Add Role Matching" button in the bottom left corner.

نصائح المحرر.

To implement custom matching functions in your code, configure them through the Casbin API. See RBAC with Pattern for details.

ملاحظة

The editor supports Node-Casbin (Node.js), JCasbin (Java), Casbin (Go), Casbin-rs (Rust), PyCasbin (Python), and Casbin.NET (C#). Switch between implementations in the upper right corner to test your configuration.

The editor validates models through a remote CLI. Results may vary slightly from your local environment due to implementation differences. Report any issues to the appropriate Casbin implementation repository.