{"id":13770023,"url":"https://github.com/aaronhayes/hasura-sdk","last_synced_at":"2026-03-07T13:32:07.520Z","repository":{"id":40712332,"uuid":"282898672","full_name":"aaronhayes/hasura-sdk","owner":"aaronhayes","description":"Hasura Schema \u0026 Metadata Typescript SDK","archived":false,"fork":false,"pushed_at":"2023-01-06T12:34:44.000Z","size":883,"stargazers_count":24,"open_issues_count":21,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-22T06:57:12.139Z","etag":null,"topics":["admin","graphql","hasura","hasura-sdk","metadata","node","query","schema","sdk","typescript"],"latest_commit_sha":null,"homepage":"https://aaronhayes.github.io/hasura-sdk/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaronhayes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-27T12:58:00.000Z","updated_at":"2023-11-26T18:28:19.000Z","dependencies_parsed_at":"2023-02-06T02:31:22.375Z","dependency_job_id":null,"html_url":"https://github.com/aaronhayes/hasura-sdk","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/aaronhayes/hasura-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fhasura-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fhasura-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fhasura-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fhasura-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronhayes","download_url":"https://codeload.github.com/aaronhayes/hasura-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fhasura-sdk/sbom","scorecard":{"id":159204,"data":{"date":"2025-08-11","repo":{"name":"github.com/aaronhayes/hasura-sdk","commit":"948ca4152cc338cae2ceaf2810af64529fe94044"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/greetings.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/greetings.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/aaronhayes/hasura-sdk/greetings.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/aaronhayes/hasura-sdk/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/aaronhayes/hasura-sdk/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/aaronhayes/hasura-sdk/tests.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yaml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/aaronhayes/hasura-sdk/tests.yaml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"49 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-mhxj-85r3-2x55","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-4r62-v4vq-hr96","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T12:52:08.942Z","repository_id":40712332,"created_at":"2025-08-16T12:52:08.942Z","updated_at":"2025-08-16T12:52:08.942Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30215640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T13:25:55.541Z","status":"ssl_error","status_checked_at":"2026-03-07T13:25:38.596Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["admin","graphql","hasura","hasura-sdk","metadata","node","query","schema","sdk","typescript"],"created_at":"2024-08-03T17:00:33.594Z","updated_at":"2026-03-07T13:32:07.491Z","avatar_url":"https://github.com/aaronhayes.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Tools and Extensions"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eHasura SDK\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003eHasura Schema and Metadata Node SDK\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n \u003ca href=\"https://badge.fury.io/js/%40aaronhayes%2Fhasura-sdk\"\u003e\u003cimg src=\"https://badge.fury.io/js/%40aaronhayes%2Fhasura-sdk.svg\" alt=\"npm version\" height=\"18\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-yellow.svg\" alt=\"license: MIT\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://prettier.io\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg\" alt=\"code style: prettier\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/aaronhayes/hasura-sdk/actions\"\u003e\n    \u003cimg src=\"https://github.com/aaronhayes/hasura-sdk/workflows/Tests/badge.svg?branch=master\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/aaronhayes/hasura-sdk\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/aaronhayes/hasura-sdk/branch/master/graph/badge.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/aaronhayes/hasura-sdk/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/02998e4b9a8f31ab2f6d/maintainability\" /\u003e\u003c/a\u003e\n  \n\u003c/p\u003e\n\n---\n\nHasura Schema/Metadata API SDK. Written in TypeScript!\n\n- ✅ 100% in TypeScript\n- 🏋️ Uses Axios under the hood\n\n## Installation\n\n### yarn\n\n- `yarn add @aaronhayes/hasura-sdk`\n\n### npm\n\n- `npm install @aaronhayes/hasura-sdk`\n\n## Usage\n\n```JavaScript\nimport Hasura from '@aaronhayes/hasura-sdk`;\n\n// Note: just the base url - don't add /v1/graphql!\nconst HASURA_GRAPHQL_ENDPOINT = 'http://localhost:8080';\n\n// Hint: use process.env.HASURA_GRAPHQL_ADMIN_SECRET\nconst HASURA_GRAPHQL_ADMIN_SECRET = 'yousecret';\n\nconst hasura = new Hasura({\n    endpoint: HASURA_GRAPHQL_ENDPOINT,\n    adminSecret: HASURA_GRAPHQL_ADMIN_SECRET\n});\n\n// Using Async/Await Functions\ntry {\n    const resp = await hasura.createCronTrigger({\n        name: 'newcronjob',\n        schedule: '* * * * *', // every minute\n        webhook: '{{EVENT_BASE_URL}}/cron',\n        payload: {\n            hello: \"world\"\n        },\n        comment: 'test cron job every minute'\n    });\n} catch (error) {\n    // handle error\n}\n\n// Using Promises\nhasura.createCronTrigger({\n    name: 'newcronjob',\n    schedule: '* * * * *',\n    webhook: '{{EVENT_BASE_URL}}/cron',\n    payload: {\n        hello: \"world\"\n    },\n    comment: 'test cron job every minute'\n}).then(data =\u003e {\n    // axios response\n}).catch(error =\u003e {\n    // handle error\n});\n```\n\n## Schema/Metadata API References\n\n- [Full documentation](https://aaronhayes.github.io/hasura-sdk/)\n- [Hasura Docs](https://hasura.io/docs/1.0/graphql/manual/api-reference/schema-metadata-api/index.html#metadata-apis)\n\n## Supported APIs\n\nWe currently only support a small range of Hasura APIs. Be assured we working on adding more - if you need something be sure to create an issue!\n\n| API                       | Support    |\n| ------------------------- | ---------- |\n| \u003cb\u003eRun SQL\u003c/b\u003e            | \u003cb\u003eYes\u003c/b\u003e |\n| \u003cb\u003eTables/Views\u003c/b\u003e       | \u003cb\u003eYes\u003c/b\u003e |\n| Custom SQL Functions      | No         |\n| Relationships             | No         |\n| Computed Fields           | No         |\n| Permissions               | No         |\n| \u003cb\u003eEvent Triggers\u003c/b\u003e     | \u003cb\u003eYes\u003c/b\u003e |\n| \u003cb\u003eScheduled Triggers\u003c/b\u003e | \u003cb\u003eYes\u003c/b\u003e |\n| Remote Schemas            | No         |\n| Query Collections         | No         |\n| Custom Types              | No         |\n| Actions                   | No         |\n| Manage Metadata           | No         |\n\n## Give us a star!\n\nEvery star helps build a little more\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronhayes%2Fhasura-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronhayes%2Fhasura-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronhayes%2Fhasura-sdk/lists"}