@vercel/git-hooks
@vercel/git-hooks: A lightweight, open-source choice for basic npm or Yarn pre-commit automation. Ranked #21 of 26 in Git Hooks Management Tools by our editors (6.1/10); pricing: Open source; best for vercel or npm projects needing basic pre-commit hooks.
At a glance
- Editor score6.1 / 10
- PricingOpen source
- Best forVercel or npm projects needing basic pre-commit hooks
- Paid fromFree
- Hook stagesCommit
- Founded2015
- Facts checked20 Oct 2026
Where it wins
- Runs multiple pre-commit scripts sequentially.
- Detects npm or Yarn and needs no runtime dependencies.
- Symlinked hooks include checks intended to avoid overwriting existing files.
Where it doesn't
- Coverage is focused on the Git pre-commit stage.
- Designed around JavaScript package configuration and npm/Yarn workflows.
- Its configuration model is limited to git-* scripts or a top-level git object.
Our verdict on @vercel/git-hooks
@vercel/git-hooks is an open-source npm package from Vercel for JavaScript projects that need basic Git pre-commit automation. It installs and manages hooks from a project's package configuration, letting teams run one command or several scripts in sequence. The package fits Vercel, npm, and Yarn-oriented repositories that want a small hook-management layer rather than a broad workflow system.
Setup centers on the package manager already used by the project. @vercel/git-hooks detects the installation environment and supports npm- and Yarn-compatible workflows, reducing configuration choices during installation. It creates symlinked hook files and includes anti-overwrite checks intended to protect existing hooks. Configuration can use script names following the git-* convention or a top-level git configuration object, giving projects two package-based ways to declare pre-commit behavior.
The standout capability is straightforward sequential execution: multiple hook scripts can run in order from the project configuration. That makes the package suitable for checks such as formatting, linting, or other repository commands that belong before a commit. Its scope is deliberately narrow, with the category specification centered on the commit stage and documentation demonstrating pre-commit use. Teams needing broader lifecycle coverage, more extensive orchestration, or workflows outside JavaScript package managers should compare alternatives built for those requirements. Choose @vercel/git-hooks when a lightweight npm package and simple pre-commit configuration are the priority; choose another tool when hook-stage breadth is central.
Your product? Our editors can test @vercel/git-hooks in depth and publish a review, labelled as paid · from $99/mo →
@vercel/git-hooks pricing
@vercel/git-hooks fact sheet
| Free plan | Not verified |
|---|---|
| Paid from | Free |
| Hook stages | Commit |
| Shared configuration | Not verified |
| Monorepo support | Not verified |
| CI execution | Not verified |
| Package manager integration | Yes |
| Platform support | Not verified |
| Pricing | Open source |
| Website | github.com |
| Facts checked | 20 Oct 2026 |
Alternatives to @vercel/git-hooks
- hkAn open-source, CI-ready hook manager with broad lifecycle and monorepo coverage.8.9
- pre-commitA free, cross-platform framework for standardizing hooks across languages, repositories, and CI.8.8
- HuskyA free, cross-platform Git-hook manager with coverage for every client-side hook.7.9
See all @vercel/git-hooks alternatives →
Used @vercel/git-hooks? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used @vercel/git-hooks for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
@vercel/git-hooks is listed in our Git Hooks Management Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/vercel-git-hooks/"><img src="https://www.itechguides.com/best/badge/vercel-git-hooks.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update