Automic VaultAutomic Vault

brew

Install lefthook with Homebrew, apk, MacPorts, Nix, scoop, winget

Fast and powerful Git hooks manager for any type of projects. Version 2.1.9 via Homebrew; verified 2026-05-29.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install lefthook

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install lefthook

MacPorts ports tree · devel/lefthook/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add lefthook

Alpine Linux edge package indexes · lefthook · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#lefthook

nixpkgs package indexes · pkgs/by-name/le/lefthook/package.nix · source: api.github.com

Windows

Scoopverified · 92%
scoop install main/lefthook

Scoop official bucket manifest trees · bucket/lefthook.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id evilmartians.lefthook -e

Windows Package Manager source index · evilmartians.lefthook · source: cdn.winget.microsoft.com

overview

Package summary

Fast and powerful Git hooks manager for any type of projects

Commands and aliases

  • lefthook

history

Project history and usage

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.

Project history

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/`.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2019-07-10: Evil Martians published an early Lefthook workflow article with Crystalball and Git automation.
  • 2019-07-30: Evil Martians published the main Lefthook introduction article.
  • 2019-08-28: Evil Martians described using Lefthook in documentation automation workflows.
  • 2024-01-18: Evil Martians described Lefthook's evolution beyond a simple Git-hook script wrapper.

Related projects

  • Related Git-hook tools include Husky, pre-commit, lint-staged, Overcommit, and language-specific package scripts. Evil Martians' surrounding open-source ecosystem also includes projects such as AnyCable, imgproxy, PostCSS-related tooling, and Crystalball.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
lefthook.ymllefthook-local.yml

executables

Installed executables

CommandKindExposureNote
lefthookcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version2.1.9
manager updated2026-05-29
local dataok
upstreamcurrent
latest detectedv2.1.9

https://github.com/evilmartians/lefthook

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:lefthook
Version2.1.9
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/lefthook
Homepagehttps://github.com/evilmartians/lefthook
Repositoryhttps://github.com/evilmartians/lefthook
Upstream docshttps://lefthook.dev/
LicenseMIT
Source archivehttps://github.com/evilmartians/lefthook/archive/refs/tags/v2.1.9.tar.gz
Last updated2026-05-29T09:11:57Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelefthook
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

lefthook

nix profile install nixpkgs#lefthook
  • normalized package name match
  • Matched by: Lefthook
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/le/lefthook/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

lefthook 2.1.4-r2

Fast and powerful Git hooks manager

https://github.com/evilmartians/lefthook

sudo apk add lefthook
  • License: MIT
  • Architecture: x86_64
  • Source Package: lefthook
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lefthook
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lefthook from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

lefthook-doc 2.1.4-r2

Fast and powerful Git hooks manager (documentation)

https://github.com/evilmartians/lefthook

sudo apk add lefthook-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: lefthook
  • normalized package name match
  • Matched by: Lefthook
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lefthook-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
MacPorts95%

lefthook

sudo port install lefthook
  • normalized package name match
  • Matched by: Lefthook
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/lefthook/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/lefthook

scoop install main/lefthook
  • normalized package name match
  • Matched by: Lefthook
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/lefthook.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

evilmartians.lefthook

winget install --id evilmartians.lefthook -e
  • normalized package name match
  • Matched by: Lefthook
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: evilmartians.lefthook from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment