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

@stealth-alpha/commitlens

v0.1.0

Published

Conventional-commit linter with release-notes preview and breaking-change detection — catch problems before you push.

Readme

CommitLens

A conventional-commit linter that shows you the release notes and breaking changes before you push — not after you've shipped them.

Zero dependencies. Node 18+. MIT licensed.

The problem

Conventional commits only work if they're actually conventional. By the time a bad message lands on main, it's already polluted your changelog, your release-notes generator silently dropped it into "Miscellaneous", and a breaking change slipped out under a patch bump.

Every existing linter tells you that a commit is wrong — after you wrote it. None of them tell you what your release notes will look like or whether this push breaks your users.

CommitLens answers three questions in one command:

  1. Do my unpushed commits pass the Conventional Commits spec (and my team's rules)?
  2. What will the release notes for this push look like?
  3. Am I about to introduce breaking changes?

Install

npm i -g @stealth-alpha/commitlens
# or run without installing:
npx @stealth-alpha/commitlens check

30-second quickstart

$ cd your-project

# Lint everything you haven't pushed yet
$ commitlens check
commitlens · origin/main..HEAD · feature/api
✓ feat(api): add pagination
✗ fix(api): handle empty body.
   warn subject-full-stop: subject must not end with a period
✗ totally rewrote the auth layer
   error type-empty: commit does not follow Conventional Commits ("type: description")
   warn breaking-migration-note: breaking change without a "BREAKING CHANGE: <migration note>" footer

2 commits · 1 clean · 2 warnings · 2 errors

Preview the release notes this push will produce:

$ commitlens notes --range origin/main..HEAD
## Unreleased

### ⚠ BREAKING CHANGES
- **api**: rewrite auth flow — tokens are now opaque, migrate via `auth migrate`

### Features
- **api**: add pagination (#42)

### Bug Fixes
- handle empty body

Check breaking changes alone:

$ commitlens breaking
• 1 breaking change(s) in origin/main..HEAD:
  ! rewrite auth flow — tokens are now opaque, migrate via `auth migrate` (f3a09c1)
⚠ This push will introduce breaking changes — bump MAJOR before releasing.

How it picks its range

With no --range flag, CommitLens reviews exactly what you're about to push:

  1. <upstream>..HEAD when your branch has an upstream
  2. <latest-version-tag>..HEAD when the repo has a semver tag
  3. the entire history otherwise

Use it as a git hook

commit-msg (lint the message as it's written):

# .git/hooks/commit-msg
#!/bin/sh
npx @stealth-alpha/commitlens check "$1"

pre-push (lint the whole outgoing range):

# .git/hooks/pre-push
#!/bin/sh
npx @stealth-alpha/commitlens check --strict

Configuration

Run commitlens init to write a commitlens.config.json:

{
  "types": ["feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore", "revert"],
  "maxSubjectLength": 100,
  "maxBodyLineLength": 100,
  "rules": {
    "type-empty": "error",
    "type-enum": "error",
    "type-case": "error",
    "scope-case": "warn",
    "subject-empty": "error",
    "subject-full-stop": "warn",
    "subject-max-length": "error",
    "body-max-line-length": "warn",
    "breaking-migration-note": "error"
  }
}

Any rule can be "error", "warn", or "off"; --strict promotes warnings to failures.

Commands

| Command | Purpose | | --- | --- | | commitlens check [file] | Lint the outgoing range, or one commit-message file (hooks) | | commitlens check --staged | Lint the last composed message | | commitlens notes [--write] | Release-notes preview (md or --format json) | | commitlens breaking | Breaking-change report for the range | | commitlens init | Write commitlens.config.json |

Why zero dependencies?

CommitLens is built entirely on Node built-ins: no transitive-dependency audit fatigue, no supply-chain surface, installs in milliseconds, works offline. It's the same philosophy as the rest of our tooling.

CommitLens Pro

Running CommitLens across an organization? CommitLens Pro ($9/month) adds team-level shared rule packs, a hosted dashboard of convention drift per repo, pre-push policy enforcement through a GitHub App (block merges that would ship undeclared breaking changes), and Slack/email digests of breaking changes heading to your next release. One tier, no seat games. License via Gumroad — link placeholder.

License

MIT — see LICENSE.