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

@typedecision/runtime

v0.1.2

Published

Native (napi-rs) TDM decision runtime: judge/health in-process for bun and node >= 22.6.

Readme

@typedecision/runtime

Native (napi-rs) binding for the TDM decision runtime: judge / health run in-process through a prebuilt Rust binary — registry, capability check, exact-hash cache, retry/circuit breaker, and audit are all inside the .node binding, with no HTTP hop.

This package is the native umbrella published to npm as @typedecision/runtime. Per-platform binaries are shipped as optional-dependency packages (@typedecision/runtime-<triple>) and resolved automatically at import time; a local binding built from a tdm checkout is used as a fallback during development.

Install

You normally don't install this directly — it is a dependency of @typedecision/opencode-tdm (the OpenCode plugin). Direct use:

npm install @typedecision/runtime
import { judge, health } from "@typedecision/runtime";

const result = await judge(
  {
    state: { repo: "my-repo", filesChanged: 3 },
    questions: [
      { id: "q1", instructions: "pick one", primitive: { type: "choice", options: ["a", "b"] } },
    ],
  },
  { provider: "mock" },
);

The request/response shapes are defined by @typedecision/contract (DecisionRequest, DecisionResult, HealthReport).

Requirements

The TypeScript entry (index.ts) is shipped as raw TypeScript and executed directly by the host — no build step, no generated JS loader. That requires a runtime with type stripping:

  • bun (any recent version), or
  • node >= 22.6 (with type stripping enabled, default in node 23+ / --experimental-strip-types on 22.6).

Older Node versions are not supported.

Platform matrix

| Package | OS | CPU | libc | | --- | --- | --- | --- | | @typedecision/runtime-win32-x64-msvc | Windows | x64 | MSVC | | @typedecision/runtime-linux-x64-gnu | Linux | x64 | glibc | | @typedecision/runtime-linux-arm64-gnu | Linux | arm64 | glibc | | @typedecision/runtime-darwin-x64 | macOS | x64 | — | | @typedecision/runtime-darwin-arm64 | macOS | arm64 | — |

musl (Alpine) and Windows arm64 are not part of the release matrix. The matching platform package is installed automatically as an optionalDependencies entry; the loader picks it at runtime.

Local build

From a tdm checkout:

pnpm install
pnpm --filter @typedecision/runtime build:debug   # napi build --platform --no-js
pnpm --filter @typedecision/runtime smoke         # node smoke test (mock provider)
pnpm --filter @typedecision/runtime smoke:bun     # bun smoke test

build:debug produces tdm-runtime.<host-triple>.node beside index.ts, which the loader picks up when no platform package is installed. napi build --no-js is load-bearing: it keeps the CLI from overwriting the hand-written index.ts with a generated JS loader.

Releases are cut by tagging v*, which triggers .github/workflows/release.yml: a 5-target matrix build, then trusted-publishing (OIDC) pnpm publish of each platform package followed by the umbrella.

License

Apache-2.0 — see LICENSE.