simple-git-hooks
Reasonable, with limits. 10th of 10 git hooks and release tools.
simple-git-hooks is a tiny, zero-dependency git hooks manager. You configure it in package.json, with one command per hook. It is a fine pick for small libraries with one or two fixed hooks. Husky is the better-known default, and Lefthook does more for teams.
Best for: Solo developers and small libraries that want one pre-commit command, such as lint-staged, with no extra dependencies or hook files.
Scores
Overall6.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
It is a sound, minimal tool for small projects, and its zero-dependency design is a real plus. Husky is just as simple with far more users and docs. Lefthook and lint-staged are much more active and capable. Slow maintenance and the one-command-per-hook limit keep it a reasonable niche choice, not a default.
- peers Husky downloadsLast4Weeks: Husky has about 46 times the downloads and 100 times the dependents.
- peers Lefthook commitsLastYear: Lefthook had 205 commits last year against 7.
- github.com/toplenboren/simple-git-hooks: The README itself points to Husky or Lefthook for more complex needs.
GPT-6.2 Sol: 6.6, likely 5.5 to 7.7
For a small project with a few stable hooks, the command map and zero-dependency install make simple-git-hooks a reasonable choice. Husky is the stronger general-purpose default for JavaScript teams, and Lefthook offers more for teams that need task orchestration. Slow releases and the open worktree issue lower confidence for workflows that depend on fresh clones or worktrees picking up hooks reliably.
- codecudos.com/blog/husky-vs-lefthook-vs-simple-git-hooks-2026: Compares simple configuration, Husky’s conventional workflow and Lefthook’s orchestration.
- github.releasesLastYear: One release in the past year.
- github.com/toplenboren/simple-git-hooks/issues/150: Open report of hooks being written where a worktree will not read them.
Needed by many5.5
How many developers need a tool for this job?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
Many JS/TS projects run pre-commit checks, but simple-git-hooks covers only the hooks half of this category, not releases. Its minimal take targets small projects with simple hooks, which is narrower than Husky or Lefthook.
- github.com/toplenboren/simple-git-hooks: Describes itself as a hooks manager for small projects, with one command per hook.
- category.job: The category also covers publishing, which this tool does not do.
GPT-6.2 Sol: 5.5, likely 4.2 to 6.8
Local Git checks are useful across JavaScript and TypeScript projects and require no particular application framework. This package serves teams that want simple local hooks and covers only the hook side of the category. The available survey measures Git use, leaving demand for a dedicated hook installer less certain.
- survey.stackoverflow.co/2022/#section-version-control-version-control-systems: 93.87% of respondents reported using Git.
- raw.githubusercontent.com/toplenboren/simple-git-hooks/2.14.0/README.md: Documents framework-independent Git hook installation with one command per hook.
Helps a lot6.2
How well does it do the job for those who need it?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
It does its narrow job reliably and has small, clear docs. Recent releases added worktree, Bun, Deno and ESM config support. But it allows only one command per hook, it needs a manual re-run after config changes, and it ships no types. Lefthook clearly does more, and Husky is about as simple.
- github.com/toplenboren/simple-git-hooks: Feature list and stated limits: one command per hook, manual re-run after changes.
- dev.to/axiom_agent/git-hooks-in-nodejs-2026-stop-fighting-with-husky-5cje: Calls it brutally simple and best for one or two hooks; written by a competing tool's author.
- github.com/toplenboren/simple-git-hooks/releases: 2.13 and 2.14 added Deno, Bun, worktree and preserveUnused support.
- npm hasTypes: No bundled types, though the tool is used through config rather than code.
GPT-6.2 Sol: 6.9, likely 5.9 to 7.9
The documented command map is easy for developers and coding agents to write, and TypeScript declarations matter little for this CLI. Lefthook offers built-in staged-file filtering and parallel execution, while Husky runs checked-in hook scripts that can be edited directly. The 2.14.0 release fixed ordinary linked-worktree installs, but a report of silent failure with a custom worktree hook path remains open. Package-manager settings can also affect whether hooks are installed.
- raw.githubusercontent.com/toplenboren/simple-git-hooks/2.14.0/README.md: Shows the command map, reinstallation steps and lifecycle-script setup.
- npm.hasTypes: No bundled TypeScript declarations.
- github.com/evilmartians/lefthook: Documents parallel jobs and staged-file filters.
- typicode.github.io/husky/how-to.html: Documents hook commands in individual tracked files.
- github.com/toplenboren/simple-git-hooks/releases/tag/2.14.0: Includes linked-worktree and isolated-install fixes.
- github.com/toplenboren/simple-git-hooks/issues/150: Open user report of a silent failure with a custom worktree hook path.
Holds up over time5.2
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
The project is alive but slow. Last year it had 7 commits and one release (2.14.0, August 2026), and its 2.13.x releases came roughly a year before that. The code is small and stable, so slow change is less risky than it sounds. Still, a planned 3.x drops postinstall setup, and work depends on a few maintainers with no visible funding.
- github commitsLastYear: 7 commits in the last year.
- github releasesLastYear: 1 release in the last year.
- github.com/toplenboren/simple-git-hooks/releases: Release gaps of many months between 2.13.1 and 2.14.0.
- scorecard Maintained: Maintained check scores 5/10.
GPT-6.2 Sol: 5.4, likely 4.1 to 6.8
Seven commits and one release in the past year show a slower pace, although the August release shipped fixes from several contributors. A downstream project pinned an older release while waiting for a worktree regression fix, and npm lists one collaborator. The planned removal of postinstall in v3 creates a migration for teams that rely on it, and release capacity over the next two years is uncertain.
- github: Seven commits, one release and seven open pull requests in the snapshot.
- github.com/toplenboren/simple-git-hooks/releases: August 2026 release followed July 2025 and included fixes from several contributors.
- github.com/billyvg/sentry-tui/issues/201: Downstream project pinned 2.12.1 while waiting for a worktree fix.
- npmjs.com/package/simple-git-hooks?activeTab=dependencies: Public npm listing shows one collaborator.
- raw.githubusercontent.com/toplenboren/simple-git-hooks/2.14.0/README.md: Documents plans to remove the postinstall script in v3.
Used widely4.2
How many use it, and is that growing?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
It had 4.3M downloads in the last 4 weeks, up from 1.05M a year before. That ratio of 4.1 equals the median, so it is holding its share, not gaining. ecosyste.ms finds 3,461 dependent repos against Husky's 386k, so direct choice is in the low tens of thousands of projects. Part of the download count comes from popular projects that bundle it in their dev setup.
- npm downloadsLast4Weeks: 4.32M, against 1.05M in the same 4 weeks a year before; the ratio equals the median.
- dependents repos: 3,461 repos and 1,634 packages, far below Husky and lint-staged.
- bluesky posts: No Bluesky posts and no Hacker News stories.
GPT-6.2 Sol: 3.9, likely 2.8 to 5.1
ecosyste.ms found 3,461 dependent repositories and 1,634 dependent packages, with possible overlap and far fewer repository matches than Husky. Downloads rose from 1.05 million to 4.32 million in four weeks year over year, a 4.11× ratio just above the 4.1× catalog benchmark, ahead of Husky’s 2.69× and behind Lefthook’s 13.45×. That margin is too small to infer meaningful gains in direct adoption from install counts. The modest star count and sparse discussion give little additional evidence of how many new teams are choosing it.
- dependents: Partial index found 3,461 repositories and 1,634 npm packages.
- npm: 4,320,395 installs versus 1,051,436 in the comparable period.
- medianDownloadsRatio: Catalog baseline is 4.1×.
- peers: Husky has 386,105 indexed repos. Lefthook has faster npm growth and ships through other channels.
- github.stars: 1,692 stars.
- bluesky.posts: Zero repository-linking posts in the collector window.
- hackerNews.stories: Zero matching stories in the bundle.
Vouched for5.9
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
Well-known open-source projects use it, including VitePress, VueUse, PostCSS, Nano ID, Slidev and WXT, and it is common in the Vue/Vite circle. Independent write-ups mention it only as the minimal option. There is no survey data, and one comparison article picked Husky over it for being better known.
- github.com/toplenboren/simple-git-hooks: README lists PostCSS, Nano ID, VitePress, VueUse, Vercel/pkg and others as users.
- zenn.dev/t28_tatsuya/articles/should-i-use-husky-or-simple-git-hook: Japanese comparison: not bad, but too simple to beat Husky; the author chose Husky.
- dev.to/axiom_agent/git-hooks-in-nodejs-2026-stop-fighting-with-husky-5cje: Recommends it for one or two simple hooks.
GPT-6.2 Sol: 6.7, likely 5.5 to 7.8
Vue Core, PostCSS and Directus rstore use it for contributor checks, and Knip provides a dedicated integration. An independent comparison recommends it for a small set of hooks. These are concrete endorsements of the workflow, while project-specific satisfaction data and independent performance measurements are thin.
- raw.githubusercontent.com/vuejs/core/main/package.json: Vue Core uses it for staged checks and commit-message validation.
- github.com/postcss/postcss/blob/main/package.json: PostCSS configures its hooks with the 2.14 release line.
- raw.githubusercontent.com/directus/rstore/main/package.json: Directus rstore configures pre-commit and commit-message hooks.
- knip.dev/reference/plugins/simple-git-hooks: Knip detects and reads its configuration.
- codecudos.com/blog/husky-vs-lefthook-vs-simple-git-hooks-2026: Independent comparison favors it for one or two simple hooks.
Safe7.1
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It has zero dependencies, an MIT licence and no advisories ever. The OpenSSF Scorecard is weak at 4.8: branch protection, token permissions and pinned dependencies all score 0. It also runs an install-time script that writes into .git/hooks, which the maintainers now discourage in favour of `prepare`.
- npm dependencies: 0 dependencies.
- advisories total: No known advisories.
- scorecard score: 4.8, with Branch-Protection, Token-Permissions and Pinned-Dependencies at 0.
- github.com/toplenboren/simple-git-hooks: Postinstall setup is being phased out; maintainers recommend `prepare`.
GPT-6.2 Sol: 6.6, likely 5.4 to 7.8
The MIT-licensed package adds no runtime dependencies, and OSV lists no advisories. Its postinstall can write executable Git hooks when package managers allow lifecycle scripts. The release workflow uses Changesets with an npm token, and npm lists one collaborator. OpenSSF’s 4.8 score and zeroes for branch protection, token permissions and dependency pinning limit confidence in the release safeguards.
- npm: MIT license and zero runtime dependencies.
- advisories: Zero OSV advisories in the snapshot.
- scorecard: 4.8 overall, with weak code review and several release safeguards scoring zero.
- raw.githubusercontent.com/toplenboren/simple-git-hooks/2.14.0/postinstall.js: Install-time code resolves the project and can write configured hooks.
- raw.githubusercontent.com/toplenboren/simple-git-hooks/2.14.0/.github/workflows/release.yml: GitHub Actions uses Changesets and an npm token secret.
- npmjs.com/package/simple-git-hooks?activeTab=dependencies: The package lists one collaborator.
Good
- It has zero runtime dependencies and a very small install.
- Hooks live in package.json or one config file, so there is no hook directory to maintain.
- It removes unused hooks itself, offers skip variables for CI, and has a Husky migration path.
- Known projects in the Vue/Vite and PostCSS ecosystems use it, including VitePress, VueUse, PostCSS and Nano ID.
Bad
- Each hook runs only one command, and there is no parallel or staged-file logic of its own.
- You must re-run `npx simple-git-hooks` after every config change, or hooks go stale.
- Development is slow: 7 commits and 1 release in the last year, and changes rest on a small core team.
- The postinstall setup is being phased out because pnpm, Yarn Berry and Bun block it, so 3.x will bring a breaking change.
The numbers
- npm downloads, 4 weeks
- 4.3M ×4.1 in a year
- GitHub stars
- 1.7k
- Commits, 12 months
- 7
- npm version
- 2.14.0 Aug 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 4.8 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (toplenboren/simple-git-hooks), npm (simple-git-hooks), OSV and the OpenSSF Scorecard.
Git hooks and release tools
- 7.9lint-staged
- 7.9commitlint
- 7.6Lefthook
- 7.6semantic-release
- 7.1release-it
- 7.1Husky
- 7.0release-please
- 6.4bumpp
- 6.3np
- 6.1simple-git-hooks