Automate Hasura metadata tracking (tables, views, functions) and generate typed SQL views for JSON columns. Version 2.3.1 is current. Supports CI/CD pipelines, relationship naming control, and automatic view generation from JSON data. Key differentiators: configuration-driven tracking via JSON (no UI), custom relationship naming, and typed view generation for JSON columns. Used as a library (import) or CLI tool. Released under GPL-3.0. Low release cadence.
npm install hasura-auto-trackerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a HasuraAutoTracker instance, tracking tables/views, and generating typed views from JSON columns.
Use import syntax or switch to dynamic import().
Replace 'autoTrackRelationships' with 'relationshipConfig' in the constructor options.
Provide 'adminSecret' in the constructor options, e.g., from process.env.
Wrap calls in try/catch and ensure the Hasura server is running and accessible.
Run 'npm install hasura-auto-tracker' and use ESM import syntax (import { HasuraAutoTracker } from 'hasura-auto-tracker').Change 'const ... = require(...)' to 'import ... from ...'.
Ensure you import trackTables as a destructured named export: import { trackTables } from 'hasura-auto-tracker'.No dependency data recorded yet.