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

skaters

v0.13.0

Published

Fast univariate online distributional time-series forecasting: a zero-dependency JavaScript port of the Python skaters package, numerically identical to 1e-6.

Readme

skaters

npm version npm downloads license: MIT

Watch it race live in your browser

The actual JavaScript port racing arima, @bsull/augurs (ETS and MSTL), and Prophet (Stan compiled to WASM) on 150 real FRED series — every method scored on held-out log-likelihood, rolling one-step-ahead, no server. laplace keeps up with a moving average while the refit baselines grind. Start here →


Fast univariate online distributional time-series forecasting. Zero dependencies, runs in Node or the browser. This is the JavaScript port of the Python skaters package, numerically identical to it within 1e-6 (enforced on every release by a parity checker against the Python reference).

Every prediction is a full predictive distribution (a Dist), so it can be scored on log-likelihood — not just a point or an interval.

Install

npm install skaters

Quickstart

import { laplace } from "skaters";

const f = laplace(1);          // online, O(1) per step, the general-purpose default
let state = null;
for (const y of stream) {
  let dists;
  [dists, state] = f(y, state);
  const d = dists[0];
  d.mean;             // point forecast
  d.std;              // uncertainty
  d.quantile(0.975);  // 97.5th percentile
  d.logpdf(y);        // a real density — scorable on log-likelihood
  d.crps(y);          // ...and on CRPS
}

In the browser, import the hosted module directly — no build step:

<script type="module">
  import { laplace } from "https://skaters.microprediction.org/js/skaters/index.mjs";
</script>

What's exported

laplace and buildCandidates; the Dist object; transforms (difference, standardize, garch, ar, holtLinear, powerTransform, …); ensembles (precisionWeightedEnsemble, bayesianEnsemble, terminalLeafEnsemble); leaves (scaleMixtureLeaf, crpsLeaf, garchLeaf); multiscale, sticky, periodicity and covariance helpers; and spec (de)serialisers. See index.mjs for the full surface.

Notes

  • laplace is the general-purpose default; its signature is laplace(k = 1, objective = "crps", sticky = true, scales = null). On price/return series with volatility clustering there is no free lunch — a dedicated GARCH-t model is the right tool there.
  • The port is a faithful mirror of the Python package; the two agree to 1e-6.

Links

MIT © Peter Cotton