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

sutra-bindings-slm

v1.1.0

Published

Native on-device SLM bindings (llama.cpp / GGUF). Implements SlmRuntime without an HTTP sidecar.

Readme

sutra-bindings-slm

Native on-device SLM bindings (llama.cpp / ONNX Runtime Mobile / MLX) implementing SlmRuntime without an HTTP sidecar.

Certification (start here)

| Doc | Role | |-----|------| | docs/sdk/binding-certification-guide.md | Stranger-facing certify + pass/fail interpretation | | docs/bindings/CERTIFIED-BINDING.md | Public checklist, badge criteria B1–B9, third-party submission | | B6 phase PRD | Phase intent, exit gates, Spec ID CK-03 | | B0 model obligations | CK-03.1 / CK-03.2 / CK-03.3 catalog (MODEL_OBLIGATION_IDS) | | Conformance stub guide | Obligation CLI against a stub (< 15 min) | | Conformance quickstart | Broader B0 harness implementor path |

bindings-slm certify is the only certification entry point. Every badge criterion maps to an automated harness field — never display the Certified Binding mark from a red report.


Quickstart: certify llama.cpp locally (< 15 minutes)

Budget assumes Node 22, pnpm 10.30.3, and a warm install. Cold pnpm install is network-bound; the certify run itself is seconds.

1. Prerequisites

node -v   # v22.x
pnpm -v   # 10.30.3

2. Install + build (once)

From the repo root:

pnpm install --frozen-lockfile
pnpm --filter sutra-bindings-slm build

3. One-command certify (desktop / llama.cpp)

pnpm --filter sutra-bindings-slm exec node ./bin/bindings-slm.mjs certify --profile desktop --adapter llamacpp

Or: pnpm --filter sutra-bindings-slm run certify

Green: exit code 0, stdout JSON includes "outcome":"pass", no CERT FAIL on stderr.

Red (expected on breach): non-zero exit + CERT FAIL DIFF (e.g. artifact hash mismatch). Replayed runs are idempotent; do not double-apply side effects.

4. Read the committed llama.cpp report

After a green run, the unified harness writes:

certification/reports/certification.report.json

Worked example (real fields — no utterance bodies):

{
  "schemaVersion": "bindings-slm.certification.report.v1",
  "outcome": "pass",
  "profileId": "desktop",
  "adapter": "llamacpp",
  "subjectId": "cert.desktop.llamacpp",
  "deviceId": "ci-desktop-cpu",
  "obligationVerdicts": [
    { "obligationId": "CK-03.1", "outcome": "pass" },
    { "obligationId": "CK-03.2", "outcome": "pass" },
    { "obligationId": "CK-03.3", "outcome": "pass" }
  ],
  "egressRecord": { "ok": true, "attemptCount": 0 },
  "p95Benches": {
    "first_token": { "nfrId": "NFR-01", "budgetP95Ms": 1500, "ok": true },
    "core_loop": { "nfrId": "NFR-06", "ok": true }
  },
  "failures": []
}

Interpret verdicts against the B0 catalog and the badge table. Reports always carry subjectId / deviceId; concurrent subjects must not cross-contaminate.

5. Optional: mobile + one-command prove

pnpm --filter sutra-bindings-slm exec node ./bin/bindings-slm.mjs certify --profile android-mid --adapter onnx
pnpm --filter sutra-bindings-slm run prove:one-command

Scripts

| Script | Purpose | |--------|---------| | pnpm certify | Desktop llama.cpp certify | | pnpm certify:android | ONNX mid-range Android (android-mid) | | pnpm certify:apple-silicon | MLX Apple silicon | | pnpm prove:one-command | Seeded red + green prove for desktop + android-mid |

Profiles: certification/registry.json · Schema: certification/schemas/certification.report.schema.json