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

@dsemakin/onyx

v1.0.0

Published

Validate Onyx diaries with zero install. Runs locally; nothing is uploaded.

Readme

@dsemakin/onyx

Check an Onyx diary with nothing installed:

npx @dsemakin/onyx validate diary.json

See what a diary actually contains, restored from the portable layer alone:

npx @dsemakin/onyx summary diary.json
Onyx 1.0.0 from Some Tracker
  2026-08-10    1 entries  389 kcal  80.5 kg
  2026-08-11    3 entries  1804 kcal

Why this is one artifact

The engine is Rust compiled to WebAssembly, so this package works on every platform and every Node version from one build — no per-platform native binaries, no install scripts, no build matrix to fall out of step. It also means the check runs entirely on your machine: a food diary is sensitive, and nothing here uploads it anywhere.

As a library

const { load } = require("@dsemakin/onyx");
const onyx = load();

const report = onyx.validate(text);   // { conforming, findings: [...] }
const days   = onyx.summary(text);    // the diary restored from the portable layer
const out    = onyx.serialize(text);  // { document } — the engine's own text, verbatim

Useful in another project's test suite: build a document however you build it, then check it against the reference engine rather than against a JSON Schema alone.

serialize is for the third role the specification names, the processor — anything that reads a document and writes one back. Where a consumer may ignore members it does not recognise, a processor must preserve them, and out.document is what lets you prove it: feed it a document, and every member you put in must still be there. It is a string rather than a parsed object on purpose, so what you compare is the engine's own output and not your JSON printer's rendering of it.

Exit codes

| Code | Meaning | |---|---| | 0 | The document conforms | | 1 | The document was read and does not conform | | 2 | The tool could not run |

Only error findings affect conformance. Warnings flag things the specification permits but which are usually mistakes; pass --strict to fail on them too.

--json emits a machine-readable report whose shape is versioned by reportVersion and changed additively. It is the same contract the standalone binary emits.

Scope

This package is the zero-install checker: validate and summary, no Node dependencies, nothing uploaded anywhere.

The standalone onyx binary — attached to every GitHub release, needing no Node at all — is not a superset of it. The two overlap on validate and diverge after that:

| | npm package | standalone binary | |---|---|---| | validate | yes | yes | | summary — the diary restored from the portable layer | yes | as inspect, which reports document shape rather than a restored diary | | migrate — rewrite a document as another spec version | no | yes |

They share one engine and one report shape, so --json output is the same contract from both. What differs is which commands exist.

Building locally

just wasm       # builds pkg/onyx.wasm with plain cargo, no wasm-pack
just npm-test   # runs the conformance corpus through the binding