Repository navigation
feat: add RevenueCat as a revenue source - #21
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
drizzle/0008_revenuecat.sql): addsprovider(stripe|revenuecat) tostripe_accounts, plusrevenuecat_metrics(overview snapshot & product catalog) andrevenuecat_daily_metrics(daily MRR movements, revenue, new subscribers/customers).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./api/webhooks/revenuecat/[accountId]): verifiesX-RevenueCat-Webhook-Signature(HMAC-SHA256) orAuthorizationheader, deduplicates events idempotently, writes live activity rows, and triggers immediate phone push notifications without double-counting against RevenueCat overview snapshots./app/accounts/new, RevenueCat API v2 permissions guide, provider badges, and provider-aware account & webhook setup flows.src/server/revenuecat/sync.db.test.ts).