Skip to content

Billing Example

Demonstrates billing integration using @venturekit-pro/billing.

Source: examples/billing/

  • Plan definitionsdefinePlans() with feature limits
  • Feature checkinggetFeatureLimit(), hasFeature()
  • Usage mappingmapUsageToLineItems() for invoice generation
  • Plan-based access control — enforce limits in handlers
  • Auto-migrations — billing tables provisioned via vk migrate
const plans = definePlans([
{ id: 'free', name: 'Free', features: { projects: { limit: 3 }, support: false } },
{ id: 'pro', name: 'Pro', features: { projects: { limit: 50 }, support: true } },
]);
Terminal window
cd examples/billing
npm install
vk dev