{"id":15020058,"url":"https://github.com/sammwyy/astraql","last_synced_at":"2025-08-09T03:20:00.650Z","repository":{"id":64945551,"uuid":"579549042","full_name":"sammwyy/AstraQL","owner":"sammwyy","description":"Fast and easy to use GraphQL Client.","archived":false,"fork":false,"pushed_at":"2022-12-20T00:01:31.000Z","size":75,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T21:03:11.539Z","etag":null,"topics":["graphql","graphql-api","graphql-api-client","graphql-client","javascript","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/astraql","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/sammwyy.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":"2022-12-18T03:43:17.000Z","updated_at":"2024-08-02T02:02:33.000Z","dependencies_parsed_at":"2023-01-29T23:15:57.120Z","dependency_job_id":null,"html_url":"https://github.com/sammwyy/AstraQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sammwyy/AstraQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FAstraQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FAstraQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FAstraQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FAstraQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sammwyy","download_url":"https://codeload.github.com/sammwyy/AstraQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FAstraQL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269518561,"owners_count":24430632,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-api","graphql-api-client","graphql-client","javascript","nodejs","typescript"],"created_at":"2024-09-24T19:54:31.943Z","updated_at":"2025-08-09T03:20:00.558Z","avatar_url":"https://github.com/sammwyy.png","language":"TypeScript","funding_links":["https://ko-fi.com/sammwy","https://patreon.com/sammwy"],"categories":[],"sub_categories":[],"readme":"# AstraQL\n\nFast and easy to use GraphQL Client.\n\n## 💻 Getting started\n\n```shell\n# With npm:\nnpm install astraql\n\n# With yarn:\nyarn add astraql\n```\n\n## 📚 Usage\n\n### As a ES Module\n\n```javascript\nimport { CacheLoader, GraphQLClient, query } from 'astraql';\n\n// Initialize client.\nconst client = new GraphQLClient({\n  endpoint: 'https://graphql.anilist.co',\n  // Optional authentication:\n  headers: {\n    'Authorization': 'bearer xxxxxxxxxxxx'\n  },\n  // Optional cache (in seconds)\n  cache: new CacheLoader({ expiresIn: 60 }),\n});\n\n// Create a query.\nconst characterQuery = query`\n    Character($id: Int) {\n        Character(id: $id) {\n            id\n            name {\n                first\n                last\n            }\n            gender\n            age\n        }\n    }\n`;\n\n// Send request.\nclient.fetch(characterQuery, { id: 128986 })\n    .then(console.log);\n```\n\n### As CJS Module\n\n```javascript\n// If uses require function you will need to use .default\n// For import in typescript, this is not required\nconst { GraphQLClient, query } = require('astraql').default;\n```\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\nFeel free to check [issues page](https://github.com/sammwyy/astraql/issues).\n\n## ❤️ Show your support\n\nGive a ⭐️ if this project helped you!\n\nOr buy me a coffeelatte 🙌🏾\n\n[Ko-fi](https://ko-fi.com/sammwy) | [Patreon](https://patreon.com/sammwy)\n\n## 📝 License\n\nCopyright © 2022 [Sammwy](https://github.com/sammwyy).  \nThis project is [MIT](LICENSE) licensed.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammwyy%2Fastraql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsammwyy%2Fastraql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammwyy%2Fastraql/lists"}