Home / Companies / Nhost / Blog / Post Details
Content Deep Dive

Open Source Stripe GraphQL API

Blog post from Nhost

Post Details
Company
Date Published
Author
Johan Eliasson
Word Count
2,140
Language
English
Hacker News Points
-
Summary

Nhost has launched an open-source Stripe GraphQL API, enabling users to query data from both their database and Stripe account in a single GraphQL query. Built using the npm package @nhost/stripe-graphql-js, this unofficial API can be hosted with a Serverless Function and integrated into a Hasura Remote Schema, simplifying the process of combining data from Postgres and Stripe. The API addresses the challenge of fetching data from multiple sources by allowing developers to create a unified data query experience, known as Data Federation, and supports GraphQL object types like Customers, Payment Methods, and Subscriptions. By using the Pothos GraphQL Schema builder and GraphQL Yoga server, the API offers a robust framework for managing permissions and integrating Stripe functionalities into SaaS applications. This innovation provides an alternative to traditional methods like webhooks or direct REST API access, reducing data redundancy and enhancing developer efficiency. The project is open-source and welcomes contributions on GitHub to further expand its capabilities.