{"id":19336561,"url":"https://github.com/subsquid/hasura-configuration","last_synced_at":"2026-02-13T06:15:58.184Z","repository":{"id":252855286,"uuid":"840295633","full_name":"subsquid/hasura-configuration","owner":"subsquid","description":"Hasura configuration tool for use in SQD indexers","archived":false,"fork":false,"pushed_at":"2025-02-22T00:06:57.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T06:11:20.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subsquid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-09T11:43:28.000Z","updated_at":"2025-02-22T00:07:00.000Z","dependencies_parsed_at":"2024-09-06T13:27:48.992Z","dependency_job_id":"5bc3c509-466f-48d6-bc44-24b38f040071","html_url":"https://github.com/subsquid/hasura-configuration","commit_stats":null,"previous_names":["abernatskiy/hasura-configuration","subsquid/hasura-configuration"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsquid%2Fhasura-configuration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsquid%2Fhasura-configuration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsquid%2Fhasura-configuration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsquid%2Fhasura-configuration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subsquid","download_url":"https://codeload.github.com/subsquid/hasura-configuration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352169,"owners_count":21416453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T03:11:39.314Z","updated_at":"2026-02-13T06:15:53.166Z","avatar_url":"https://github.com/subsquid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @subsquid/hasura-configuration\n\n\u003e [!NOTE]\n\u003e For info on migrating to v2 of the tool see [this page](https://docs.sqd.ai/sdk/resources/migrate/migrate-to-hasura-configuration-tool-v2).\n\nA tool that configures Hasura to track all database tables that have [TypeORM models](https://docs.devsquid.net/sdk/reference/schema-file/intro/#typeorm-codegen) in [SQD indexers](https://docs.subsquid.io/sdk).\n\nThe configuration is saved to a file compatible with the standard Hasura import / export procedure (\"Settings \u003e Metadata Actions\" in the web GUI). You can edit it in the GUI, export it, then apply it after it is erased (e.g. when the Hasura container is recreated).\n\n## Usage\n\n```bash\n# 1. Install\nnpm i @subsquid/hasura-configuration\n\n# 2. List available commands\nnpx squid-hasura-configuration --help\n```\n\n```\napply           Apply the configuration at hasura_metadata.json\nregenerate      Analyze TypeORM models and generate a Hasura configuration\n                at hasura_metadata.json that tracks all related tables and\n                foreign key relationships\n```\n\nThe `apply` command takes Hasura connection settings from environment variables:\n- `HASURA_GRAPHQL_ENDPOINT` (default: `http://localhost:8080`)\n- `HASURA_GRAPHQL_ADMIN_SECRET`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsquid%2Fhasura-configuration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubsquid%2Fhasura-configuration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsquid%2Fhasura-configuration/lists"}