Meterkit

Drop-in usage credit ledger plus current Stripe Billing Meter Events integration for Next.js.

LLM Mart 1 views 42 listing impressions

MeterKit is a drop-in event-sourced credit ledger with a correct Stripe Billing Meter integration for Next.js AI/SaaS products. MeterKit costs a one-time $99 with no monthly fee, and the purchaser owns the code. MeterKit has zero runtime dependencies.

The ledger derives balance by replaying events rather than storing a mutable counter, making retries safe. MeterKit includes a low-balance email alert with a cooldown to prevent excessive notifications. The kit's webhook handler handles customer.subscription.updated in addition to .deleted to correctly revoke access on card declines.

MeterKit is source code that the user drops into their own Next.js app and owns outright, not a hosted service. The ledger is storage-agnostic, allowing implementation with any database via getEvents, appendEvent, and hasEvent.

Summary drafted from the project's own website. Every sentence is backed by text on that page and was reviewed before publishing.