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

commit-radar

v1.4.0

Published

AI-powered Semantic Firewall for your git commits. Detects blast radius and logic errors.

Readme

📡 CommitRadar

The Semantic Firewall for your Git workflow. Catch logical bugs that Linters and Static Analysis miss.

npm version License: UNLICENSED


🛑 The Problem

Your Linter checks syntax (missing semicolon). Your Tests check expected paths (assert(2+2 === 4)). But who checks the logic between files?

If you change a variable type in config.ts from a Number to a String, your linter will pass, but payment-service.ts (which imports it) might crash in production with NaN.

🛡️ The Solution

CommitRadar is an AI-powered pre-commit guard. It intercepts your commit, analyzes the dependency graph of your changes, and predicts the "Blast Radius".

If it detects that your change breaks the logic of a dependent file, it blocks the commit.


🚀 Quick Start (10 Seconds)

1. Install

Install it as a dev dependency. The setup script will automatically configure Husky hooks for you.

npm install -D commit-radar husky

2. Configure API Key

CommitRadar uses OpenAI's LLM for semantic analysis. Create a .env file in your project root:

OPENAI_API_KEY=sk-proj-your-openai-key-here

Tip: We recommend using a scoped Project Key restricted to gpt-4o-mini with a budget limit.

3. That's it.

Try to commit a change. CommitRadar will run automatically.

git add .
git commit -m "feat: update tax logic"

🔒 Privacy Mode (Local LLMs / Ollama)

Don't want to send your code to the cloud? No problem. CommitRadar supports local inference (Ollama, LM Studio, LocalAI) out of the box.

  1. Install Ollama and pull a model (e.g., ollama pull mistral).
  2. Update your .env:
# Point to your local instance
OPENAI_BASE_URL=http://localhost:11434/v1
OPENAI_MODEL=mistral
OPENAI_API_KEY=ollama  # Can be anything for local

Now CommitRadar runs 100% on your machine. Zero data egress.


🧠 How it Works

  1. Interception: Hooks into git commit via Husky.
  2. Graph Analysis: Scans your project using AST analysis (madge) to build a real-time dependency map.
  3. Blast Radius Calculation: Identifies which files import the files you modified.
  4. AI Judgment: Sends the diff and the context of dependent files to the LLM.
  5. Verdict:
    • PASS: Logic seems sound.
    • BLOCK: "Critical Risk detected: Type mismatch in billing.ts."

⚙️ Smart Limits (Cost Protection)

To prevent high API bills and slow commits, CommitRadar includes built-in Circuit Breakers:

  • Massive Commits: If you stage >10 files, analysis is skipped (assumes migration/refactor).
  • Huge Files: Files >400 lines are skipped to save tokens and reduce latency.
  • Supported Extensions: Only analyzes .js, .ts, .jsx, .tsx.

🔒 Privacy & Security

  • Local First: Use Ollama/LocalAI to keep 100% of your code on your machine.
  • Zero-Retention (Cloud): If you use OpenAI, we use the API (not ChatGPT), which does not train on your data by default.
  • Minimal Context: We only analyze the diff and direct dependents. We never scan your entire repo.

🛠️ Configuration (Optional)

You can customize CommitRadar by creating a commit-radar.config.js file in your project root.

module.exports = {
  // Ignore legacy code, tests, or build artifacts
  exclude: [
    '**/*.test.js',
    'src/legacy/**',
    'build/**'
  ],
  thresholds: {
    maxFiles: 20,   // Skip analysis if PR has >20 files
    maxLines: 1000  // Skip files larger than 1000 lines
  },
  model: 'gpt-4o'   // Force a smarter model for Enterprise use
};

---

## 📝 License

Copyright © 2025. All rights reserved.
This software is provided "as is" for personal and commercial use as a dependency, but redistribution of the source code is restricted.