
Husky
Runs Git hooks like pre-commit checks from your project's config, so they're shared with the team.
- Stars
- 35.4k
- Forks
- 1.1k
- Licence
- MIT
- Language
- JavaScript
- Last update
- 8 months ago
- Type
- Dev tool
What it is
Husky is a JavaScript tool for managing Git hooks, which are scripts Git runs automatically at points like before a commit. It lets a project keep these hook scripts in its repository so everyone working on the code gets the same checks. The README provided here is truncated and only links to the project homepage, so details beyond the description are limited.
- Run a linter automatically before each commit
- Run tests or formatting checks before changes are pushed or committed
- Share the same Git hook setup across a team through the repository
Great for
- JavaScript or Node.js projects that want shared pre-commit checks
- Teams that want Git hooks stored with the code instead of set up by hand on each machine
- Developers who already use Git and want automated checks such as linting or tests before commits
Not ideal for
- Projects that do not use Node.js or JavaScript tooling, since the README provided does not describe other setups (reason: unclear from the README)
- People who want a hook manager with no npm dependency (reason: this README does not describe its install model in detail)
How to get it
- 1
See the README
You'll need: Git · Node.js (version not stated in the provided README)
Clone the repository
git clone https://github.com/typicode/husky - 2
Run it
- Open the project homepage at https://typicode.github.io/husky for setup instructions
- Follow the install steps described there for your project
- Add a hook script, then make a commit to see it run
- 3
Get the most out of it
- Check the homepage for the current recommended setup and configuration options
- Pair hooks with your existing linter or test runner so checks run on every commit
Downloads
Strengths
- Hook scripts live in the repository, so teammates get the same behavior
- Focused on one job: managing Git hooks
- Widely starred and actively maintained, with a release in its recent history
Trade-offs
- The provided README is truncated, so setup and configuration details could not be verified here
- Its usefulness depends on your team running Git and the JavaScript toolchain
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| husky (this) | 35.4k | Dev tool | beginner | 8 months ago | JavaScript or Node.js projects that want shared pre-commit checks |
| pre-commit | 15.7k | Dev tool | intermediate | 16 days ago | Teams that want consistent code checks run on every commit |
| lint-staged | 14.8k | Dev tool | intermediate | 5 days ago | JavaScript or Node.js projects that already use tools like ESLint or Prettier |
| commitlint | 18.8k | Dev tool | intermediate | 4 days ago | Teams that already use or want to adopt the conventional commit format |
| git-history | 13.7k | App | beginner | 2.1 years ago | Developers trying to understand why a file looks the way it does |
| delta | 32.6k | Dev tool | beginner | 9 days ago | Developers who read a lot of git diffs or git show output in the terminal |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.