https://github.com/openfga/model-visualizer
In-browser visualizer for OpenFGA authorization models as a weighted graph which offers insights into their performance characteristics
https://github.com/openfga/model-visualizer
Last synced: 4 months ago
JSON representation
In-browser visualizer for OpenFGA authorization models as a weighted graph which offers insights into their performance characteristics
- Host: GitHub
- URL: https://github.com/openfga/model-visualizer
- Owner: openfga
- License: apache-2.0
- Created: 2025-09-04T17:29:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-10-17T01:49:14.000Z (8 months ago)
- Last Synced: 2025-12-25T12:27:53.578Z (6 months ago)
- Language: HTML
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# OpenFGA Model Visualizer
*In-browser visualizer for OpenFGA authorization models as a **weighted graph** which offers insights into their performance characteristics*
[](./LICENSE)
[](https://openfga.dev/community)
[](https://twitter.com/openfga)

## Getting Started
1. Run: `PORT=8080 go run ./cmd/main.go`
2. Visit: `http://localhost:8080`
## Weighted Graph
A weighted graph assigns point values (from 1 to ∞) to nodes and edges. These weights represent the relative complexity of resolving that section of the model:
- **Lower weights:** relatively faster, cheaper resolution
- **Higher weights:** relatively slower, more resource-intensive resolution
- **∞ (infinity):** recursive or cyclical behavior, resolution costs cannot be determined from the model alone
The weighted graph is primarily an internal construct, designed to help the system coordinate resolution optimizations and improve query planning. It isn't required knowledge for an OpenFGA operator but can be a useful diagnostic tool for identifying potential performance bottlenecks in an authorization model.
## License
This project is licensed under the Apache-2.0 license. See the [LICENSE](https://github.com/openfga/language/blob/main/LICENSE) file for more info.