Elestia Open Source Ratings
7.6

Lefthook

A strong pick. 3rd of 10 git hooks and release tools.

Lefthook is a fast Git hooks manager written in Go and shipped as a single binary. You configure it in one YAML file. It runs hook commands in parallel, can lint only staged files, and works in monorepos and repos that mix languages. It is actively maintained and growing fast, which makes it a strong pick for new projects. It handles pre-commit checks only, not release publishing.

Best for: Teams with monorepos, repos in several languages, or slow pre-commit checks who want one fast YAML-configured hook runner instead of Husky plus lint-staged.

WebsiteGitHubnpm

Scores

Overall7.6

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

Lefthook is the strongest hooks manager for new projects that want speed, monorepo support or several languages, and it is actively developed and growing quickly. Husky plus lint-staged is still the more common default, with more tutorials. Some worktree and stash edge cases and only average supply-chain hygiene keep it out of the top band.

GPT-6.2 Sol: 7.7, likely 6.5 to 8.7

Lefthook is a strong choice for new monorepos and mixed-language projects that want the work of Husky and lint-staged in one hook configuration. Active maintenance and growing adoption support that recommendation, while the current worktree race and inconsistent npm provenance matter for teams that depend on those workflows. For automated versioning and publishing, pair it with a release tool such as semantic-release.

Needed by many6.4

How many developers need a tool for this job?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Many JS/TS teams want pre-commit or pre-push checks, and Lefthook works in any language. It covers only the hooks half of this category, not publishing releases. Hooks are common in team projects but optional for solo ones.

GPT-6.2 Sol: 6.7, likely 5.3 to 7.9

Shared commit and push checks are useful across many JavaScript and TypeScript teams, and Lefthook supports multiple operating systems and language stacks. Teams that rely on CI for checks or only need release publishing have less reason to install it. The developer surveys establish broad use of Git and linters, but leave demand for local hook managers unmeasured.

Helps a lot8.0

How well does it do the job for those who need it?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Parallel runs, staged-file filtering, re-staging fixed files, monorepo scoping and remote configs give it more than Husky alone, in one tool. Independent write-ups report much faster commits than with Husky plus lint-staged. Open bugs around stash, worktrees and the fail-open shim, plus the manual install step, keep it below the top score.

GPT-6.2 Sol: 7.9, likely 6.7 to 8.9

Lefthook 2.2.2 combines hook installation, parallel jobs, staged-file filtering, and optional restaging in one tool. The documented config schema helps catch invalid options in editor- and agent-written YAML. An independent one-file Biome benchmark favored Lefthook over Husky with lint-staged, though it tested Lefthook 2.1.11 on one machine. Users reproduced a stash cleanup race on 2.2.2 when commits run in linked worktrees.

Holds up over time7.8

Will it still be a good choice in two years?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

205 commits and 32 releases in the last year, the latest in October 2026, with no breaking 2.x releases in the recent notes. Evil Martians sponsors it, and 171 people have contributed. Most of the work appears to rest on a small core, which keeps the range from being tighter.

  • github commitsLastYear / releasesLastYear: 205 commits and 32 releases in the last year.
  • github.com/evilmartians/lefthook/releases: Steady patch and minor releases with no breaking labels. Recently added AI coding agent integration.
  • github contributors: 171 contributors, 855 merged PRs.
  • Evil Martians sponsorship: The consultancy maintains and uses the tool.

GPT-6.2 Sol: 7.6, likely 6.4 to 8.6

Evil Martians maintains Lefthook, which recorded 205 commits and 32 releases over the past year. An October regression that blocked partially staged commits in linked worktrees received a merged fix the next day. The v2 upgrade removed regex exclusions and changed CLI flags, while one listed code owner and one recurring release tagger leave succession uncertain.

Used widely5.7

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.5

Downloads rose from 2.9M to 38.8M per 4 weeks, a ratio of about 13.4, far above the 4.1 median, so it is clearly gaining ground. That is still a fifth of Husky's downloads. ecosyste.ms dependents (214 repos) are tiny next to Husky's 386k, though non-npm installs are undercounted. The jump may be partly CI-driven, which keeps the range wide.

  • npm downloadsLast4Weeks vs downloadsSame4WeeksYearAgo: 38.8M vs 2.9M, a ratio of about 13.4 against a 4.1 median.
  • dependents: 214 repos and 121 packages, far below Husky and lint-staged.
  • bluesky posts: 15 posts, more than any peer in the bundle.
  • github stars: 9k stars, against Husky's 35k.

GPT-6.2 Sol: 5.4, likely 3.6 to 6.9

Four-week npm downloads rose from 2.9 million to 38.8 million, about 13.5 times the prior year and well above the 4.1 times catalog baseline. Ecosyste.ms found 214 dependent repositories and 121 packages, far fewer than for Husky or lint-staged, and a separate scan of public projects configured for coding agents also favored Husky. Lefthook drew more Bluesky posts than any listed peer, while repeat installs, incomplete repository coverage, and installs outside npm leave the number of direct choices uncertain.

  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew 13.5 times against the 4.1 times catalog baseline.
  • dependents, peers: The same index found 214 Lefthook repositories, 386,105 for Husky, and 305,144 for lint-staged.
  • github.stars, bluesky.posts, peers: About 9,000 stars and 15 Bluesky posts, with the highest Bluesky count among the listed peers.
  • agentgid.com/tools/lefthook: A public repository scan counted 127 projects using Lefthook and 639 using Husky.
  • github.com/evilmartians/lefthook/releases/tag/v2.2.2: GitHub distributes standalone release assets outside npm.
Vouched for7.3

Who stands behind it being good?

Claude Opus 5.5: 6.5, likely 5.0 to 7.5

GitLab and Discourse use it in their development workflows, and Biome documents it. Many independent migration write-ups and benchmarks favour it over Husky. Most of these are blog posts rather than surveys, and some benchmarks come from single authors.

GPT-6.2 Sol: 8.0, likely 6.9 to 9.0

Grafana and Discourse use Lefthook in their contributor workflows, and Block’s Buzz app adopted stock 2.2.2 after testing worktree fixes. Biome documents an integration, and Argano published timings from a real Next.js workspace. The evidence supports use across several stacks, while broad satisfaction and retention remain unmeasured.

Safe6.4

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

There are no known advisories, no npm dependencies, and an MIT licence. The Scorecard is 5.4, with zeros for token permissions, pinned dependencies, branch protection and signed releases, and npm provenance is still an open request. It also ships native binaries through platform packages, which adds supply-chain surface.

  • advisories: 0 advisories ever.
  • scorecard: 5.4 overall. Weak on token permissions, pinning, signing and branch protection.
  • npm dependencies: 0 runtime dependencies. MIT licence.
  • github.com/evilmartians/lefthook/issues: Open requests for npm provenance (#1610) and least-privilege CI permissions.

GPT-6.2 Sol: 5.7, likely 4.4 to 7.1

The MIT license is permissive and OSV lists zero Lefthook advisories. The npm wrapper has no regular dependencies, but its install script uses a platform-specific binary that includes Go dependencies. OpenSSF scored it 5.4 and flagged token permissions, action pinning, and branch protection. GitHub shows a signed 2.2.2 tag, while a user reported that the npm package was published manually without provenance after 2.2.1 used trusted publishing.

Good

  • Commands run in parallel by default. Hooks can target staged files only ({staged_files}) and re-stage auto-fixed files (stage_fixed), so many projects can drop lint-staged.
  • It is a single Go binary with no npm dependencies, so it also works for Ruby, Python, Go and other projects, not just Node.js.
  • Releases are very frequent (32 in the last year) and Evil Martians backs the project.
  • Monorepo support is built in through per-command root and glob settings.

Bad

  • Hooks are not installed by a plain npm install. Teams must run `lefthook install` or add a prepare script.
  • Open issues report edge-case bugs in stash handling, git worktrees, and a generated shim that exits 0 when the binary is missing, so hooks are skipped silently.
  • It has far fewer tutorials and far less community material than Husky. YAML config is one more format to learn.
  • Its supply-chain hygiene is weaker than it could be: releases are not signed, there is no npm provenance yet, and CI tokens and dependencies are not pinned.

The numbers

npm downloads, 4 weeks
39M ×13 in a year
GitHub stars
9k
Commits, 12 months
205
npm version
2.2.2 Oct 2026
Versions, 12 months
31
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
5.4 out of 10, Nov 2026
Licence
MIT

Written in Go. The package installs its binary.

Read on 21 November 2026 from GitHub (evilmartians/lefthook), npm (lefthook), OSV and the OpenSSF Scorecard.

Git hooks and release tools

  1. 7.9lint-staged
  2. 7.9commitlint
  3. 7.6Lefthook
  4. 7.6semantic-release
  5. 7.1release-it
  6. 7.1Husky
  7. 7.0release-please
  8. 6.4bumpp
  9. 6.3np
  10. 6.1simple-git-hooks
Compare all 10 on six scores