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

slophammer-ts

v0.1.2

Published

TypeScript implementation of the Slophammer repository quality checker.

Readme

Slophammer TypeScript

Standalone TypeScript implementation of the Slophammer repository quality checker. The user-facing product name is slophammer-ts.

The TypeScript implementation is native-first. It can also carry selected checks for other ecosystems when those checks are covered by the shared specs and fixtures.

Commands

npm install -g slophammer-ts
slophammer-ts check .
slophammer-ts check . --format json
slophammer-ts check . --format sarif
slophammer-ts check . --execute
slophammer-ts check . --only ts.dependency-boundaries-required
slophammer-ts boundaries .
slophammer-ts rules
slophammer-ts rules --format json
slophammer-ts dry .

Source-tree development uses the local package scripts:

npm install
npm run check
slophammer-ts check ..
slophammer-ts rules
slophammer-ts rules --format json
slophammer-ts dry ..
npm run mutate

The npm package is released as slophammer-ts. The packed artifact contains runtime dist/src/** files and package metadata, and exposes the public slophammer-ts bin.

The slophammer npm package name is reserved for a future umbrella package or default installer. The TypeScript implementation should not claim the slophammer bin in its published package.

Source-tree development can also run the built CLI directly:

node dist/src/cli/main.js check ..
node dist/src/cli/main.js boundaries ..
node dist/src/cli/main.js dry ..

Recognized Tool Evidence

slophammer-ts check . validates the quality concern, not one preferred tool stack. Production repositories should not need wrapper scripts or JSON filtering glue to make a real setup look like Slophammer's defaults.

The checker recognizes:

  • tsc --noEmit and tsgo --noEmit for type checking.
  • ESLint, Oxlint, and Biome for lint evidence.
  • ESLint and Oxlint rules for explicit any, unsafe type operations, and complexity.
  • Prettier, Oxfmt, Dprint, and Biome formatter checks.
  • Node's built-in test runner, Vitest, Jest, Mocha, Ava, Uvu, Tap, Playwright, and tsx --test.
  • c8, nyc, Vitest, and Jest coverage gates when the configured threshold is enforced.
  • GitHub Actions workflow matrix commands when the workflow actually executes ${{ matrix.command }}.

The implementation is intentionally strict. Source uses unknown at dynamic boundaries, rejects any, keeps filesystem/process work outside the rule engine, and declares StrykerJS as the mutation testing gate.