{"id":15292790,"url":"https://github.com/geraldoramos/graphios","last_synced_at":"2026-01-20T23:33:21.577Z","repository":{"id":35149893,"uuid":"213289557","full_name":"geraldoramos/graphios","owner":"geraldoramos","description":"🚀 Easy-to-use, Axios-based HTTP client for GraphQL API's","archived":false,"fork":false,"pushed_at":"2023-01-04T22:15:07.000Z","size":218,"stargazers_count":3,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T19:57:07.033Z","etag":null,"topics":["auto-pagination","axios","graphql","graphql-client","graphql-request","http-client","pagination","relay-pattern"],"latest_commit_sha":null,"homepage":"","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/geraldoramos.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-10-07T03:46:08.000Z","updated_at":"2020-03-17T15:47:52.000Z","dependencies_parsed_at":"2023-01-15T14:50:11.398Z","dependency_job_id":null,"html_url":"https://github.com/geraldoramos/graphios","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/geraldoramos/graphios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraldoramos%2Fgraphios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraldoramos%2Fgraphios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraldoramos%2Fgraphios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraldoramos%2Fgraphios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geraldoramos","download_url":"https://codeload.github.com/geraldoramos/graphios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraldoramos%2Fgraphios/sbom","scorecard":{"id":423576,"data":{"date":"2025-08-11","repo":{"name":"github.com/geraldoramos/graphios","commit":"b049aa403e7396714746c3b0f6f4fa6fdd85d33d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"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":"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":"Vulnerabilities","score":0,"reason":"38 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-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","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-ff7x-qrg7-qggm","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-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","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-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","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-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-p9pc-299p-vxgp"],"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-19T01:48:02.662Z","repository_id":35149893,"created_at":"2025-08-19T01:48:02.662Z","updated_at":"2025-08-19T01:48:02.662Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28618802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T22:24:05.405Z","status":"ssl_error","status_checked_at":"2026-01-20T22:20:31.342Z","response_time":117,"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":["auto-pagination","axios","graphql","graphql-client","graphql-request","http-client","pagination","relay-pattern"],"created_at":"2024-09-30T16:27:12.183Z","updated_at":"2026-01-20T23:33:21.560Z","avatar_url":"https://github.com/geraldoramos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graphios\n\nEasy-to-use Axios-based HTTP client for GraphQL API's. This library is more suitable for back-end interactions with GraphQL servers (not frontends/UI's). The Auto-pagination feature allows fetching of large amounts of data from paginated GraphQL API's without the need to write custom code.\n\n*Features:*\n\n- Simple API focused on GraphQL use case.\n- Auto-pagination (Relay pattern only, such as Github API)\n- Event listener for paginated requests\n- Configurable retries (and retryDelay)\n\n## Installing\n\nUsing npm:\n\n```bash\n$ npm install graphios\n```\n\nUsing yarn:\n\n```bash\n$ yarn add graphios\n```\n\n## Configuration object (input)\n\n```typescript\ninterface Config {\n  url: string // graphQL endpoint\n  query: string // graphQl query\n  headers?: object // Optional headers object\n  timeout?: number // Optional custom timeout in ms (default to no timeout)\n  retries?: number // Optional retries (default to 3)\n  retryDelay?: number // Optional retryDelay in ms (default to 500)\n  pagination?: boolean // Optional Auto-pagination (default to false)\n  requestId?: string // Optional request identifier, useful for monitoring page iterations\n  pageDelay?: number // Optional delay between pagination iterations in ms (default to 200)\n}\n```\n\n## Response object (output)\n\n```typescript\ninterface GraphiosResponse {\n  data: object // Response data\n  status?: number // not present on auto-paginated requests\n  statusText?: string // not present on auto-paginated requests\n  headers?: object // not present on auto-paginated requests\n  pagesProcessed?: number // Only available for auto-paginated requests\n}\n```\n\n## Examples\n\n### Performing a simple query:\n\n```js\nimport { graphios } from 'graphios';\n\nconst query = `{\n  users {\n    firstName\n    email\n  }\n}`\n\n// using promises\ngraphios({\n    query,\n    url: 'https://mygraphql.xyz/graphql'\n  })\n  .then( response =\u003e {\n    // handle success\n    console.log(response.data);\n  })\n  .catch( error =\u003e {\n    // handle error\n    console.log(error);\n  })\n\n// Using async/await\n(async () =\u003e {\n  try {\n    const response = await graphios({\n    query,\n    url: 'https://mygraphql.xyz/graphql',\n  })\n    console.log(response.data);\n  } catch (error) {\n    console.error(error);\n  }\n})()\n```\n\n### Performing a paginated query\n\nFor auto-pagination support, a `$cursor` variable should be included in the query. The API server must follow the relay pagination pattern using nodes and edges. The paginated query is not required to be on the first level, but only one pagination query is allowed per request.\n\n*Example using an usable query for the Github API*\n\n```js\n// import graphiosEvents for pagination events\nimport { graphios, graphiosEvents } from 'graphios';\n\n// A query variable $cursor is required.\nconst query = `\n  query Repository($cursor:String){\n    organization(login:\"microsoft\"){\n      membersWithRole(first:100, after:$cursor){\n        edges {\n          node {\n            name\n          }\n        }\n        pageInfo {\n          endCursor\n          hasNextPage\n        }\n      }\n    }\n  }\n`\n\nconst headers = {\n    'authorization': `Bearer 1234567SuperHardKey8910`\n  }\n\n// using promises\ngraphios({\n    query,\n    url: 'https://api.github.com/graphql',\n    headers,\n    retries: 3,\n    retryDelay: 500,\n    pagination: true,\n    requestId: 'myRepoReq123'\n    pageDelay: 100\n  })\n  .then( response =\u003e {\n    // handle success\n    console.log(response.data);\n  })\n  .catch( error =\u003e {\n    // If any page fails, it will end here\n    console.log(error);\n  })\n\n// Using async/await\n(async () =\u003e {\n  try {\n    const response = await graphios({\n    query,\n    url: 'https://api.github.com/graphql',\n    headers,\n    retries: 3,\n    retryDelay: 500\n    pagination: true,\n    requestId: 'myRepoReq123',\n    pageDelay: 100\n  })\n    console.log(response.data);\n\n  } catch (error) {\n    // If any page fails, it will end here\n    console.error(error);\n  }\n})()\n\n// Optional pagination event handler\ngraphiosEvents.on('pagination', pageData =\u003e {\n  console.log(\n  pageData.page // Page number,\n  pageData.response, // Response object, same as an individual request\n  pageData.requestId // Request identifier set on the config: 'myRepoReq123'\n})\n\n```\n\n### Axios custom configuration (optional input)\n\nAn optional second object can be passed if any specific configuration from Axios is needed. This will override any configuration made on the graphios config (first parameter).\n\n```typescript\ninterface AxiosRequestConfig {\n  url?: string\n  method?: Method\n  baseURL?: string\n  transformRequest?: AxiosTransformer | AxiosTransformer[]\n  transformResponse?: AxiosTransformer | AxiosTransformer[]\n  headers?: any\n  params?: any\n  paramsSerializer?: (params: any) =\u003e string\n  data?: any\n  timeout?: number\n  withCredentials?: boolean\n  adapter?: AxiosAdapter\n  auth?: AxiosBasicCredentials\n  responseType?: ResponseType\n  xsrfCookieName?: string\n  xsrfHeaderName?: string\n  onUploadProgress?: (progressEvent: any) =\u003e void\n  onDownloadProgress?: (progressEvent: any) =\u003e void\n  maxContentLength?: number\n  validateStatus?: (status: number) =\u003e boolean\n  maxRedirects?: number\n  socketPath?: string | null\n  httpAgent?: any\n  httpsAgent?: any\n  proxy?: AxiosProxyConfig | false\n  cancelToken?: CancelToken\n}\n```\n\n*Example:*\n\n```js\ngraphios(\n  {\n    query: `{ Users { name } }`,\n    url: 'https://mygraphql.xyz/graphql'\n  },\n  {\n    maxRedirects: 10\n  }\n)\n  .then( response =\u003e {\n    // handle success\n    console.log(response.data)\n  })\n  .catch( error =\u003e {\n    // If any page fails, it will end here\n    console.log(error)\n  })\n```\n\n## Credits\n\nRelies on the excellent work provided by [axios](https://github.com/axios/axios) and [axios-retry](https://github.com/softonic/axios-retry).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeraldoramos%2Fgraphios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeraldoramos%2Fgraphios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeraldoramos%2Fgraphios/lists"}