Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/socialgouv/hasura-permissions-viewer
Generate human-friendly HTML table from hasura permissions list
https://github.com/socialgouv/hasura-permissions-viewer
hasura security
Last synced: 2 months ago
JSON representation
Generate human-friendly HTML table from hasura permissions list
- Host: GitHub
- URL: https://github.com/socialgouv/hasura-permissions-viewer
- Owner: SocialGouv
- Created: 2020-04-29T21:09:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-09T09:47:53.000Z (8 months ago)
- Last Synced: 2024-05-19T14:32:45.474Z (8 months ago)
- Topics: hasura, security
- Language: JavaScript
- Homepage: https://socialgouv.github.io/hasura-permissions-viewer
- Size: 230 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-hasura - Hasura permissions viewer - Generate an HTML summary of hasura permissions (Tools and Extensions)
README
# hasura-permissions-viewer [![](https://img.shields.io/npm/v/@socialgouv/hasura-permissions-viewer)](https://www.npmjs.com/package/@socialgouv/hasura-permissions-viewer)
Generate an HTML overview of tables permissions from hasura metadata.
![demo](./demo.png)
## Usage
Drop the result of from Hasura console `Export metadata` into the demo : https://socialgouv.github.io/hasura-permissions-viewer
Or use as npm module :
```js
const toHtml = require("@socialgouv/hasura-permissions-viewer");const metadata = require("./metadata.json");
// to get the formatted HTML tables
console.log(toHtml(metadata));
```