qmetrics.net

Husky

Lightweight native Git hooks for Node projects

Husky screenshot

Husky wires Git hooks so teams can lint commit messages, run tests, or check code on commit and push. It uses core.hooksPath, stays around two kilobytes gzipped, and supports macOS, Linux, and Windows.

Overview

Husky is a tool for managing Git hooks in JavaScript and Node workflows without maintaining ad hoc hook scripts by hand. It provides modern native Git hooks that run quickly because the package itself is small and dependency-free.

Setup relies on Git’s core.hooksPath feature so hooks follow Git’s native organization. Supported environments include macOS, Linux, and Windows, along with Git GUIs, Node version managers, custom hook directories, nested repositories, and monorepos. All client-side Git hooks are supported, with options for branch-specific behavior, POSIX shell scripting, opt-in and opt-out controls, global disable, and clearer error output.

Typical use cases include linting commit messages, linting code, and running tests automatically before commits or pushes. Installation aligns with npm prepare script conventions. Upgrading across major versions may require migrating prior configuration.

Husky is widely adopted in JavaScript tooling chains as a hook runner rather than as a hosted service.

Key features

  • core.hooksPath-based hook install
  • All client-side Git hooks
  • Branch-specific hook rules
  • Monorepo and nested repo support
  • POSIX shell for custom scripts
  • npm prepare script integration
  • Globally disable option
  • Small gzipped install footprint

Use cases

  • Pre-commit lint and format checks
  • Run tests before push
  • Enforce commit message conventions
  • Shared hooks across monorepo packages

Tags

Similar software

nbstripout

CLI tool to strip Jupyter notebook outputs for Git

nbstripout removes notebook outputs and selected metadata while keeping cells. It is meant as a Git filter or hook so commits stay small and diff-friendly.

★ 1.5k⟳ yesterdayMIT

Playwright

Cross-browser web automation and testing framework

Playwright drives Chromium, Firefox, and WebKit through one API for tests, scripts, and agent-driven browser control.

★ 101.2k⟳ yesterdayApache-2.0

Puppeteer

JavaScript library for automating Chrome and Firefox

Puppeteer exposes a high-level JavaScript API to drive Chrome or Firefox through the DevTools Protocol or WebDriver BiDi. It defaults to headless browser control for scripts and tests.

★ 95.9k⟳ yesterdayApache-2.0

Storybook

Isolated workshop for UI components and pages

Storybook runs a local dev workshop where teams build, test, and document components in isolation. It integrates with major frontend frameworks and addons for docs, accessibility, visual review, and agent tooling.

★ 91.7k⟳ todayMIT

Lazygit

Terminal user interface for everyday Git workflows

Lazygit wraps common Git operations in a keyboard-driven terminal UI. You can stage partial changes, rebase, cherry-pick, and inspect history without memorizing fragile command sequences.

★ 84.1k⟳ 5 days agoMIT

act

Local runner for GitHub Actions workflows

A command-line tool that executes GitHub Actions workflows on your machine using Docker. It mirrors GitHub’s environment for faster feedback while editing workflow files.

★ 72.8k⟳ 12 days agoMIT
Build & DeploymentDesktop/CLI app