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

husky-ai

v1.0.7

Published

Zero-config AI code review hook for git commits

Readme

🐶 Husky AI

Zero-config AI Code Reviewer for your git commits.

Husky AI automatically reviews your staged changes before you commit, catching bugs, security issues, and sloppy code using your favorite local AI engine (OpenCode, Claude, etc.).

License Version

✨ Features

  • Zero Config: Auto-detects your installed AI tools.
  • Auto-fix loop: Runs eslint/prettier/tsc (configurable), auto-formats on prettier failures, optional eslint --fix, then retries. AI fixes are left unstaged with a summary so you can review them.
  • Resilient Reviews: Timeouts on AI fix/review calls, truncated large diffs, clear per-tool errors and reports.
  • Detailed Reviews: "GitHub-style" comments with code snippets and line numbers.
  • Focused Reviews: Reviews added/modified code only and avoids lint/format noise (those are handled by tools).
  • Smart Gatekeeping: Blocks commits only for blocker-level issues; other findings are reported as non-blocking.
  • Privacy First: Runs locally using your existing CLI tools. Your code goes only where your AI tool sends it.

🚀 Quick Start

1. Install & Init

Run this in your project root (we automatically install husky if you don't have it):

npx husky-ai init

Follow the prompts to select your AI engine (e.g., OpenCode).

2. Commit

Just commit as usual!

git add .
git commit -m "feat: my new feature"

Husky AI will intercept the commit, review the changes, and approve or reject it.

⚙️ Configuration

Your configuration is stored in package.json:

{
  "huskyAi": {
    "engine": "opencode",
    "model": "optional-model-name",
    "tools": ["eslint", "prettier", "tsc"],
    "autoFix": true,
    "autoFixPrettier": true,
    "autoFixEslint": true,
    "autoApplySafeFixes": true,
    "applyRiskyFixes": false,
    "fixTimeoutMs": 60000,
    "reviewTimeoutMs": 90000,
    "skipReviewOnFixFail": false,
    "reportDir": "/path/to/reports",
    "verbose": false
  }
}

Options:

  • engine (required): AI engine to use (opencode, claude, codex).
  • model (optional): Model name for engines that support it.
  • tools (optional): Checks to run (eslint, prettier, tsc). Defaults to npm run lint if empty.
  • autoFix (optional): Enables the AI auto-fix loop.
  • autoFixPrettier (optional): Runs prettier --write when only prettier fails. Default true.
  • autoFixEslint (optional): Runs eslint --fix when only eslint fails. Default false.
  • autoApplySafeFixes (optional): Applies AI fixes marked safe. Default true.
  • applyRiskyFixes (optional): Applies AI fixes marked risky. Default false.
  • fixTimeoutMs (optional): Timeout for AI fix calls.
  • reviewTimeoutMs (optional): Timeout for semantic review calls.
  • skipReviewOnFixFail (optional): Skip review if fix loop fails.
  • reportDir (optional): Directory for reports and debug logs.
  • verbose (optional): Writes debug logs to reportDir.

Notes:

  • Set verbose: true to write debug logs (e.g., to /Users/<you>/reports/debug.log).
  • autoFixEslint runs eslint --fix when eslint is the only failing tool; prettier auto-fix is on by default.
  • AI-applied fixes are left unstaged with a summary so you can review before committing.
  • fixTimeoutMs/reviewTimeoutMs guard AI calls; adjust if your model is slow.

Supported engines:

  • opencode (Recommended)
  • claude (Coming soon)
  • codex (Coming soon)

🤝 Contributing

Pull requests are welcome!

📄 License

MIT