Guides
Worked examples that walk from pricing decision to running code. Each guide ends with copy-paste SDK snippets you can drop into a Next.js or Node app.
- Reading usage and remaining quotaHow to read a user’s usage with vevee.usage(): every field explained, how per-source / per-variant splits show up alongside the overall bucket, and a copy-paste quota panel.
- Show users your plan featuresRender a pricing page that always matches what you configured in the dashboard. Use availablePlans() to drop hardcoded plan tables and surface per-variant limits straight from the source of truth.
- Managing subscriptions: downgrade vs cancelWhen to use upsertSubscription vs cancelSubscription. Pick the right pattern based on whether your app has a free plan, plus how each affects canUse, reserve, and the subscription history.
- Freemium pricing for an AI image generatorModel a lifetime free tier and a monthly paid plan with separate per-model quotas - using nothing but limit groups and the reserve/commit pattern.
- Behavioral analytics & funnelsCapture paywall, onboarding, and checkout events with a browser-safe public key - anonymous aggregate pre-login (no cookie banner needed in the EU) and identified post-login. Then build conversion funnels in the dashboard.
- Privacy & GDPRWhy the default hybrid mode needs no cookie banner in the EU, when you do need one, and how to wire optOut, deletePerson, and exportPerson into your app’s settings page to honour every data-subject right.