macOS
brew install lefthooklocal Homebrew formula metadata
sudo port install lefthookMacPorts ports tree · devel/lefthook/Portfile · source: api.github.com
brew
Fast and powerful Git hooks manager for any type of projects. Version 2.1.9 via Homebrew; verified 2026-05-29.
install
brew install lefthooklocal Homebrew formula metadata
sudo port install lefthookMacPorts ports tree · devel/lefthook/Portfile · source: api.github.com
sudo apk add lefthookAlpine Linux edge package indexes · lefthook · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#lefthooknixpkgs package indexes · pkgs/by-name/le/lefthook/package.nix · source: api.github.com
scoop install main/lefthookScoop official bucket manifest trees · bucket/lefthook.json · source: api.github.com
winget install --id evilmartians.lefthook -eWindows Package Manager source index · evilmartians.lefthook · source: cdn.winget.microsoft.com
overview
Fast and powerful Git hooks manager for any type of projects
history
Lefthook is Evil Martians' Git hooks manager, packaged as a fast Go binary for teams that want one hook configuration across JavaScript, Ruby, Python, Go, and mixed-language repositories.
Evil Martians introduced Lefthook publicly in 2019 as part of a developer-experience workflow around Git hooks, CI, and test automation. The project's official materials describe it as a Git hooks manager for Node.js, Ruby, Python, and many other project types, with speed from Go and parallel command execution.
By 2024 Evil Martians described Lefthook as having grown from a wrapper around custom Git hook scripts into a broader automation tool for local development routines. The docs centered the normal workflow around creating `lefthook.yml` and running `lefthook install`, which writes hook shims under `.git/hooks/`.
Evil Martians' 2019 launch material named Discourse, Logux, and OpenStax as adopters, which placed Lefthook in the practical Git-hook-manager niche rather than as a toy demo. Later official pages emphasized package-manager installation through project ecosystems and system package managers, including Homebrew, npm, RubyGems, winget, yum, apt, apk, and Scoop.
Package users usually install the `lefthook` binary, commit `lefthook.yml`, run `lefthook install`, and let Git invoke Lefthook on events such as pre-commit, pre-push, or commit-msg. A common package-nerd use is replacing language-specific hook wrappers with a single binary that can dispatch linters, formatters, tests, and custom scripts in parallel.
Lefthook matters in package-manager culture because it sits at the boundary between Git, local automation, and language ecosystems: it is distributed as a native CLI while still fitting naturally into npm, Ruby, Python, and Homebrew workflows. Its appeal is the small, boring promise package nerds like: one config file, one binary, fewer per-language hook stacks.
security posture
No matching local secret-handling manifest was found for lefthook. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
lefthook.ymllefthook-local.ymlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lefthook | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/evilmartians/lefthook
install metadata
| Package key | brew:lefthook |
|---|---|
| Version | 2.1.9 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lefthook |
| Homepage | https://github.com/evilmartians/lefthook |
| Repository | https://github.com/evilmartians/lefthook |
| Upstream docs | https://lefthook.dev/ |
| License | MIT |
| Source archive | https://github.com/evilmartians/lefthook/archive/refs/tags/v2.1.9.tar.gz |
| Last updated | 2026-05-29T09:11:57Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lefthook |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
lefthook
nix profile install nixpkgs#lefthooklefthook 2.1.4-r2
Fast and powerful Git hooks manager
https://github.com/evilmartians/lefthook
sudo apk add lefthooklefthook-doc 2.1.4-r2
Fast and powerful Git hooks manager (documentation)
https://github.com/evilmartians/lefthook
sudo apk add lefthook-doclefthook
sudo port install lefthookmain/lefthook
scoop install main/lefthookevilmartians.lefthook
winget install --id evilmartians.lefthook -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.