Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

blog: Add stripe sync engine integration announcement (#41505)

Matt Linkous519e8e6a2654
diff --git a/apps/www/_blog/2025-12-19-stripe-sync-engine-integration.mdx b/apps/www/_blog/2025-12-19-stripe-sync-engine-integration.mdx
new file mode 100644
index 00000000000..4cc82b336a9
--- /dev/null
+++ b/apps/www/_blog/2025-12-19-stripe-sync-engine-integration.mdx
@@ -0,0 +1,148 @@
+---
+title: 'Sync Stripe data to your Supabase database in one click'
+description: 'Announcing official support for the Stripe Sync Engine in the Supabase Dashboard. Get a one-click integration that syncs your Stripe data directly into your Supabase database.'
+categories:
+ - product
+tags:
+ - stripe
+ - integrations
+date: '2025-12-19'
+toc_depth: 3
+author: matt_linkous,prashant
+image: 2025-12-19-stripe-sync-engine-integration/og.png
+thumb: 2025-12-19-stripe-sync-engine-integration/thumb.png
+---
+
+Today we are announcing a partnership with Stripe and official support for the [Stripe Sync Engine](/blog/stripe-engine-as-sync-library) in the Supabase Dashboard. Now, you get a one-click integration that syncs your Stripe data directly into your Supabase database. Query your customers, subscriptions, invoices, and payments using standard SQL.
+
+This integration is the result of a collaboration between Supabase and Stripe. Stripe engineers contributed significant improvements to the open-source sync engine, including incremental sync, flexible JSONB storage, and a new CLI.
+
+## Why sync Stripe data to your database?
+
+Any application that makes money has to incorporate payments into their application and has billing data worth exploring. Understanding your revenue means joining Stripe data with your application data: Which customers are on which plan? What features do paying users actually use? Which accounts are at risk of churning?
+
+Traditionally, developers face two options:
+
+1. **Make API calls on demand.** Hit the Stripe API whenever you need billing data. This works until you need to join data across tables, aggregate across thousands of records, or run complex analytics.
+2. **Build a sync pipeline.** Write code to fetch Stripe data, transform it, handle pagination, manage webhooks, deal with rate limits, and keep everything in sync. This typically takes days or weeks to build correctly.
+
+The Stripe Sync Engine gives you a third option: click a button and query your Stripe data in SQL within minutes.
+
+## How it works
+
+The sync engine keeps your Stripe data current through two mechanisms: webhooks for real-time updates and scheduled backfills for historical data. When you enable the integration, Supabase automatically configures both.
+
+Once your data is synced, you can query it like any other Postgres table. Here are three scenarios we expect to be especially common.
+
+### Find users who signed up but never converted
+
+Join your Stripe customers with your auth users to identify accounts that created a login but never started a paid subscription. This is the kind of query that's impractical with API calls but trivial with local data.
+
+```sql
+select
+ users.email,
+ users.created_at as signed_up,
+ now() - users.created_at as days_since_signup
+from
+ auth.users
+left join
+ stripe.customers on customers.email = users.email
+left join
+ stripe.subscriptions on subscriptions.customer = customers.id
+where
+ subscriptions.id is null
+ and users.created_at < now() - interval '7 days'
+order by
+ users.created_at;
+```
+
+### Calculate MRR by plan
+
+Aggregate your subscription data to see revenue broken down by product. With local data, this query runs in milliseconds regardless of how many subscriptions you have.
+
+```sql
+select
+ products.name as plan,
+ count(*) as subscribers,
+ sum(prices.unit_amount) / 100.0 as mrr
+from stripe.subscriptions as subscriptions
+join stripe.prices as prices
+ on prices.id = (subscriptions.plan::json->>'id')::text
+join stripe.products as products
+ on products.id = prices.product
+where subscriptions.status = 'active'
+group by products.name
+order by mrr desc;
+```
+
+### Identify at-risk accounts
+
+Combine billing data with application usage to find paying customers who have gone quiet. This query joins three data sources that would require separate API calls and manual correlation without the sync engine.
+
+```sql
+select
+ customers.email,
+ subscriptions.current_period_end as renewal_date,
+ max(user_events.created_at) as last_active
+from stripe.customers as customers
+join stripe.subscriptions as subscriptions
+ on subscriptions.customer = customers.id
+join public.user_events as user_events
+ on user_events.user_id = customers.metadata->>'user_id'
+where subscriptions.status = 'active'
+group by customers.email, subscriptions.current_period_end
+having max(user_events.created_at) < now() - interval '30 days'
+order by subscriptions.current_period_end;
+```
+
+## Stripe Sync Engine vs Foreign Data Wrapper
+
+Supabase already offers a [Stripe Foreign Data Wrapper](/blog/postgres-foreign-data-wrappers-with-wasm) that lets you query Stripe data using SQL. The FDW is a thin layer that translates your SQL queries into Stripe API calls. When you run `select * from stripe.customers`, the FDW makes an API request to Stripe, transforms the JSON response into rows, and returns the results.
+
+This works well for simple lookups. Need to check a customer's subscription status? The FDW handles it elegantly. But the abstraction breaks down when your queries get more complex or for queries that are critical to your application.
+
+Consider a query that joins customers with subscriptions and filters by plan type. The FDW must make separate API calls for each table, fetch all the data into Postgres, and then perform the join locally. A query that takes milliseconds on local data can take seconds or minutes through the FDW. And if you're running this query frequently, you'll hit Stripe's rate limits.
+
+The Sync Engine takes a fundamentally different approach. Instead of translating queries to API calls, it copies your Stripe data into actual Postgres tables. Your queries run against local, indexed data. Joins are fast. Aggregations are fast. There are no rate limits because you're not hitting an external API.
+
+Ultimately, the FDW is great for occasional lookups and simple queries. The Sync Engine is built for applications that need billing data as a first-class part of their database.
+
+## Reliable syncing with Supabase Queues
+
+There can be a lot of data to import from your Stripe account to your database, especially when you're setting up syncing with an existing account. To perform this backfilling process efficiently and reliably, the sync engine uses [Supabase Queues](/blog/supabase-queues) (powered by pgmq) to sync data incrementally and in batches.
+
+When you install the integration, the backfilling process will automatically start and spread the work across Edge Functions that can concurrently fetch data from the Stripe API and retry if there are any failures or rate limits.
+
+## Getting started
+
+Enable the Stripe Sync Engine from your Supabase dashboard:
+
+1. Navigate to **Integrations** in your project dashboard
+2. Find **Stripe Sync Engine** and click **Install**
+3. Enter your Stripe API key (we recommend a restricted key with read-only access)
+4. Syncing will start automatically after the installation completes
+
+![Stripe Sync Engine integration in the Supabase Dashboard](/images/blog/2025-12-19-stripe-sync-engine-integration/dashboard.png)
+
+The initial backfill will sync your historical data. Depending on your Stripe account size, this may take a few minutes to a few hours. Webhooks begin processing immediately, so new events are captured in real-time.
+
+## Open source collaboration
+
+The Stripe Sync Engine is open source. Stripe engineers contributed improvements including:
+
+- **JSONB storage with generated columns** for flexibility without sacrificing query performance
+- **Incremental sync** using Stripe's cursor-based pagination and Supabase Queues
+- **Multi-account support** for Stripe Connect platforms
+- **New CLI** with proper event ordering
+
+View the source and contribute: [github.com/stripe-experiments/sync-engine/](https://github.com/stripe-experiments/sync-engine/)
+
+## What's next
+
+We're working with Stripe on additional improvements:
+
+- Dashboard UI for detailed monitoring of the sync engine
+- Pre-built SQL views for common metrics (MRR, churn, LTV)
+- Support for additional Stripe objects and other customizations
+
+Start syncing your Stripe data today. Enable the integration from your [Supabase dashboard](https://supabase.com/dashboard).
diff --git a/apps/www/lib/authors.json b/apps/www/lib/authors.json
index 0f825a0e8bd..acc223b3e8b 100644
--- a/apps/www/lib/authors.json
+++ b/apps/www/lib/authors.json
@@ -808,5 +808,13 @@
"position": "AI Tooling Engineer",
"author_url": "https://github.com/Rodriguespn",
"author_image_url": "https://github.com/Rodriguespn.png"
+ },
+ {
+ "author_id": "matt_linkous",
+ "author": "Matt Linkous",
+ "username": "matlin",
+ "position": "Head of Integrations",
+ "author_url": "https://github.com/matlin",
+ "author_image_url": "https://github.com/matlin.png"
}
]
diff --git a/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/dashboard.png b/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/dashboard.png
new file mode 100644
index 00000000000..56eeeaa9af5
Binary files /dev/null and b/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/dashboard.png differ
diff --git a/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/og.png b/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/og.png
new file mode 100644
index 00000000000..abbb7b8b865
Binary files /dev/null and b/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/og.png differ
diff --git a/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/thumb.png b/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/thumb.png
new file mode 100644
index 00000000000..abbb7b8b865
Binary files /dev/null and b/apps/www/public/images/blog/2025-12-19-stripe-sync-engine-integration/thumb.png differ
diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml
index 2d7e4f1c9c1..6703a0c9d6c 100644
--- a/apps/www/public/rss.xml
+++ b/apps/www/public/rss.xml
@@ -4,9 +4,16 @@
<link>https://supabase.com</link>
<description>Latest news from Supabase</description>
<language>en</language>
- <lastBuildDate>Wed, 17 Dec 2025 00:00:00 -0700</lastBuildDate>
+ <lastBuildDate>Fri, 19 Dec 2025 00:00:00 -0700</lastBuildDate>
<atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
<item>
+ <guid>https://supabase.com/blog/stripe-sync-engine-integration</guid>
+ <title>One-click Stripe data in your Supabase database</title>
+ <link>https://supabase.com/blog/stripe-sync-engine-integration</link>
+ <description>Announcing official support for the Stripe Sync Engine in the Supabase Dashboard. Get a one-click integration that syncs your Stripe data directly into your Supabase database.</description>
+ <pubDate>Fri, 19 Dec 2025 00:00:00 -0700</pubDate>
+</item>
+<item>
<guid>https://supabase.com/blog/building-chatgpt-apps-with-supabase</guid>
<title>Building ChatGPT Apps with Supabase Edge Functions and mcp-use</title>
<link>https://supabase.com/blog/building-chatgpt-apps-with-supabase</link>