Skip to content

convex-revenuecat

TypeScript

Convex component for RevenueCat subscriptions.

Webhook-driven RevenueCat subscription state for Convex. Stores entitlements in your database for reactive, real-time access control. Idempotent handling of all 18 webhook events with built-in rate limiting.

convex revenuecat subscriptions component

[features]

Webhook Processing

Idempotent handling of all 18 RevenueCat events

Reactive Queries

Real-time entitlement and subscription state

Edge Cases

Cancellation keeps access until expiry, pause doesn't revoke

Rate Limiting

Built-in protection against webhook abuse

[install]

npm install convex-revenuecat

[usage]

// convex/convex.config.ts
import revenuecat from "convex-revenuecat/convex.config";
const app = defineApp();
app.use(revenuecat);

// convex/http.ts
const revenuecat = new RevenueCat(components.revenuecat, {
  REVENUECAT_WEBHOOK_AUTH: process.env.REVENUECAT_WEBHOOK_AUTH,
});
http.route({
  path: "/webhooks/revenuecat",
  method: "POST",
  handler: revenuecat.httpHandler(),
});

[requirements]

[license]

This project is licensed under the Apache-2.0 license.

[links]