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

@bejo23/commit-police

v1.0.3

Published

Zero-config commit message validator

Downloads

331

Readme

🚓 commit-police 🚓

Lightweight CLI tool to validate commit messages using customizable rules. No heavy frameworks. No overengineering. Just clean commit enforcement.

✨ Why commit-police?

Maintaining consistent commit messages across teams can be painful.

commit-police helps you enforce clean, structured commit conventions without:

❌ Heavy dependencies

❌ Complex setup

❌ Opinionated frameworks

Just simple validation with sensible defaults.

🚀 Installation Global Installation npm install -g @bejojeffrin/commit-police As a Dev Dependency (Recommended) pnpm add -D @bejojeffrin/commit-police

Or using npm:

npm install --save-dev @bejojeffrin/commit-police ✅ Usage Validate a Commit Message Directly commit-police "feat(auth): add login support" Validate from Git Commit File (for hooks) commit-police --file .git/COMMIT_EDITMSG 📌 Expected Commit Format type(scope?): message ✅ Valid Examples feat(auth): add login validation fix: resolve crash on startup docs: update README feat(api): add user endpoint JIRA-123 ❌ Invalid Example added new stuff ⚙️ Configuration

Create a configuration file in your project root:

commit-police.config.json Example Configuration { "types": ["feat", "fix", "docs"], "maxLength": 72, "requireScope": true, "requireTicket": true, "ticketPattern": "JIRA-[0-9]+" } 🔧 Configuration Options Option Type Default Description types string[] Conventional commit types Allowed commit types maxLength number 100 Maximum header length requireScope boolean false Require (scope) requireTicket boolean false Enforce ticket pattern ticketPattern string "" Regex pattern for ticket validation 🔁 Git Hook Integration

To automatically validate every commit:

1️⃣ Add a commit-msg Hook

Create a file:

.git/hooks/commit-msg

Add:

#!/bin/sh npx @bejojeffrin/commit-police --file "$1" 2️⃣ Make It Executable chmod +x .git/hooks/commit-msg

Now every commit will be validated automatically 🚀

🎯 Key Features

✅ Minimal dependency footprint

✅ Sensible defaults (works out of the box)

✅ Per-project configuration

✅ Lightweight alternative to heavier commit tooling

✅ CLI-based and git-hook friendly

🛠 Development

Clone the repository:

pnpm install

Test locally:

pnpm link --global 🤝 Contributing

Contributions, suggestions, and improvements are welcome. Open an issue or submit a PR.