Billing Example
Demonstrates billing integration using @venturekit-pro/billing.
Source: examples/billing/
Key Concepts Demonstrated
Section titled “Key Concepts Demonstrated”- Plan definitions —
definePlans()with feature limits - Feature checking —
getFeatureLimit(),hasFeature() - Usage mapping —
mapUsageToLineItems()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 } },]);Run It
Section titled “Run It”cd examples/billingnpm installvk dev