Skip to content

feat: add RevenueCat as a revenue source - #21

Merged
teo-goulois merged 2 commits into
mainfrom
feat/revenuecat
Nov 25, 2026
Merged

teo-goulois merged 2 commits into
mainfrom
feat/revenuecat

Conversation

@teo-goulois

Copy link
Copy Markdown
Contributor

Summary

Adds RevenueCat as a revenue source alongside Stripe so founders can display and combine web (Stripe) and mobile (App Store / Google Play via RevenueCat) MRR, ARR, charts, revenue, live feed, sounds, voices, and push notifications on the same screens.

Key changes

  • Schema & migration (drizzle/0008_revenuecat.sql): adds provider (stripe | revenuecat) to stripe_accounts, plus revenuecat_metrics (overview snapshot & product catalog) and revenuecat_daily_metrics (daily MRR movements, revenue, new subscribers/customers).
  • RevenueCat API v2 integration (src/server/revenuecat/): key validation (sk_…), project discovery, overview & charts v3/v2 sync (/metrics/overview, /charts/mrr_movement, /charts/revenue, /charts/actives_new, /charts/customers_new, /products), and automatic or manual webhook integration.
  • Real-time webhooks (/api/webhooks/revenuecat/[accountId]): verifies X-RevenueCat-Webhook-Signature (HMAC-SHA256) or Authorization header, deduplicates events idempotently, writes live activity rows, and triggers immediate phone push notifications without double-counting against RevenueCat overview snapshots.
  • Dashboard UI: provider switcher on /app/accounts/new, RevenueCat API v2 permissions guide, provider badges, and provider-aware account & webhook setup flows.
  • Tests: unit tests for keys, charts, errors, and webhook verification, plus an end-to-end DB integration test (src/server/revenuecat/sync.db.test.ts).

@teo-goulois
teo-goulois merged commit cdd5796 into main Nov 25, 2026
2 checks passed
@teo-goulois
teo-goulois deleted the feat/revenuecat branch November 25, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant