-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model Visualization Improvements #42
Comments
I'm not sure what you have planned for the model visualization improvements but I though I'd add some ideas here. I use NX to manage my monorepos and it has some really good tooling for visualising the project dependancy graph which could be a good reference for an improved implementation in the playground. Their implementation handles displaying really large graphs nicely. Current playground displaying a 150 line model can get a bit crowdedExample project graph visualisation using the nx graphSome feature Ideas:
import {OpenFGAGraph} from 'openfga'
<OpenFGAGraph model=${model} query=${cliQueryResponse} viewType='check'/> |
Thanks for sharing @PatrickMunsey
We don't currently have an installable react module, not sure if we will - if we do, maybe for something more low level like web components rather than react, however the logic for creating the graph for visjs.org is here and can be coupled with any react component for Vis.js, e.g. react-graph-vis: https://github.com/openfga/frontend-utils/blob/main/src/utilities/graphs/model-graph.ts |
No description provided.
The text was updated successfully, but these errors were encountered: