Stripe Sync Engine
Sync your Stripe data to PostgreSQL — backfill historical objects, then keep them up to date with live events via webhooks or WebSocket.
Features
- Full backfill — paginate through Stripe list APIs and upsert into Postgres
- Live sync — receive events via webhook server or WebSocket and apply changes in real time
- Resumable — cursor-based state tracking lets you stop and restart without re-syncing
- Schema projection — automatically creates and evolves Postgres tables from Stripe's OpenAPI spec
- Pluggable — source and destination are separate connectors; Postgres is the default destination
Quick start
npx @stripe/sync-engine sync \ --stripe-api-key sk_live_... \ --database-url postgresql://localhost:5432/mydb \ --schema stripe