Skip to content

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)
Step-by-step guide: how to use HuskyInstall, first run, examples, tips and FAQs

How to get it

  1. 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. 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. 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

ProjectStarsTypeLevelUpdatedBest for
husky (this)35.4kDev toolbeginner8 months agoJavaScript or Node.js projects that want shared pre-commit checks
pre-commit15.7kDev toolintermediate16 days agoTeams that want consistent code checks run on every commit
lint-staged14.8kDev toolintermediate5 days agoJavaScript or Node.js projects that already use tools like ESLint or Prettier
commitlint18.8kDev toolintermediate4 days agoTeams that already use or want to adopt the conventional commit format
git-history13.7kAppbeginner2.1 years agoDevelopers trying to understand why a file looks the way it does
delta32.6kDev toolbeginner9 days agoDevelopers 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.