# Lefthook

> Fast and powerful Git hooks manager for any type of projects.

Source: https://talira.ai/catalog/lefthook-882qc1jp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / git / hooks](https://talira.ai/categories/developer-tools/git/hooks), [developer tools / code quality](https://talira.ai/categories/developer-tools/code-quality)
- Platforms: macos, linux, windows, cli
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Backed by: [Evil Martians](https://talira.ai/orgs/evil-martians.md)

Lefthook is a [Git](https://talira.ai/catalog/git-ab5bez9f.md) hooks manager from Evil Martians, a single dependency-free Go binary configured with lefthook.yml. It runs hook commands in parallel, passes only the relevant files (staged, pushed, or glob filtered), and installs via Go, npm, Ruby gems, Python, [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md), apt and others.

## Links

- Website: https://lefthook.dev/
- GitHub: https://github.com/evilmartians/lefthook
- Docs: https://lefthook.dev/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/lefthook>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/lefthook>[^2]

## Problems it solves

- our git hooks run linters one after another and commits take forever
- husky needs Node, but our project is Ruby or Go
- run eslint only on the staged files at commit time
- version git hooks in the repo and install them for everyone
- run several checks in parallel before push
- single binary hook manager that works in any language project
- skip specific hooks in CI or for certain branches
- git hooks setup that installs through npm, gem or pip, whatever the project uses

## Features

- parallel execution
- staged/pushed file lists
- glob filters
- lefthook.yml
- single binary
- npm/gem/pip/go installs

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 1.00, adoption 0.79, momentum 0.60, community 0.90, backing 0.30, extensibility 0.20.

- last commit 11 days ago
- 62 commits in the last 90 days
- latest release v2.2.2 42 days ago
- 9.0k GitHub stars
- 172 contributors
- backed by Evil Martians

## Alternatives

- [pre-commit](https://talira.ai/catalog/pre-commit-ymy35rpp.md): A framework for managing and maintaining multi-language pre-commit hooks.
- [Husky](https://talira.ai/catalog/husky-zpjapvjr.md): Native Git hooks for npm projects, in 2 kB with no dependencies

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
