{"id":13881034,"url":"https://github.com/jferrettiboke/stripe-graphql","last_synced_at":"2025-10-27T17:30:37.855Z","repository":{"id":32997295,"uuid":"149113829","full_name":"jferrettiboke/stripe-graphql","owner":"jferrettiboke","description":"[WIP] 🚧🚧🚧 😎 Community-driven Stripe GraphQL API with superpowers.","archived":false,"fork":false,"pushed_at":"2022-12-13T09:46:53.000Z","size":1084,"stargazers_count":55,"open_issues_count":11,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-09-28T21:23:40.479Z","etag":null,"topics":["graphql","graphql-api","nodejs","stripe","stripe-api","stripe-graphql"],"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/jferrettiboke.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":"2018-09-17T11:18:43.000Z","updated_at":"2023-10-16T10:52:13.000Z","dependencies_parsed_at":"2023-01-14T22:58:36.209Z","dependency_job_id":null,"html_url":"https://github.com/jferrettiboke/stripe-graphql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrettiboke%2Fstripe-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrettiboke%2Fstripe-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrettiboke%2Fstripe-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrettiboke%2Fstripe-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jferrettiboke","download_url":"https://codeload.github.com/jferrettiboke/stripe-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860931,"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":["graphql","graphql-api","nodejs","stripe","stripe-api","stripe-graphql"],"created_at":"2024-08-06T08:03:49.313Z","updated_at":"2025-10-27T17:30:37.476Z","avatar_url":"https://github.com/jferrettiboke.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"![Preview](./preview.jpg)\n\n# stripe-graphql\n\n[![npm](https://img.shields.io/npm/v/stripe-graphql.svg)]()\n[![license](https://img.shields.io/github/license/jferrettiboke/stripe-graphql.svg)]()\n\n\u003e ⚠️ Warning! This is a very early version. You SHOULD NOT use this in production yet.\n\n## What is `stripe-graphql`?\n\n`stripe-graphql` is a GraphQL API for Stripe with a lot of benefits. Its goal is to help you do things better and faster related to the Stripe world while providing you with the best developer experience (DX).\n\nIt ships with a type-safe GraphQL client, and exposes the GraphQL schema object so that you can create your own Stripe GraphQL API, transform the schema or do whatever you need.\n\n## Features\n\n- ✅ Simple and powerful\n- ✅ Formatted amounts ready to use\n- ✅ Type-safe GraphQL-based client\n- ✅ Expose the GraphQL schema object\n\n## TODO\n\n- [ ] DataLoader support for batching and caching\n- [ ] Nexus extension/plugin for more easy integration\n\n## Get started\n\n`npm install stripe-graphql` or `yarn add stripe-graphql`.\n\n## Client\n\n### Request\n\n```ts\nimport { client } from \"stripe-graphql\";\n\ntry {\n  const data = await client.query({\n    plans: {\n      nickname: true,\n      active: true,\n      amount: { raw: true, raw_formatted: true, formatted: true },\n      currency: { code: true, symbol: true },\n    },\n  });\n  console.log(JSON.stringify(data, null, 2));\n} catch (error) {\n  console.log(error);\n}\n```\n\n### Response\n\n```json\n{\n  \"plans\": [\n    {\n      \"nickname\": \"premium-monthly-plan-in-eur\",\n      \"active\": true,\n      \"amount\": {\n        \"raw\": 1499,\n        \"raw_formatted\": 14.99,\n        \"formatted\": \"€14.99\"\n      },\n      \"currency\": {\n        \"code\": \"EUR\",\n        \"symbol\": \"€\"\n      }\n    },\n    {\n      \"nickname\": \"standard-monthly-plan-in-eur\",\n      \"active\": true,\n      \"amount\": {\n        \"raw\": 999,\n        \"raw_formatted\": 9.99,\n        \"formatted\": \"€9.99\"\n      },\n      \"currency\": {\n        \"code\": \"EUR\",\n        \"symbol\": \"€\"\n      }\n    },\n    {\n      \"nickname\": \"basis-monthly-plan-in-eur\",\n      \"active\": true,\n      \"amount\": {\n        \"raw\": 499,\n        \"raw_formatted\": 4.99,\n        \"formatted\": \"€4.99\"\n      },\n      \"currency\": {\n        \"code\": \"EUR\",\n        \"symbol\": \"€\"\n      }\n    }\n  ]\n}\n```\n\n## Schema\n\n```ts\nimport { schema } from \"stripe-graphql\";\n\n// Do whatever you need with the schema\n```\n\n## Contributing\n\nDo you know how to improve it? Feel free to contribute to this project.\n\n1. Install dependencies: `npm install` or `yarn install`\n2. Run the development server: `npm run dev` or `yarn dev`\n\nThe server should start. You're ready to help. 🙏\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjferrettiboke%2Fstripe-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjferrettiboke%2Fstripe-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjferrettiboke%2Fstripe-graphql/lists"}