pkg.soopen package index

brew / rank 931

Install prek with Homebrew, MacPorts, Nix, zypper, scoop, winget

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

Additional install commands

macOS

Homebrewverified · 100%
brew install prek

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install prek

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

Linux

Nixverified · 92%
nix profile install nixpkgs#prek

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

openSUSE zypperverified · 92%
sudo zypper install prek

openSUSE Tumbleweed package metadata · prek · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/prek

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

Windows Package Managerverified · 92%
winget install --id j178.Prek -e

Windows Package Manager source index · j178.Prek · source: cdn.winget.microsoft.com

overview

Package summary

Fast Git hook manager written in Rust, drop-in alternative to pre-commit

Commands and aliases

  • prek

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • Early releases: Compatibility, platform support, and hook-language coverage expanded rapidly through the 0.x series.
  • 0.1.1: Added auto-update and refined configuration compatibility.
  • 0.4.5: Official changelog announced complete pre-commit language coverage and full feature parity.

Related projects

  • pre-commit: The established Git-hook framework and configuration ecosystem that prek reimplements.
  • pre-commit-hooks: A commonly used hook collection supported by prek.
  • uv: A related fast Python-tooling component that prek bundles or integrates with for Python hook environments.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for prek. 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
prek.toml.pre-commit-config.yaml.pre-commit-config.yml$XDG_CONFIG_HOME/prek/prek.toml~/.config/prek/prek.toml
Windows
%APPDATA%\prek\prek.toml

executables

Installed executables

CommandKindExposureNote
prekcliglobal 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-09-19
manager version0.5.3
manager updated2026-09-16
local dataok
upstreamcurrent
latest detectedv0.5.0

https://github.com/j178/prek

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:prek
Version0.5.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/prek
Homepagehttps://prek.j178.dev/
Repositoryhttps://github.com/j178/prek
Upstream docshttps://prek.j178.dev/
LicenseMIT
Source archivehttps://github.com/j178/prek/archive/refs/tags/v0.5.0.tar.gz
Last updated2026-09-16T03:48:46+02:00
Pulseupdated
Build dependenciesrust
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 Nameprek
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%

prek

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

prek 0.4.14-1.1

Reimagined version of pre-commit, built in Rust

https://github.com/j178/prek

sudo zypper install prek
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: prek
  • 4 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Prek
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: prek from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

prek-bash-completion 0.4.14-1.1

Bash Completion for prek

https://github.com/j178/prek

sudo zypper install prek-bash-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: prek
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Prek
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: prek-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

prek-fish-completion 0.4.14-1.1

Fish Completion for prek

https://github.com/j178/prek

sudo zypper install prek-fish-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: prek
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Prek
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: prek-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

prek-zsh-completion 0.4.14-1.1

Zsh Completion for prek

https://github.com/j178/prek

sudo zypper install prek-zsh-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: prek
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Prek
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: prek-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
MacPorts95%

prek

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

main/prek

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

j178.Prek

winget install --id j178.Prek -e
  • normalized package name match
  • Matched by: Prek
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: j178.Prek 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
  • 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
  • pkg.so package database
  • pkgdb category and tag curation