{"id":18569345,"url":"https://github.com/rayhanadev/replit-gql","last_synced_at":"2026-04-25T21:32:30.827Z","repository":{"id":55612778,"uuid":"523042844","full_name":"rayhanadev/replit-gql","owner":"rayhanadev","description":"Reusable function to query Replit's GraphQL API.","archived":false,"fork":false,"pushed_at":"2022-09-03T08:26:37.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T21:47:46.201Z","etag":null,"topics":["apollo","apollo-client","graphql","replit"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@rayhanadev/replit-gql","language":"JavaScript","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/rayhanadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-09T17:16:22.000Z","updated_at":"2024-07-01T05:07:32.000Z","dependencies_parsed_at":"2022-08-15T04:30:42.996Z","dependency_job_id":null,"html_url":"https://github.com/rayhanadev/replit-gql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rayhanadev/replit-gql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-gql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-gql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-gql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-gql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rayhanadev","download_url":"https://codeload.github.com/rayhanadev/replit-gql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-gql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32278249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"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":["apollo","apollo-client","graphql","replit"],"created_at":"2024-11-06T22:33:47.596Z","updated_at":"2026-04-25T21:32:30.812Z","avatar_url":"https://github.com/rayhanadev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Replit GraphQL\n\nReusable function to query Replit's GraphQL API. Written to consume [@apollo/client](https://github.com/apollographql/apollo-client)\nwith a patched node-fetch used by Replit.\n\nIt is recommended you add [babel-plugin-import-graphql](https://www.npmjs.com/package/babel-plugin-import-graphql)\nto your Babel configuration to import `.graphql` files. Otherwise you may use [graphql-tag](https://www.npmjs.com/package/graphql-tag)\nto the same effect.\n\nFor information on how to use the ApolloClient, visit its [core API docs](https://www.apollographql.com/docs/react/api/core/ApolloClient).\nNote, this package uses the core ApolloClient, not the React view layer.\n\n## Usage\n\n```js\nimport { GraphQL } from '@rayhanadev/replit-gql';\nimport CurrentUser from './queries/CurrentUser.graphql';\n\n// You can use a Replit Token\n// (connect.sid) for authenticated\n// queries.\nconst { REPLIT_TOKEN } = process.env;\nconst client = GraphQL(REPLIT_TOKEN);\n\nconst { data } = await client.query({\n  query: CurrentUser,\n});\n\nconsole.log(data);\n```\n\nOutput:\n\n```json\n{\n  \"currentUser\": {\n    \"id\": 4045907\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayhanadev%2Freplit-gql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayhanadev%2Freplit-gql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayhanadev%2Freplit-gql/lists"}