Husky vs Lefthook
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, Husky is a dependency in 640 (13.2%) and Lefthook in 127 (2.6%): Husky is 5.0× as common. Among repos created in the last 90 days that use a dev workflow and config tool, Husky is in 22.6% and Lefthook in 10.4%, against 23.8% and 4.5% of older ones. 4 projects list both, often a sign of a migration or of a monorepo with several apps.
Dev workflow and config npm Updated Nov 17, 2026
Side by side
| Husky | Lefthook | |
|---|---|---|
| Agent projects that use it | 640 | 127 |
| Rank in dev workflow and config | #2 | #14 |
| In new repos with a dev workflow and config tool (last 90 days) | 22.6% | 10.4% |
| In older repos with one | 23.8% | 4.5% |
| Downloads, last 7 days | 49.4M | 9.9M |
| GitHub stars | 35.4K | 9,040 |
| Last push to its repo | Mar 19, 2026 | Nov 16, 2026 |
| License | MIT | MIT |
| Funding | Yes | — |
| Projects that list both | 4 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | Husky | Lefthook |
|---|---|---|---|
| Claude Code | 2,617 | 15.4% | 3.4% |
| GitHub Copilot | 2,350 | 14.1% | 2.6% |
| Cursor | 1,990 | 15.1% | 2.4% |
| Gemini CLI | 422 | 19.0% | 3.3% |
| OpenAI Codex | 409 | 21.8% | 5.9% |
| OpenCode | 304 | 17.8% | 6.2% |
| OpenClaw | 241 | 3.3% | 0% |
| Devin Desktop | 231 | 14.7% | 0% |
| Kiro | 125 | 18.4% | 0% |
| Roo-Code | 90 | 12.2% | 0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Husky
Modern Git hooks manager for running tasks on git events.
Most often used with it:
| lint-staged | 68.3% of its projects |
|---|---|
| Prettier | 65.8% of its projects |
| ESLint | 67.0% of its projects |
| TypeScript | 78.1% of its projects |
| Vitest | 42.0% of its projects |
npm install husky
Lefthook
Fast git hooks manager for running checks and tasks on commits.
Most often used with it:
| Biome | 33.9% of its projects |
|---|---|
| Turborepo | 29.9% of its projects |
| jsdom | 29.1% of its projects |
| oxlint | 20.5% of its projects |
| TypeScript | 67.7% of its projects |
npm install lefthook
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.