alternatives to

pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

prek, lefthook, husky and more. 4 alternatives to pre-commit, in Rust, Go, JavaScript, Ruby. Compare fit, licence, stars and the latest signed release. Drop-in: prek.

Side by side

4 open source alternatives to pre-commit
ToolFitStarsLicenceTermsSelf-hostedLanguageLatestLast push
prekDrop-in8.8kMITOpen sourceNoRustv0.5.112026-11-23
lefthookFull replacement9.1kMITOpen sourceNoGov2.2.22026-11-16
huskyPartial35kMITOpen sourceNoJavaScriptv9.1.72026-03-19
OvercommitPartial4kMITOpen sourceNoRubyv0.76.02026-11-11

Every alternative

Language
Fit

4 alternatives

prekDrop-in

⚡ A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.

Reads .pre-commit-config.yaml and runs the same hooks, reimplemented in Rust.

Language
Rust
Licence
MIT
Stars
8.8k
Latest
v0.5.11
Last push
2026-11-23
lefthookFull replacement

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

Runs hook commands in parallel, but uses tools you install instead of building an environment per hook.

Language
Go
Licence
MIT
Stars
9.1k
Latest
v2.2.2
Last push
2026-11-16
huskyPartial

Git hooks made easy 🐶 woof!

Git hooks managed through npm and package.json; no hook repository or per-language environments.

Language
JavaScript
Licence
MIT
Stars
35k
Latest
v9.1.7
Last push
2026-03-19
OvercommitPartial

A fully configurable and extendable Git hook manager

A Ruby hook manager configured in YAML, with built-in hooks for common linters.

Language
Ruby
Licence
MIT
Stars
4k
Latest
v0.76.0
Last push
2026-11-11

Head to head

About pre-commit

Language
Python
Licence
MIT
Stars
16k
Last push
2026-11-09

About pre-commit →