npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@venturekit-pro/billing

v0.0.0-dev.20260507015944

Published

Invoicing, plans, usage tracking, and feature gating for VentureKit

Readme

@venturekit-pro/billing

Warning: This package is in active development and not production-ready. APIs may change without notice.

Billing and invoicing for VentureKit — plan definitions, feature limits, usage-to-invoice mapping, and auto-migration support.

Installation

npm install @venturekit-pro/billing@dev

Overview

@venturekit-pro/billing provides:

  • Plan definitionsdefinePlans() with feature limits and pricing tiers
  • Subscription management — create, upgrade, downgrade, cancel, pause, resume
  • Invoice generation — from plan + usage, with tax calculation
  • Usage tracking — record and meter feature usage
  • Feature gating — plan-based and usage-based access control
  • Auto-migrations — billing tables created automatically via vk migrate

Note: This package handles invoicing and plan management. Payment processing is NOT included — integrate any payment provider separately.

Defining Plans

import { definePlans } from '@venturekit-pro/billing';

const plans = definePlans([
  {
    id: 'free',
    name: 'Free',
    features: {
      projects: { limit: 3 },
      storage: { limit: 1_000_000_000 }, // 1 GB
      apiRequests: { limit: 10_000, period: 'month' },
      support: false,
    },
  },
  {
    id: 'pro',
    name: 'Pro',
    features: {
      projects: { limit: 50 },
      storage: { limit: 100_000_000_000 }, // 100 GB
      apiRequests: { limit: 1_000_000, period: 'month' },
      support: true,
    },
  },
]);

Feature Checking

import { getFeatureLimit, hasFeature } from '@venturekit-pro/billing';

const maxProjects = getFeatureLimit(plans, 'free', 'projects');
// → 3

const hasSupport = hasFeature(plans, 'free', 'support');
// → false

Usage-to-Invoice Mapping

import { mapUsageToLineItems } from '@venturekit-pro/billing';

const lineItems = mapUsageToLineItems(currentUsage, planFeatures);
// Returns structured line items for invoice generation

Auto-Migrations

When @venturekit-pro/billing is added to a project, vk migrate automatically discovers and applies billing-related database tables:

import { getBillingMigrationsDir } from '@venturekit-pro/billing';

const migrationsDir = getBillingMigrationsDir();
// Returns path to SQL migration files

API Reference

See the API reference for full documentation.

License

Apache-2.0 — see LICENSE for details.