compare
lefthook vs prek
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | lefthook | prek |
|---|---|---|
| Language | Go | Rust |
| Licence | MIT | MIT |
| Stars | 9.1k | 8.8k |
| Latest | v2.2.2 | v0.5.11 |
| Last push | 2026-11-16 | 2026-11-23 |
| Release cadence | about 3 days between releases | about 7 days between releases |
| Active contributors | 27 commit authors on the default branch in the last 90 days | 13 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Both replace pre-commit. Alternatives to pre-commit →
Full replacementlefthookRuns hook commands in parallel, but uses tools you install instead of building an environment per hook.
Drop-inprekReads .pre-commit-config.yaml and runs the same hooks, reimplemented in Rust.
lefthook
- v2.2.22026-10-134aeffd72a6e3ea846c2054cffd6294c943fd7fbb fix: cleanup only current stash hash (#1597)
- v2.2.12026-10-086dd11f61f54595935746f9e0814c16844fc6d31b feat: support php composer (#1583)
- v2.2.02026-10-0746c65b3871dd96c81624f413b24b3d273b41a4e5 deps: October 2026 (#1571)
- v2.1.172026-10-058d8073d427fac49cc982919f5280b295645d196d fix: diff push files against the merge base with the default branch (#1565)
- v2.1.162026-10-013ee04318fd06d56a70cc9c90dc8385b19918f520 ci: refactor publishing scripts (#1559)
lefthook
✓ signed The latest release, v2.2.2, carries a signature GitHub verified.
Loading the security report
prek
✓ signed The latest release, v0.5.11, carries a signature GitHub verified.
Loading the security report