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

elenchus-wasm

v0.15.1

Published

WebAssembly build of the elenchus logical-consistency engine — program text in, JSON verdict out — published to npm via wasm-pack.

Readme

elenchus (wasm / npm)

⚠️ Experimental. elenchus is mostly an AI-built experiment — written with the help of a small local model (Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf) and various Claude models, in roughly equal measure. Expect non-professional design choices, rough edges, broken behavior, or mistakes. Use it at your own risk.

The WebAssembly build of elenchus, part of that project — a small three-valued SAT checker for logical consistency. You feed it a .vrf program as a string and get the verdict back as JSON (or a human report): program text in, JSON out. The engine (parse → compile → solve) is reused verbatim from the Rust core; nothing is reimplemented here.

It runs anywhere Node runs — no native binary, no PATH, no install step beyond npm install. TypeScript types are included (.d.ts generated from the engine signatures plus the Node helpers).

API

import {
  check,
  checkFile,
  checkFileWithImports,
  version,
  about,
  skill,
  skillVersion,
} from "elenchus-wasm";

// Inline program (no IMPORT resolution):
check("DOMAIN d\nFACT x a\nNOT x a\nCHECK x");
// -> '{"status":"CONFLICT","exit_code":2, ...}'

// Options mirror the MCP surface:
check(program, "human");                 // human-readable report
check(program, "json", maxClasses, maxPerClass); // cap grouped syntax errors

// Files (Node): read by the JS layer; multi-file IMPORT resolves via Node fs.
checkFile("program.vrf");
checkFileWithImports("entry.vrf");

version();      // "elenchus x.y.z"  (the ENGINE version, not the npm version)
skill();        // the full companion SKILL.md text
skillVersion(); // "x.y.z" — the engine version the bundled skill targets
about();         // short pointer to the skill

version() reports the engine version and skillVersion() the skill's target-version marker; both are independent of this npm package's own version line.

What this package is — and isn't

This is a library with a small API. It is not the CLI or the MCP server.

  • Want the full Rust library API (all of elenchus-parser / elenchus-compiler / elenchus-solver)? Use the crates in the elenchus repository.
  • Want a native binary — the elenchus CLI or the elenchus-mcp server — for Linux, macOS, or Windows (as a shell tool or over MCP)? Grab a prebuilt release (cargo-dist: shell / PowerShell / .msi / Homebrew) from the same repository's releases.

The skill

skill() returns the companion agent skill (the DSL how-to, the verdict loop "iterate until CONSISTENT", and worked examples), version-locked to the engine in this package. A consumer can persist it next to the engine (e.g. into an agent's skills directory) without a second download. The same text ships as SKILL.md in this package.

License

MIT — see LICENSE.