Skip to content

SocialGouv/hasura-permissions-viewer

Repository files navigation

hasura-permissions-viewer

Generate an HTML overview of tables permissions from hasura metadata.

demo

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 :

const toHtml = require("@socialgouv/hasura-permissions-viewer");

const metadata = require("./metadata.json");

// to get the formatted HTML tables
console.log(toHtml(metadata));