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

@easyeyes-stage/threshold-engine

v2026.7.8

Published

EasyEyes threshold compiler engine

Readme

@easyeyes/threshold-engine

Dated, immutable releases of the EasyEyes threshold compiler, exposed through the frozen engine.compile() contract (ADR 0001, byte-exact copy in contract/engine-compile.ts).

Release #1 is a behavior-neutral snapshot of current production: given the same experiment table and resources, its compiled output is byte-identical to what the production compiler (threshold preprocess/*, driven by the threshold-scientist shell) commits to an experiment repo.

Staging publishes use the @easyeyes-stage scope; the production release is published once under @easyeyes after verification.

Usage

const engine = await import(
  "https://cdn.jsdelivr.net/npm/@easyeyes-stage/[email protected]"
);
engine.contractVersion; // 1 — shell must refuse versions above what it knows
const { files, manifest } = await engine.compile(table, resources, options);
  • table{ path, content }, the experiment .csv/.xlsx as opaque bytes.
  • resources.files — resource files, kind = path prefix ("fonts/…", "phrases/…", …). resources.fetch/list cover mid-compile lookups.
  • options.mode"web" (default) or "node".
  • options.data.glossary / options.data.phrasesrequired: the release-pinned parameter glossary and i18n phrases (today the shell fetches these from the Netlify functions and passes them through).
  • options.data.compilerUpdateDate — optional; the shell-fetched Netlify deploy date baked into CompatibilityRequirements.txt (the engine cannot know it; production fetches it at publish time).

files is the compiled-data file set (root table, conditions/*, CompatibilityRequirements.txt, Duration.txt, js/experimentLanguage.js, typekit.json when Adobe fonts are used). manifest carries requests (resources to copy into the repo), diagnostics (author errors/warnings; any kind: "error" blocks publishing), and experiment (engine-computed configuration the shell reads).

Deliberately not emitted by compile() (shell-side, post-compile): recruitmentServiceConfig.csv and ProlificStudyId.txt are written at study creation with shell-held credentials; the runtime bundle files are copied by the shell. Prolific participant-group validation also stays shell-side (ADR 0001) — the shell appends those diagnostics itself.

Building and verifying

npm install
npm run verify   # build + contract copy check + node parity + browser test
npm run check:types  # public surface typechecks against the frozen contract
  • npm run parity — drives the production compiler (bundled unmodified as a "parity oracle") and this package side by side over every table in ../examples/tables/, comparing the compiled file set byte-for-byte plus diagnostics and experiment config. Requires ../tests/__cache__/ glossary.json and phrases.json (fetched from the live Netlify functions on first use).
  • npm run parity:browser — serves a scratch page, dynamically imports the built bundle in headless Chrome, asserts the import itself makes no network requests, and runs a web-mode compile.

Publishing

npm run verify
npm pack             # inspect the tarball
npm publish --access public

Versions are calendar dates as semver (2026.7.7). Published versions are immutable: never unpublish; a bad release is superseded by the next date and npm deprecated.