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

boardfluent-saas-calculators

v1.0.0

Published

Dependency-free TypeScript library of SaaS metric calculators from BoardFluent

Readme

CI

boardfluent-saas-calculators

Dependency-free TypeScript library of SaaS metric calculators.

This is the open, deterministic layer beneath BoardFluent, the SaaS board-meeting platform. The benchmark data, premium calculators, and AI-driven GTM Diagnostic stay private in the product. Every formula here is a pure function with no network calls, no state, and no dependencies outside the TypeScript standard library. You can read the source, verify the math, and trust the output.


Calculators

Core Financial and Profitability

  1. ruleOf40 -- growth rate + profit margin
  2. ruleOfX -- weighted growth rate + FCF margin
  3. grossMargin -- gross profit and margin from revenue and COGS
  4. ebitdaMargin -- EBITDA / revenue
  5. fcfMargin -- free cash flow / revenue
  6. revenueGrowth -- year-over-year or period-over-period growth rate
  7. revenuePerEmployee -- revenue / FTE headcount
  8. burnMultiple -- net burn / net new ARR
  9. runway -- months of cash runway at current burn
  10. quickRatio -- (new MRR + expansion MRR) / (churned MRR + contraction MRR)

SaaS Revenue and Retention

  1. arrFromMrr, mrrFromArr, arpa -- recurring revenue conversions and average revenue per account
  2. nrr -- net revenue retention
  3. grr -- gross revenue retention
  4. logoChurn, grossRevenueChurn, netRevenueChurn -- logo and revenue churn rates
  5. netNewArr -- net new ARR from all four ARR movements
  6. cac -- customer acquisition cost
  7. cacPayback -- CAC payback period in months
  8. ltv -- customer lifetime value
  9. ltvToCac -- LTV to CAC ratio
  10. magicNumber -- net new ARR / prior-period S&M spend

GTM and Sales Efficiency

  1. salesCapacity -- realistic bookings capacity from ramped AEs
  2. rampedQuotaCoverage -- ramped capacity / bookings plan

Pricing and GTM Diagnostic

  1. topSegmentShare, herfindahlIndex -- revenue concentration by segment
  2. coverage, topIntegrationAttachRate -- integration coverage and attach rate
  3. priceRealization -- realized ARPA / list ARPA
  4. discountWaterfall -- average discount from list to realized price

Installation

npm install boardfluent-saas-calculators

Usage

import { ruleOf40, cacPayback } from "boardfluent-saas-calculators";

// Rule of 40: growth rate + profit margin (both as decimals)
const score = ruleOf40({ growthRate: 0.42, profitMargin: 0.08 });
console.log(score); // 0.50 (50 -- above the 40-point threshold)

// CAC payback in months
const paybackMonths = cacPayback({
  cac: 12_000,       // cost to acquire one customer
  arpa: 1_000,       // monthly revenue per account
  grossMargin: 0.78, // 78% gross margin
});
console.log(paybackMonths); // ~15.4 months

Every formula carries a JSDoc comment with its definition, where teams commonly get it wrong, and a healthy range by company stage. You can trust the number without taking my word for it.


License

MIT


Who built this

Mike Dayton. Two decades leading revenue as a CRO, CSO, and GM at PE-backed, public, and founder-led B2B software companies, plus one company founded and sold. I build BoardFluent, the SaaS board-meeting platform these calculators come from.

If a number here raises a question you want an operator's read on, I work with SaaS founders and boards on GTM diagnostics and advisory. More at https://boardfluent.com.