# typicode/husky

Git hooks made easy 🐶 woof!

Repository: https://github.com/typicode/husky
Canonical: https://ross.abutalabs.com/products/husky
Homepage: https://typicode.github.io/husky
Language: JavaScript
License: MIT
License Family: permissive
Topics: git, hooks, commit, pre-commit
Last push: 2026-03-19T23:03:16+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 28, longevity 100
- inputs: {"age_days": 4454, "days_push": 167, "days_rel": 653, "gap_med": 67, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 35286, forks 1097 (observed 2026-08-28T04:12:00.777673+00:00)

## What it is
Husky is a lightweight npm package that makes managing native Git hooks easy, using Git's core.hooksPath feature. It lets teams automatically run scripts like linters, commit message checks, and tests on commit or push.

## Use cases
- run linters before every commit
- enforce conventional commit message formats
- run tests before pushing
- set up git hooks in a monorepo
- prevent bad commits with pre-commit checks

## When to choose
- you have a Node.js/npm project and want simple, fast Git hook management
- you need cross-platform Git hooks that work on macOS, Linux, and Windows
- you want hooks that work with Git GUIs and monorepos

## When to avoid
- your project is not JavaScript/Node.js based
- you need server-side or CI-only hooks rather than client-side hooks
- you prefer language-agnostic hook managers like pre-commit

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools, ci-cd, testing
- domain: developer-tools, version-control
- platform: cross-platform, windows
- tags: git-hooks, pre-commit, commit-linting, npm, monorepo, automation, nodejs, macos, linux

## Member repositories
- typicode/husky (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:00.777673+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-29T16:27:04.673949+00:00, confidence not recorded.
  - readme: https://github.com/typicode/husky (fetched 2026-08-28T04:12:00.777673+00:00, sha b4271e0d36e9)
  - homepage: https://typicode.github.io/husky (fetched 2026-08-29T07:48:26.171735+00:00, sha 43e5135d4345)
- Data as of 2026-08-30T08:39:29.467469+00:00.
