Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

Generate human-friendly HTML table from hasura permissions list

Awesome Lists containing this project

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));
```