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

Online Editor

يمكنك أيضًا استخدام المحرر عبر الإنترنت لكتابة نموذج وسياسة Casbin في متصفح الويب الخاص بك. يوفر وظائف مثل "تمييز البناء اللغوي" و"إكمال الكود"، تمامًا مثل بيئة التطوير المتكاملة للغة برمجة.

Editor Features

The online editor provides several powerful features to enhance your Casbin development experience:

AI-Powered Assistance

The editor includes AI assistance to help you write better Casbin models and policies.

editor-ai

Engine Selection

Choose from multiple Casbin engines including Go, Java, Node.js, Python, Rust, and .NET implementations.

editor-engine

Multiple Engine Support

Switch between different Casbin implementations to test your models across various platforms.

editor-multi-engine

Endpoint Configuration

Configure custom endpoints for testing your Casbin models against different environments.

editor-endpoint

File Upload

Upload existing model and policy files to quickly get started with the editor.

editor-upload

Use Custom Functions

If you need to use a customized matching function (e.g. "RBAC with Patterns"), you can add it by clicking the "Add Role Matching" button at the bottom left corner of the editor.

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

إذا كنت ترغب في كتابة الكود المكافئ، تحتاج إلى تحديد وظيفة مطابقة النمط من خلال واجهة برمجة التطبيقات ذات الصلة. راجع RBAC مع نمط لمزيد من المعلومات.

ملاحظة

The editor supports multiple Casbin implementations, including Node-Casbin (Node.js), JCasbin (Java), Casbin (Go), Casbin-rs (Rust), PyCasbin (Python), and Casbin.NET (C#). You can switch between different implementations in the upper right corner to test your model and policy.

Although the editor validates through a remote CLI, due to environment differences, the validation results may differ slightly from the results you get in your local environment. If you encounter any issues, please submit them to the corresponding Casbin implementation repository.