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

@osyte/fund-pacing

v1.0.1

Published

Takahashi-Alexander pacing model for private fund cash flows. Stateless, isomorphic, zero runtime dependencies.

Readme

@osyte/fund-pacing

CI npm license: MIT

A JavaScript/TypeScript library for modeling private fund cash flows using the Takahashi–Alexander model. Stateless, deterministic, and dependency-free at its core.

Try the interactive example to explore assumptions, transaction history, and cash-flow charts in your browser. The notebook source and update instructions are maintained separately from the library.

Installation

npm install @osyte/fund-pacing

Supports Node 22+ and modern browser bundlers, with ESM, CommonJS, and TypeScript declarations. See the installation guide for package managers, imports, optional schemas, and troubleshooting.

Configuration

Configuration defines the assumptions behind the model: fund life, periodicity, growth, and how capital is called and distributed. Investment size, start date, and transaction history are separate inputs.

The library makes different assumptions about how different inputs are adjusted for periodicity. Understanding these assumptions is important when configuring the model and comparing results across frequencies.

Read the configuration guide for how to enter each parameter, its units, constraints, and interactions.

Public Functions

The library exposes four functions:

| Function | Purpose | |---|---| | buildSchedule(config) | Create curves and explore how different assumptions affect them, independently of investment size and dates. | | project(config, fund) | Forecast cash flows for a prospective or new investment. | | reproject(config, fund, actuals) | Use an investment's history to produce a revised forecast alongside the original forecast. | | validateConfig(config) | Reuse the model's validation rules in your application, rather than duplicating validation logic. |

See the user guide for when to use each function, complete examples, inputs, and outputs. Each function can be called directly.

Quick example

import { project, type ModelConfig } from '@osyte/fund-pacing'

const config = {
  fund_life: 4, // years
  periodsPerYear: 4, // quarterly: 16 periods
  growthRate: 0.15, // annual decimal rate
  yieldRate: 0,
  bowFactor: 2.5,
  callSchedule: {
    basis: 'commitment',
    rates: [0.25, 0.25, 0.25, 0.25, ...Array(12).fill(0)],
  },
  terminalLiquidation: true,
} satisfies ModelConfig

const rows = project(config, {
  commitment: 1_000_000_000, // $10 million in cents
  startDate: '2024-01-15',
})

console.log(rows[0]?.called) // 250000000 cents ($2.5 million)
console.log(rows[0]?.periodEnd) // '2024-03-31'

Understand the results

Projections return calls, distributions, net cash flow, NAV, unfunded commitment, and investment multiples for each period. Money is in integer minor units; dates are ISO strings. See understanding results.

For validation and errors, the accepted v1 conventions and known limitations, or model rationale, see the spec. Releases follow semantic versioning; the npm badge above tracks the latest published version.

Contributing and feedback

Found a bug or something you'd like to change? Excellent!

Worked out a fix? Even better!

Want to share a question, suggestion, or experience using the library? We'd love to hear it.

Start with the contributing guide. You do not need a fix to report a problem or suggest an improvement. Security reports follow the security policy.