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

raziel-calc

v1.0.0

Published

Private-market investment calculators in your terminal: IRR, XIRR, MOIC, SAFE conversion, dilution, cap tables, TVPI/DPI, carry, QSBS and more. By Raziel.

Readme

raziel-calc

Private-market investment calculators in your terminal, by Raziel. IRR, XIRR, MOIC, SAFE conversion, convertible notes, dilution, option pools, pro rata, liquidation preferences, TVPI and DPI, carried interest, QSBS, runway, cap rate and more.

Runs fully offline. No account, no API key, no data leaves your machine.

npx raziel-calc moic --invested 1000000 --returned 2500000 --years 5

Or install it once and use the raziel command:

npm install -g raziel-calc
raziel list

Requires Node.js 18 or later.

Examples

# MOIC and annualized return
raziel moic --invested 1m --returned 2.5m --years 5

# IRR from yearly cash flows
raziel irr --initial 100000 --cash-flows 10000,25000,30000,40000,50000

# How a post-money SAFE converts in a priced round
raziel safe-conversion --investment 500000 --valuation-cap 8000000 --discount 20 \
  --existing-shares 10000000 --priced-round-pre-money 20000000 --priced-round-raise 5000000

# Fund multiples for an LP position
raziel tvpi-dpi --paid-in 10000000 --distributions 3000000 --nav 9000000

# Any calculator on a worked example
raziel dilution --example

Every calculator documents its own options:

raziel safe-conversion --help

Input and output

  • Options come from each calculator's input schema. Use the full name (--valuation-cap-usd), the short form without the unit (--valuation-cap), or any unambiguous words (--cap).
  • Numbers accept $, commas and k / m / b suffixes: --invested 1.5m.
  • Lists are comma-separated: --cash-flows 10000,25000,30000.
  • Pass everything as JSON with --json '{"invested_usd": 100, "value_returned_usd": 300}' or pipe JSON on stdin. Flags override JSON.
  • --output json prints { calculator, input, result } for scripts.
  • Exit codes: 0 success, 1 unknown command, 2 invalid input.

Money is in US dollars (*_usd), percentages are percent numbers (20 = 20%, *_pct), multiples are plain numbers (2.5 = 2.5x) and dates are YYYY-MM-DD.

Also available as an API and MCP server

The same calculators are free to use from code and from AI assistants:

  • REST API: https://raziel.co/api/v1/calculators (OpenAPI)
  • MCP server: https://raziel.co/mcp (for example claude mcp add --transport http raziel https://raziel.co/mcp)
  • Docs: raziel.co/developers

Track your real portfolio, cap table and investor pipeline in Raziel.

License

MIT. The package contains only the CLI and Raziel's calculator math. For education only. Not tax, legal or investment advice.