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.
Maintainers
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 5Or install it once and use the raziel command:
npm install -g raziel-calc
raziel listRequires 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 --exampleEvery calculator documents its own options:
raziel safe-conversion --helpInput 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 andk/m/bsuffixes:--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 jsonprints{ calculator, input, result }for scripts.- Exit codes:
0success,1unknown command,2invalid 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 exampleclaude 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.
