# toplenboren/simple-git-hooks

A simple git hooks manager for small projects

Repository: https://github.com/toplenboren/simple-git-hooks
Canonical: https://ross.abutalabs.com/products/simple-git-hooks
Language: JavaScript
License: MIT
License Family: permissive
Topics: hook, git-hooks, hooks-manager, git, pre-commit, pre-push
Last push: 2026-07-26T06:30:10+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 29, longevity 100
- inputs: {"age_days": 2027, "days_push": 38, "days_rel": 398, "gap_med": 66.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1678, forks 59 (observed 2026-08-28T04:05:20.966011+00:00)

## What it is
simple-git-hooks is a zero-dependency npm tool that manages git hooks for small projects via a single configuration object in package.. It writes hook scripts into .git/hooks so commands like lint-staged run on pre-commit or pre-push.

## Use cases
- run lint-staged on every commit
- set up pre-commit hooks in a small project
- run formatters before git push
- replace husky with a lighter git hooks manager
- enforce code quality checks on commit
- configure git hooks from package.

## When to choose
- small projects needing quick, one-time hook setup
- you want a zero-dependency, lightweight alternative to husky or lefthook
- you only need one command per hook and rarely change them

## When to avoid
- you frequently update hooks and need automatic re-application
- you need multiple commands per hook or verbose, flexible configuration
- large monorepos needing advanced hook orchestration

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, configuration-management, cli
- domain: developer-tools, version-control
- platform: cli, cross-platform
- tags: git-hooks, pre-commit, pre-push, zero-dependency, lint-staged, automation, nodejs

## Member repositories
- toplenboren/simple-git-hooks (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.966011+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-30T03:41:34.897422+00:00, confidence not recorded.
  - readme: https://github.com/toplenboren/simple-git-hooks (fetched 2026-08-28T04:05:20.966011+00:00, sha f2628a46e533)
  - registry_npm: https://registry.npmjs.org/simple-git-hooks (fetched 2026-08-29T11:15:11.994479+00:00, sha b3583fb5315c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
