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

@rayfold/conformance

v0.2.1

Published

Rayfold conformance fixtures and harness: the shared cases every Rayfold implementation must pass.

Readme

@rayfold/conformance

The shared test cases that every Rayfold implementation must pass. The TypeScript and Kotlin runtimes both run them. If you write a Rayfold server in another language, run these and you can show it behaves like the reference.

npm install --save-dev @rayfold/conformance

The package holds two kinds of artifact. A fixture is a request and the frames a server must answer it with. A vector is a pure function and the answer the specification says it has: a number's canonical form, a shape's id, a hash, the status an error code derives, the outcome of a denial.

The difference matters. Every vector's expectation is written from the specification, never captured from a runtime — a vector taken from an implementation proves only that the implementations agree, and two implementations can agree on the same wrong answer. Rayfold's own history makes the point: the specification listed 38 binary-format dictionary keys while both codecs held 40, and every test passed for months.

What the package contains:

  • fixtures/core/*.json: one file per topic (default views, shapes, pipelining, commands, errors, auth, defer, streams, limits, trusted shapes, ...). Each file holds a .rayfold schema, its parsed IR, seed data, and cases: a request, the viewer, and the exact frames expected back.
  • vectors/*/*.json: ten areas — numbers, canonicalization, shapes, binary, hashing, manifest, errors, idempotency, authorization, patch. Each file carries the normative rule restated in prose, the specification section it comes from, and its cases. vectors/README.md explains how to run them.
  • The harness the reference runtime uses (seedStore, fixtureResolvers, groupFrames): it turns a fixture's data and declarative resolver specs into resolvers for @rayfold/server, so you can see how each case is meant to be served.
import { readFileSync, readdirSync } from "node:fs";
import { createRequire } from "node:module";
import { dirname, join } from "node:path";

const dir = join(dirname(createRequire(import.meta.url).resolve("@rayfold/conformance/package.json")), "fixtures/core");
for (const file of readdirSync(dir)) {
  const fixture = JSON.parse(readFileSync(join(dir, file), "utf8"));
  console.log(file, fixture.cases.length, "cases");
}

Reading a vector area is the same shape of work:

const vectors = join(dirname(createRequire(import.meta.url).resolve("@rayfold/conformance/package.json")), "vectors");
const doc = JSON.parse(readFileSync(join(vectors, "numbers/ecmascript-number-form.json"), "utf8"));
for (const c of doc.cases) console.log(c.literal, "->", c.canonical);

The fixture format is documented in conformance/README.md and conformance/src/fixture.ts in the Rayfold repository; the vectors in conformance/vectors/README.md.

Apache-2.0.