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

innovate.ts

v0.5.0

Published

TypeScript bindings over the Innovate functional kernel

Readme

innovate.ts TypeScript bindings

This package provides a thin TypeScript-facing adapter over the Python innovate functional kernel.

Installation

From the repository root:

cd bindings/typescript
npm install

Invocation path

The package shells out to the shared kernel bridge at inst/python/kernel_bridge.py and keeps the runtime surface thin. The bridge is intentionally Python-backed so the TypeScript layer does not reimplement model logic.

Current scaffold

  • Package metadata in package.json
  • TypeScript compiler settings in tsconfig.json
  • Kernel contract helpers in src/kernel.ts
  • Public entrypoint re-exports in src/index.ts
  • Contract and scaffold tests under test/
  • A runnable end-to-end diagnostics workflow example in examples/diagnostics-workflow.ts

Example workflow

Run the stable-kernel diagnostics example from the package root:

npx tsx examples/diagnostics-workflow.ts

The example discovers a stable model, fits it on a small observed time series, then summarizes and diagnoses the fitted state through the TypeScript wrapper layer. The package stays thin and does not duplicate model semantics.

Package scripts

  • npm test runs the TypeScript test suite.
  • npm run coverage runs the suite with V8 coverage enabled.
  • npm run typecheck validates the package with tsc --noEmit.
  • npm run schema:check verifies the TypeScript kernel schema version matches the Python kernel.

Public surface

The package exports:

  • kernelSchemaVersion() and KERNEL_SCHEMA_VERSION
  • request helpers from src/kernel.ts
  • stable wrapper helpers for discovery, fit, predict, simulate, summarize, and diagnose
  • KernelBridgeError for typed bridge failures

The public API is intentionally narrow so the TypeScript layer stays a thin adapter over the shared kernel implementation.

Usage

import { kernelDiscoverModels, kernelFitModel, kernelRequest } from "innovate.ts";

const discovery = kernelDiscoverModels();
const bass = discovery.find((record) => record.key === "bass");

if (!bass) {
  throw new Error("Bass model is not available");
}

const fit = kernelFitModel(
  kernelRequest("fit_model", bass.key, {
    inputs: { time: [0, 1, 2, 3], observed: [0.02, 0.06, 0.12, 0.25] },
    model_kwargs: {},
  }),
);

The wrapper layer converts the kernel bridge responses into idiomatic TypeScript objects while preserving the underlying kernel contract.

Backend expectations

  • Node.js 22 or newer is expected for the TypeScript test harness.
  • The TypeScript package expects the repository checkout to contain the Python src/ tree.
  • The default Python launcher is uv; set INNOVATE_PYTHON_COMMAND only if you need an override.

The TypeScript package remains a thin adapter over the shared kernel and does not duplicate model logic.