A fast, dependency-free Git hook manager written in Rust, designed as a drop-in alternative to pre-commit.
prek is a Git hook manager written in Rust, designed as a drop-in alternative to the popular pre-commit framework. It solves the problem of managing and running Git hooks for code quality checks, formatting, and linting by providing a faster, dependency-free tool that maintains full compatibility with existing configurations.
Developers and teams already using pre-commit who want improved performance, or those new to Git hook management looking for a modern, efficient tool. It's particularly valuable for projects in monorepos or those using multiple programming languages.
Developers choose prek for its significant performance improvements, dependency-free single binary, and enhanced user experience features like parallel hook execution and built-in monorepo support, while maintaining full compatibility with their existing pre-commit workflows.
⚡ A Git hook manager written in Rust, designed as a drop-in alternative to pre-commit.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Benchmarks show it's multiple times faster than pre-commit with parallel hook execution and efficient disk usage, reducing CI/CD times significantly.
Prek is a single binary with no external runtime requirements, eliminating Python installation hassles and simplifying deployment.
It maintains full compatibility with existing pre-commit configurations, allowing teams to switch without rewriting hook definitions.
Workspace mode handles multiple projects efficiently, a feature long-requested in pre-commit, simplifying hook management across repositories.
The README admits not all languages have full drop-in parity yet, which can block adoption in multi-language projects relying on niche hooks.
As a newer tool, prek may have undiscovered bugs, fewer stability guarantees, and less extensive testing compared to the mature pre-commit.
It lacks the vast community of third-party hooks and integrations available in pre-commit, limiting customization options for advanced use cases.
prek is an open-source alternative to the following products: