# j178/prek

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

Repository: https://github.com/j178/prek
Canonical: https://ross.abutalabs.com/products/prek
Homepage: https://prek.j178.dev/
Language: Rust
License: MIT
License Family: permissive
Topics: git, pre-commit, git-hooks
Last push: 2026-08-26T16:17:31+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 49
- inputs: {"age_days": 695, "days_push": 7, "days_rel": 6, "gap_med": 3.5, "n_releases_24m": 89}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8322, forks 236 (observed 2026-08-28T04:10:20.301899+00:00)

## What it is
prek is a fast Git hook manager written in Rust that runs hooks on your code before commits, on demand, or in CI, managing the tools and dependencies hooks need. It is a drop-in replacement for pre-commit, fully compatible with existing .pre-commit-config.yaml files while adding features like monorepo workspace mode and a dependency-free single binary.

## Use cases
- replace pre-commit with a faster drop-in alternative
- run linters and formatters automatically before git commits
- manage git hooks in a monorepo with workspace mode
- run code quality checks in CI pipelines
- detect secrets and lint errors before committing
- manage hook toolchains for Python, Node, Go, Rust, and Ruby projects

## When to choose
- you already use pre-commit and want better speed and a single binary with no Python runtime
- you work in a monorepo and need workspace-aware hook execution
- you want managed toolchain installation shared across hooks
- you need git hooks that work identically in local development and CI

## When to avoid
- you rely on pre-commit plugins or tooling that specifically requires the Python implementation
- your team has no need for automated pre-commit checks
- you need hook behavior not covered by pre-commit's configuration format

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, ci-cd, linter, formatter, security, build-tool
- domain: developer-tools, version-control
- platform: windows, cli, rust
- tags: git-hooks, pre-commit, drop-in-replacement, monorepo, single-binary, code-quality, automation, command-line, linux, macos, docker

## Member repositories
- j178/prek (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:20.301899+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:27:54.142213+00:00, confidence not recorded.
  - readme: https://github.com/j178/prek (fetched 2026-08-28T04:10:20.301899+00:00, sha f2452a687b9b)
  - homepage: https://prek.j178.dev/ (fetched 2026-08-29T08:27:51.117859+00:00, sha 8d6b42278e3d)
  - site_page: https://prek.j178.dev/installation (fetched 2026-08-29T08:27:51.127230+00:00, sha 47251fdf7bf0)
  - site_page: https://prek.j178.dev/quickstart (fetched 2026-08-29T08:27:51.129142+00:00, sha 88fa3a655cf1)
  - registry_crates: https://crates.io/api/v1/crates/prek (fetched 2026-08-29T08:27:51.142060+00:00, sha da6cd568def9)
  - site_page: https://prek.j178.dev/integrations (fetched 2026-08-29T08:27:51.130776+00:00, sha c3c74d5413ee)
  - site_page: https://prek.j178.dev/faq (fetched 2026-08-29T08:27:51.132981+00:00, sha 22e20e5d6a41)
  - site_page: https://prek.j178.dev/changelog (fetched 2026-08-29T08:27:51.135101+00:00, sha f269b6c14f47)
  - site_page: https://prek.j178.dev/reference/cli (fetched 2026-08-29T08:27:51.139295+00:00, sha 5372549fc910)
- Data as of 2026-08-30T08:39:29.467469+00:00.
