macOS
brew install preklocal Homebrew formula metadata
sudo port install prekMacPorts ports tree · devel/prek/Portfile · source: api.github.com
brew / rank 931
Fast Git hook manager written in Rust, drop-in alternative to pre-commit. Version 0.5.3 via Homebrew; verified 2026-09-16. Also installable with nix: nix profile install nixpkgs#prek.
install
brew install preklocal Homebrew formula metadata
sudo port install prekMacPorts ports tree · devel/prek/Portfile · source: api.github.com
nix profile install nixpkgs#preknixpkgs package indexes · pkgs/by-name/pr/prek/package.nix · source: api.github.com
sudo zypper install prekopenSUSE Tumbleweed package metadata · prek · source: download.opensuse.org
scoop install main/prekScoop official bucket manifest trees · bucket/prek.json · source: api.github.com
winget install --id j178.Prek -eWindows Package Manager source index · j178.Prek · source: cdn.winget.microsoft.com
overview
Fast Git hook manager written in Rust, drop-in alternative to pre-commit
history
prek is a fast Git-hook manager written in Rust and designed as a drop-in alternative to pre-commit. It runs repository hooks, installs Git hook scripts, updates hook revisions, and accepts pre-commit-style project configuration.
prek began as a Rust reimplementation and drop-in alternative to the Python-based pre-commit tool. Its changelog documents rapid compatibility work across hook languages and workflows; release 0.4.5 declared full language coverage relative to pre-commit and described the project as being on the path to 1.0.
The official site lists adoption by projects including Apache Airflow, Apache Lucene, Ruff, FastAPI, Sentry, and Godot. Package availability recorded in source_facts.package-manager spans Homebrew, MacPorts, Nix, Scoop, WinGet, and zypper.
Users normally place hook definitions in prek.toml or .pre-commit-config.yaml, run hooks explicitly during development or CI, and install prek into Git’s hook lifecycle. An optional platform-level prek.toml controls user settings rather than project hook definitions.
prek brings the increasingly familiar “fast rewrite in Rust” pattern to Git-hook management while preserving pre-commit configuration compatibility. Its multi-platform packaging and ability to reuse established hook ecosystems make it especially interesting to developers who want faster tooling without migrating every repository configuration.
security posture
No matching local secret-handling manifest was found for prek. 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.
prek.toml.pre-commit-config.yaml.pre-commit-config.yml$XDG_CONFIG_HOME/prek/prek.toml~/.config/prek/prek.toml%APPDATA%\prek\prek.tomlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
prek | 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.
install metadata
| Package key | brew:prek |
|---|---|
| Version | 0.5.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/prek |
| Homepage | https://prek.j178.dev/ |
| Repository | https://github.com/j178/prek |
| Upstream docs | https://prek.j178.dev/ |
| License | MIT |
| Source archive | https://github.com/j178/prek/archive/refs/tags/v0.5.0.tar.gz |
| Last updated | 2026-09-16T03:48:46+02:00 |
| Pulse | updated |
| Build dependencies | rust |
| 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 | prek |
| 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.
prek
nix profile install nixpkgs#prekprek 0.4.14-1.1
Reimagined version of pre-commit, built in Rust
sudo zypper install prekprek-bash-completion 0.4.14-1.1
Bash Completion for prek
sudo zypper install prek-bash-completionprek-fish-completion 0.4.14-1.1
Fish Completion for prek
sudo zypper install prek-fish-completionprek-zsh-completion 0.4.14-1.1
Zsh Completion for prek
sudo zypper install prek-zsh-completionprek
sudo port install prekmain/prek
scoop install main/prekj178.Prek
winget install --id j178.Prek -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.