# Husky

> Native Git hooks for npm projects, in 2 kB with no dependencies

Source: https://talira.ai/catalog/husky-zpjapvjr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / git / hooks](https://talira.ai/categories/developer-tools/git/hooks), [developer tools / code quality](https://talira.ai/categories/developer-tools/code-quality)
- Platforms: macos, linux, windows[^1]
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source; supported through GitHub Sponsors and Open Collective.
- Free tier: yes[^1]
- Backed by: [typicode](https://talira.ai/orgs/typicode.md)

Husky sets up Git hooks for JavaScript projects, so commit messages get linted, code gets formatted and tests run when someone commits or pushes. It uses Git's core.hooksPath and is installed through npm's prepare script, so every developer who installs the project gets the hooks. It's about 2 kB with no dependencies and runs in about a millisecond. It supports all 13 client-side Git hooks, branch-specific hooks, POSIX shell scripts for advanced cases, monorepos and nested projects, Git GUIs and Node version managers, on macOS, Linux and Windows, and can be turned off globally.

## Links

- Website: https://typicode.github.io/husky/
- GitHub: https://github.com/typicode/husky
- Docs: https://typicode.github.io/husky/get-started.html

## Problems it solves

- run lint and tests before every commit in my JavaScript project
- make sure everyone on the team gets the same Git hooks after npm install
- lint commit messages before they are committed
- stop people pushing code that fails the tests

## Features

- all 13 client-side Git hooks
- 2 kB, no dependencies
- uses Git core.hooksPath
- installs through the npm prepare script
- branch-specific hooks
- monorepo and nested project support
- works with Git GUIs and Node version managers

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.27, adoption 0.91, momentum 0.72, community 0.85, backing 0.30, extensibility 0.00.

- latest release v9.1.7 2.0 years ago
- 35.4k GitHub stars
- 134 contributors
- accepts sponsorship (Github, Open Collective)
- backed by typicode

Warnings:

- last commit 8 months ago

## Alternatives

- [pre-commit](https://talira.ai/catalog/pre-commit-ymy35rpp.md): A framework for managing and maintaining multi-language pre-commit hooks.
- [Lefthook](https://talira.ai/catalog/lefthook-882qc1jp.md): Fast and powerful Git hooks manager for any type of projects.

## Sources

[^1]: https://typicode.github.io/husky/ (checked 24 Nov 2026)
[^2]: https://github.com/typicode/husky/blob/main/LICENSE (checked 24 Nov 2026)
