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

boru

v1.0.0

Published

Own your hooks

Readme

⚡ Boru

Zero dependencies. No magic. Just native Git hooks. Scaffolds git hooks directly into your project, inspired by the shadcn/ui philosophy.

npm version License: MIT

🤔 Why?

Traditional tools like Husky are powerful but often introduce:

  1. Hidden Abstractions: Logic buried in node_modules or complex configs.
  2. Runtime Overhead: Node.js is required just to run a shell command.
  3. Breaking Changes: Updates to the tool can break your workflow.

Boru takes a different approach. It creates simple, editable shell scripts in a .boru folder. Once installed, you own the code. You can delete this tool, and your hooks will keep working.

✨ Features

  • 📦 Zero Runtime Dependencies: Your hooks are just shell scripts.
  • 🚀 Native Speed: Uses Git's native core.hooksPath.
  • 📝 Smart Templates: Includes ready-to-use templates for pre-commit, pre-push (branch protection), and commit-msg.
  • 🛠️ Fully Customizable: Edit your hooks directly in your editor.
  • 🎛️ Interactive CLI: Select only the hooks you need (Space to toggle).
  • 💾 Git Control: The CLI asks if you want to stage the new files to Git automatically.

🚀 Quick Start

Run the command in the root of your git repository:

npx boru

📂 How it works

The CLI guides you through a simple process:

  1. Selection: Choose which hooks you want to generate.
  2. Scaffolding: Creates the .boru folder with executable shell scripts.
  3. Configuration: Runs git config core.hooksPath .boru locally.
  4. Staging (Optional): Asks if you want to run git add .boru immediately.

📂 Directory Structure

After running the command, your project will look like this:

├── .boru
│   ├── pre-commit <-- Edit this file!
│   ├── pre-push
│   └── commit-msg
├── package.json
└── README.md

🛠️ Usage Example

Open .boru/pre-commit and add your logic. It's just a shell script!

#!/bin/sh

echo "⚡ Running pre-commit checks..."

# 1. Run Linting
npm run lint

# 2. Run Tests
# If this fails (exit code != 0), the commit is aborted.
npm test

🤝 Team Workflow

Since the hooks are files in your repo, it is recommended to commit them to Git so your team shares the same rules. To ensure every developer on your team has the hooks activated when they clone the repo, add a simple prepare script to your package.json:

{
  "scripts": {
    "prepare": "git config core.hooksPath .boru || true"
  }
}

🗑️ Uninstallation

Because there is no magic, "uninstalling" is trivial:

  1. Delete the .boru folder.
  2. Run git config --unset core.hooksPath.

📄 License

MIT © Borja Muñoz

boru