# ghooks-org/ghooks

Simple git hooks

Repository: https://github.com/ghooks-org/ghooks
Canonical: https://ross.abutalabs.com/products/ghooks
Language: JavaScript
License: MIT
License Family: permissive
Topics: git, git-hooks, javascript, ghooks
Last push: 2023-07-20T12:18:23+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4510, "days_push": 1140, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1078, forks 63 (observed 2026-08-28T04:03:29.845521+00:00)

## What it is
ghooks is an npm package that manages git hooks for JavaScript projects by letting you define hook commands in your package. config. It installs git hooks automatically as a dev dependency and runs the configured commands on events like pre-commit, commit-msg, and pre-push.

## Use cases
- run linting before every commit
- validate commit messages with commit-msg hooks
- run tests before pushing to remote
- automatically npm install after merge or rebase
- configure git hooks declaratively in package.
- make git hooks opt-in or opt-out for contributors

## When to choose
- you have a Node.js project and want simple, zero-config git hooks managed via package.
- you want hooks installed automatically for everyone who runs npm install
- you need common hooks like pre-commit, pre-push, and commit-msg without shell scripting

## When to avoid
- your project is not JavaScript/Node.js based
- you need actively maintained tooling - consider husky or modern alternatives
- you need complex hook logic beyond simple shell commands
- you must install hooks globally or outside a package. project

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, cli, configuration-management
- domain: developer-tools, version-control
- platform: cli, cross-platform
- tags: git-hooks, npm, pre-commit, commit-msg, javascript, automation, nodejs

## Member repositories
- ghooks-org/ghooks (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.845521+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-30T06:53:08.952125+00:00, confidence not recorded.
  - readme: https://github.com/ghooks-org/ghooks (fetched 2026-08-28T04:03:29.845521+00:00, sha bbc97fce11ae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
