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.
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.
- npm downloads ratio: About 13.4x year over year, well above the median.
- peers Husky commitsLastYear: Husky had 6 commits last year and no release since 2024, while Lefthook is very active.
- toolradar.com/compare/lefthook-vs-husky: Comparison sites favour Lefthook for speed and monorepos.
- dev.to/saltyshiomix/saying-goodbye-to-husky-how-lefthook-supercharged-our-typescript-workflow-35c8: A TypeScript team reports a good migration experience.
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.
- github.com/grafana/grafana/blob/main/lefthook.yml: A large mixed-language repository uses one Lefthook configuration for its checks.
- github.releasesLastYear, npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: Frequent releases and download growth above the catalog baseline.
- github.com/evilmartians/lefthook/issues/1619: Concurrent linked worktrees still hit a backup cleanup race on 2.2.2.
- github.com/evilmartians/lefthook/issues/1610: The current npm release can fail a strict provenance policy.
- semantic-release.gitbook.io/semantic-release: Semantic-release automates version selection, release notes, and package publishing.
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.
- category.job: Category covers hooks and release tools. Lefthook covers hooks only.
- biomejs.dev/recipes/git-hooks: Biome lists Lefthook among its git hook managers.
- meta.discourse.org/t/lefthook-support/121929: Used because it is language-agnostic, a single binary with no dependencies.
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.
- survey.stackoverflow.co/2022: 93.87% of version-control respondents reported using Git.
- 2025.stateofjs.com/en-US/other-tools: ESLint and Prettier were widely used among respondents.
- github.com/evilmartians/lefthook: The native hook runner works across language stacks and platforms.
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.
- pkgpulse.com/guides/husky-vs-lefthook-vs-lint-staged-git-hooks-nodejs-2026: Notes parallel runs, monorepo support and stage_fixed. Install step is manual.
- recca0120.github.io/en/2026/03/08/lefthook-git-hooks: Independent report of faster hooks after leaving Husky.
- github.com/evilmartians/lefthook/issues: Open bugs in stash cleanup, worktrees and the fail-open shim.
- npm hasTypes: No types. It is a CLI with YAML config, so types matter little.
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.
- lefthook.dev/configuration: Published JSON Schema supports completion and configuration validation.
- lefthook.dev/configuration/parallel: Jobs can run in parallel.
- lefthook.dev/configuration/stage_fixed: Pre-commit jobs can restage fixes using the configured file filters.
- argano.github.io/post/lefthook-biome-setup: The Biome commit took 445 ms with Lefthook and 844 ms with Husky and lint-staged.
- github.com/evilmartians/lefthook/issues/1619: Two users reproduced backup cleanup failures on 2.2.2.
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.
- github.commitsLastYear, github.releasesLastYear, github.contributors: 205 commits, 32 releases, and 171 contributors.
- evilmartians.com/services/go-development: Evil Martians lists Lefthook among the projects it maintains.
- github.com/evilmartians/lefthook/pull/1581: A contributor’s worktree regression fix merged the day after the report.
- raw.githubusercontent.com/evilmartians/lefthook/v2.2.2/.github/CODEOWNERS: One account is listed as code owner for the full repository.
- github.com/evilmartians/lefthook/actions/workflows/release.yml: The same maintainer pushed the recent release tags.
- github.com/evilmartians/lefthook/blob/master/CHANGELOG.md: The v2 changelog documents removed settings and renamed arguments.
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.
- docs.gitlab.com/development/contributing/style_guides: GitLab ships a lefthook.yml for contributors.
- meta.discourse.org/t/automatically-lint-format-code-before-commits/132947: Discourse uses Lefthook for its git hooks.
- bitovi.com/blog/how-to-migrate-husky-to-lefthook: Consultancy guide to moving from Husky.
- hackerNews: Little HN discussion: one story, a benchmark against hk.
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.
- github.com/grafana/grafana/blob/main/lefthook.yml: Grafana runs TypeScript, Go, and other checks in parallel.
- github.com/discourse/discourse/blob/main/lefthook.yml: Discourse uses the runner for Ruby and frontend checks.
- github.com/block/buzz-app/pull/1644: Block adopted stock 2.2.2 and documented the remaining worktree limitation.
- biomejs.dev/recipes/git-hooks: Biome documents Lefthook recipes for checks and fixes.
- argano.github.io/post/lefthook-biome-setup: An independent engineering team reported client use and published benchmark timings.
- 2025.stateofjs.com/en-US/other-tools: The survey provides no Lefthook satisfaction or retention figure.
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.
- advisories.total, npm.license, npm.dependencies: Zero OSV entries, MIT licensing, and zero regular npm dependencies.
- scorecard.score, scorecard.checks: 5.4 overall, with zeroes for token permissions, pinning, and branch protection.
- raw.githubusercontent.com/evilmartians/lefthook/v2.2.2/packaging/registries/npm/lefthook/package.json: The package declares a postinstall hook and optional platform binaries.
- raw.githubusercontent.com/evilmartians/lefthook/v2.2.2/go.mod: The binary is built from a Go module with third-party dependencies.
- github.com/evilmartians/lefthook/releases/tag/v2.2.2: GitHub records a verified signature on the immutable release tag.
- github.com/evilmartians/lefthook/actions/workflows/release.yml: The automatic workflow run for the 2.2.2 tag failed.
- github.com/evilmartians/lefthook/issues/1610: A user reported missing npm provenance and a blocked install under a strict trust policy.
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
- 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