talira

Compare

pre-commit (npm)Huskypre-commitLefthook
What it isInstalls a git pre-commit hook that runs your npm scripts before each commitNative Git hooks for npm projects, in 2 kB with no dependenciesA framework for managing and maintaining multi-language pre-commit hooks.Fast and powerful Git hooks manager for any type of projects.
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.370.480.640.72
Stars188135400157189066
Last commit2026-04-282026-03-192026-11-092026-11-28
LicenceMITMITMITMIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API——NoNo
Plugins——NoNo
MCP server——NoNo
CompanyObservingtypicode—Evil Martians
Features
  • installs a git pre-commit hook when added as a dev dependency
  • runs npm test, or the scripts listed in package.json, before each commit
  • backs up an existing pre-commit hook as pre-commit.old
  • 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
  • .pre-commit-config.yaml
  • isolated hook environments
  • multi-language hooks
  • hook repositories
  • runs on staged files
  • pre-commit.ci
  • parallel execution
  • staged/pushed file lists
  • glob filters
  • lefthook.yml
  • single binary
  • npm/gem/pip/go installs