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

git-nocoauthor

v1.0.0

Published

Git commit-msg hook that strips AI co-author trailers from your commits — works with any tool, not just one

Readme

nocoauthor

A git commit-msg hook that strips AI co-author trailers from your commit messages.

Coding agents append a trailer to every commit they make:

Co-Authored-By: Claude <[email protected]>

Some people want that. Some people don't, and turning it off means finding the right setting in every tool separately — and hoping each one honours it. This hook works one layer down, at git itself, so it applies no matter what produced the commit: an agent, an IDE, or you.

Install

Pick whichever you like — all three run the same installer.

npm (no install needed, works on macOS, Linux and Windows):

npx git-nocoauthor install

Shell (no Node required):

curl -fsSL https://raw.githubusercontent.com/Otitodev/nocoauthor/main/bootstrap.sh | sh

From source:

git clone https://github.com/Otitodev/nocoauthor
cd nocoauthor
./install.sh

All of these install globally, for every repository. To limit it to the repo you're standing in, pass --repo:

npx git-nocoauthor install --repo
curl -fsSL https://raw.githubusercontent.com/Otitodev/nocoauthor/main/bootstrap.sh | sh -s -- --repo
./install.sh --repo

Read this before installing globally

Global installation works by setting core.hooksPath, and that setting is exclusive: once set, git ignores every repository's own .git/hooks directory. If any of your projects use husky, lefthook, or pre-commit, their hooks stop firing.

The installer handles this rather than papering over it:

  • If core.hooksPath is already set, it installs into that directory and leaves the setting alone. Your existing hooks keep working.
  • If it is not set, it warns you and asks before setting it.
  • If a different commit-msg hook is already there, it refuses to overwrite and tells you. --force backs the old one up first.

If you'd rather not touch global config at all, use --repo.

Verify

git commit --allow-empty -F - <<'EOF'
Test commit

Co-Authored-By: Claude <[email protected]>
Co-Authored-By: A Human <[email protected]>
EOF

git log -1 --format=%B

The Claude trailer is gone; the human one is untouched.

Configuration

Choose which trailers get stripped — any extended-regex alternation, matched case-insensitively against the trailer line:

git config --global nocoauthor.pattern 'claude|anthropic|copilot|cursor'

Default: claude|anthropic.

Turn it off without uninstalling:

git config --global nocoauthor.enabled false

Bypass it for a single commit:

NOCOAUTHOR=0 git commit -m "..."

What it does not cover

Only commit messages pass through this hook. Pull request descriptions don't — gh pr create never calls git's commit-msg. If your agent adds a "Generated with …" line to PR bodies, turn that off in the tool itself. For Claude Code that's one line in ~/.claude/settings.json:

{ "includeCoAuthoredBy": false }

The two are complementary: the setting stops the trailer being written at all, and this hook catches anything that slips through from other tools.

Uninstall

npx git-nocoauthor uninstall # or, from a clone:
./uninstall.sh               # or: ./uninstall.sh --repo

It removes only a hook it recognises as its own, points you at any backup it made, and unsets core.hooksPath only if it created that directory and nothing else is left in it.

License

MIT