{"id":14975955,"url":"https://github.com/ryanccn/gql","last_synced_at":"2025-10-27T17:30:21.624Z","repository":{"id":168917250,"uuid":"644735899","full_name":"ryanccn/gql","owner":"ryanccn","description":"A tiny GraphQL querying library","archived":false,"fork":false,"pushed_at":"2024-09-27T00:44:01.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-28T21:21:48.935Z","etag":null,"topics":["fetch-api","graphql","graphql-client","javascript","typescript"],"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/ryanccn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-24T06:39:24.000Z","updated_at":"2024-09-27T00:43:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c082c83-3218-4a7e-8096-7fd842209485","html_url":"https://github.com/ryanccn/gql","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.3214285714285714,"last_synced_commit":"c493ca6d2187bc245a441a2a09b566f4e32bfd78"},"previous_names":["ryanccn/gql"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fgql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fgql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fgql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fgql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanccn","download_url":"https://codeload.github.com/ryanccn/gql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860932,"owners_count":16556009,"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":["fetch-api","graphql","graphql-client","javascript","typescript"],"created_at":"2024-09-24T13:52:56.187Z","updated_at":"2025-10-27T17:30:21.310Z","avatar_url":"https://github.com/ryanccn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @ryanccn/gql\n\nA tiny GraphQL querying library.\n\n## Installation\n\n```console\n$ npm install @ryanccn/gql\n$ yarn add @ryanccn/gql\n$ pnpm add @ryanccn/gql\n```\n\n## Usage\n\n```typescript\nimport { createGql } from \"@ryanccn/gql\";\n\nconst gql = createGql(\"https://countries.trevorblades.com/\");\n\nconst { success, data } = await gql`\n\tquery {\n\t\tcontinents {\n\t\t\tname\n\t\t}\n\t}\n`();\n```\n\nIf your GraphQL client is named something else, you can also do\n\n```typescript\nimport { createGql } from \"@ryanccn/gql\";\n\nconst gqlClient = createGql(\"https://countries.trevorblades.com/\");\n\nconst { success, data } = await gqlClient.gql`\n\tquery {\n\t\tcontinents {\n\t\t\tname\n\t\t}\n\t}\n`();\n```\n\nto retain the DX benefits of the `gql` tag.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanccn%2Fgql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanccn%2Fgql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanccn%2Fgql/lists"}