{"id":20216788,"url":"https://github.com/hygraph/reference-remote-fields-stripe","last_synced_at":"2026-03-14T15:36:38.720Z","repository":{"id":49989844,"uuid":"331614223","full_name":"hygraph/reference-remote-fields-stripe","owner":"hygraph","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-11T05:20:43.000Z","size":57,"stargazers_count":4,"open_issues_count":16,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-03-13T02:53:19.926Z","etag":null,"topics":["graphcms","nextjs","reference-implementation"],"latest_commit_sha":null,"homepage":"https://reference-remote-fields-stripe.vercel.app","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/hygraph.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}},"created_at":"2021-01-21T12:00:45.000Z","updated_at":"2023-01-28T16:33:34.000Z","dependencies_parsed_at":"2023-01-22T19:46:08.874Z","dependency_job_id":"edb4dfe0-2787-4b0a-912c-95f507cd226c","html_url":"https://github.com/hygraph/reference-remote-fields-stripe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hygraph/reference-remote-fields-stripe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hygraph%2Freference-remote-fields-stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hygraph%2Freference-remote-fields-stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hygraph%2Freference-remote-fields-stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hygraph%2Freference-remote-fields-stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hygraph","download_url":"https://codeload.github.com/hygraph/reference-remote-fields-stripe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hygraph%2Freference-remote-fields-stripe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30508041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T14:51:43.155Z","status":"ssl_error","status_checked_at":"2026-03-14T14:47:41.964Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["graphcms","nextjs","reference-implementation"],"created_at":"2024-11-14T06:29:44.870Z","updated_at":"2026-03-14T15:36:38.683Z","avatar_url":"https://github.com/hygraph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reference-remote-fields-stripe\n\n\u003e Query product and price data from [Stripe](https://stripe.com/docs/api) using GraphCMS [Remote Fields](https://graphcms.com/docs/schema/field-types#remote) 💳\n\n## About\n\nThis reference is basic example of Content Federation, using Remote Fields to connect a `PricingPlan` type with third-party product and pricing data from Stripe. A common use case would be to enrich recurring or one-time Stripe products with data from GraphCMS (such as images or additional text content).\n\nBuilt with [Next.js](https://nextjs.org/) and [Tailwind CSS](https://tailwindcss.com).\n\n## Usage\n\n\u003e This assumes you have already created a GraphCMS project and have an existing Stripe account\n\n1. Clone with repository with [`degit`](https://github.com/Rich-Harris/degit) and install project dependencies.\n\n```bash\nnpx degit GraphCMS/reference-remote-fields-stripe#main reference-remote-fields-stripe\ncd reference-remote-fields-stripe\nyarn\n```\n\n2. Add a `.env` file by cloning the provided `.env.sample` and providing the required variable values.\n\n```\nGRAPHCMS_MIGRATION_TOKEN=\nGRAPHCMS_TOKEN=\nGRAPHCMS_URL=\nNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=\nSTRIPE_SECRET_KEY=\n```\n\n2. Build the required GraphCMS schema, including Remote Fields, using the Management SDK. This repository [includes](migration.js) the migration script that was used to bootstrap this project. You can run the provided migration with `yarn migrate`.\n\n3. Populate your GraphCMS project with `PricingPlan` content entries. Be sure you to provide the relevant IDs (`stripeMonthlyPriceId`, `stripeAnnualPriceId`) for the Stripe prices created in your Stripe dashboard.\n\n4. Start the project!\n\n```\nyarn dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhygraph%2Freference-remote-fields-stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhygraph%2Freference-remote-fields-stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhygraph%2Freference-remote-fields-stripe/lists"}