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

mutate4js

v0.1.0

Published

Mutation testing for JavaScript/TypeScript with an embedded-in-source manifest. A faithful JS/TS port of unclebob/mutate4go.

Downloads

133

Readme

mutate4js

Mutation testing for JavaScript/TypeScript. Discovers mutation sites, applies each one, runs your tests, and reports killed, survived, and uncovered mutations — with an embedded-in-source manifest so differential reruns survive a clone with zero CI setup.

A faithful JS/TS port of unclebob/mutate4go. Where the JS ecosystem forces a divergence (coverage acquisition, parallel-worker node_modules handling) it is marked [JS] and justified in docs/mutate4js-spec.md.

The CRAP gate in CI uses @gabadi/crap4js, a JS/TS-native CRAP analyzer in the same lineage as Robert C. "Uncle Bob" Martin's crap4clj — the original Clojure implementation whose report format and metric semantics it follows most closely.

Status: early, dogfooded. Full CLI, mutation manifests, and CI gates are working.

Install

bun add -d mutate4js   # or: npm i -D mutate4js

Usage

mutate4js path/to/file.ts --test-command "bun test" --cov-cmd "bun test --coverage"

See mutate4js --help and the spec for the full flag set.

Develop

Built with Bun. Parser: @typescript-eslint/typescript-estree.

bun install
bun run src/cli.ts --help
bun test

Releasing a New Version

Releases are manual. The release workflow runs on version tags — it does not trigger on merges to main.

  1. Bump the version in package.json.
  2. Commit, tag, and push:
    git commit -am "chore: release vX.Y.Z"
    git tag vX.Y.Z
    git push origin main
    git push origin vX.Y.Z
  3. The release workflow triggers on the tag push, re-runs the full CI gate sequence, and creates a GitHub Release at https://github.com/gabadi/mutate4js/releases/tag/vX.Y.Z.
  4. Publish to npm:
    npm publish --access public