The official website for Casbin. Casbin is an authorization library that supports access control models like ACL, RBAC, ABAC for Golang, Java, C#, JavaScript, Python, PHP and other languages.
This is a Next.js application built with Fumadocs, a modern documentation framework.
Visit the live site at: https://casbin.org
-
Clone the repository:
git clone https://github.com/casbin/casbin-website-v3.git cd casbin-website-v3 -
Install dependencies:
npm ci
-
Start the development server:
npm run dev
-
Open http://localhost:3000 with your browser to see the result.
In the project, you can see:
source.config.ts: Configuration for content source adaptersrc/lib/source.ts: Code for content source adapter,loader()provides the interface to access your contentsrc/lib/layout.shared.tsx: Shared options for layouts
| Route | Description |
|---|---|
app/(home) |
The route group for your landing page and other pages |
app/docs |
The documentation layout and pages |
app/api/search/route.ts |
The Route Handler for search |
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run format- Format code with Prettiernpm run format:check- Check code formattingnpm run types:check- Type check the project
We welcome contributions! Here's how you can help:
For the configuration of the sidebar and navigation, refer to the Fumadocs documentation.
For the features that you may use when writing documents, please refer to Markdown Features.
If you find any issues or have suggestions, please open an issue on our GitHub Issues page.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes using Conventional Commits format
- Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Note: This project uses semantic-release for automated version management and package publishing. Please use conventional commit messages (e.g., feat:, fix:, docs:) for your commits.
To learn more about Next.js and Fumadocs, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API
- Learn Next.js - an interactive Next.js tutorial
- Fumadocs - learn about Fumadocs
This project is licensed under the Apache-2.0 License.