{"id":20400184,"url":"https://github.com/siddharth9890/graphql-sdk-generator","last_synced_at":"2026-01-31T22:04:12.447Z","repository":{"id":253384218,"uuid":"836274261","full_name":"Siddharth9890/graphql-sdk-generator","owner":"Siddharth9890","description":"The GraphQL SDK Generator converts GraphQL schemas into JavaScript or TypeScript code, enabling smooth autocomplete and validation for your GraphQL queries.","archived":false,"fork":false,"pushed_at":"2024-08-31T13:59:13.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T11:53:43.723Z","etag":null,"topics":["graphql","graphql-typescript","sdk","sdk-typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/graphql-sdk-generator","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/Siddharth9890.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-31T13:58:11.000Z","updated_at":"2024-08-31T13:59:15.000Z","dependencies_parsed_at":"2024-08-16T11:27:23.270Z","dependency_job_id":"0264c817-8294-4ccd-aaff-ccf3849e154e","html_url":"https://github.com/Siddharth9890/graphql-sdk-generator","commit_stats":null,"previous_names":["siddharth9890/graphql-sdk-generator"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Siddharth9890/graphql-sdk-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharth9890%2Fgraphql-sdk-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharth9890%2Fgraphql-sdk-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharth9890%2Fgraphql-sdk-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharth9890%2Fgraphql-sdk-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siddharth9890","download_url":"https://codeload.github.com/Siddharth9890/graphql-sdk-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharth9890%2Fgraphql-sdk-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28956943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["graphql","graphql-typescript","sdk","sdk-typescript"],"created_at":"2024-11-15T04:38:47.571Z","updated_at":"2026-01-31T22:04:12.432Z","avatar_url":"https://github.com/Siddharth9890.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/user-attachments/assets/6e4183f5-4432-4e20-99eb-17f2ce0e0ef7)\n\n# GraphQL SDK Generator\n\nThe GraphQL SDK Generator converts GraphQL schemas into JavaScript or TypeScript code, enabling smooth autocomplete and validation for your GraphQL queries.\n\n[![NPM version][npm-image]][npm-url]\n[![Run Eslint \u0026 Test cases](https://github.com/Siddharth9890/graphql-sdk-generator/actions/workflows/test.yaml/badge.svg)](https://github.com/Siddharth9890/graphql-sdk-generator/actions/workflows/test.yaml)\n[![Coverage Status][codecov-image]][codecov-url]\n\n\u003c!-- [![NPM downloads][downloads-image]][downloads-url] --\u003e\n\nRead this [quick start guide](https://docs.siddharth9890.com/graphql-sdk-generator) to generate your client and start writing queries\n\n## Features\n\n- ✅ Type completion \u0026 validation for enhanced developer experience\n- 🍃 Few runtime dependencies as compared to GraphQL Mesh\n- 🐎 Generate client only if schema changes\n- 🥃 Supports custom headers for requests\n- 🚂  Compatible with both browsers and Node.js, thanks to[graphql-request](https://www.npmjs.com/package/graphql-request)\n\n## Example\n\n1. Install the required package from npm globally recommended\n\n```bash\nnpm install -g graphql-sdk-generator\n```\n\n2. Then will create a config.json file with the following contents.\n\n```json\n{\n  \"url\": \"your-graphql-endpoint\",\n  \"sdkName\": \"custom-name\",\n  \"fileType\": \"ts\",\n  \"debug\": true\n}\n```\n\n3. Run the generator and install additional dependencies required for making requests:\n\n```bash\n// use a custom json file path\ngraphql-sdk-generator -c config.json\nnpm i @graphql-typed-document-node/core graphql-request\n```\n\n4. Use the generated client to write methods and send data:\n\n```typescript\nimport { GraphQLClient } from 'graphql-request';\nimport { getSdk } from '../graphqlSDKGenerator/graphqlSDKGenerator';\n\nconst initializeSDK = () =\u003e {\n  // we can set custom headers\n  const client = new GraphQLClient('https://your-graphql-url', {\n    headers: {},\n  });\n\n  return getSdk(client);\n};\n\nconst main = async () =\u003e {\n  const sdkInstance = initializeSDK();\n  const companies = await sdkInstance.companyQuery();\n\n  // we get autocomplete here both for the arguments \u0026\u0026 output.\n  const user = await sdkInstance.insert_usersMutation({\n    objects: { id: 1, name: 'test', rocket: 'spacex' },\n  });\n\n  console.log(companies, user);\n};\n\nmain();\n```\n\n## Docs\n\n- All the documententation can be [found here.](https://docs.siddharth9890.com/graphql-sdk-generator)\n\n## Example\n\n- Example repo with config file examples can be [found here](https://github.com/Siddharth9890/space-x-graphql-example)\n\n[Licensed under MIT]().\n\n[npm-image]: https://img.shields.io/npm/v/graphql-sdk-generator\n[npm-url]: https://www.npmjs.com/package/graphql-sdk-generator\n[downloads-image]: https://img.shields.io/npm/v/graphql-sdk-generator\n[downloads-url]: https://www.npmjs.com/package/graphql-sdk-generator\n[codecov-image]: https://codecov.io/gh/Siddharth9890/graphql-sdk-generator/graph/badge.svg?token=H6ROEG8C9L\n[codecov-url]: https://app.codecov.io/gh/Siddharth9890/graphql-sdk-generator\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddharth9890%2Fgraphql-sdk-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddharth9890%2Fgraphql-sdk-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddharth9890%2Fgraphql-sdk-generator/lists"}