Hardhat
Reasonable, with limits. 6th of 10 blockchain libraries.
Hardhat is the Nomic Foundation's TypeScript environment for compiling, testing, debugging and deploying Ethereum smart contracts. It is not a client library for reading and writing chains. Hardhat 3 is stable, actively developed and a strong pick for TypeScript-first dApp teams, but Foundry is now the primary tool for most Solidity developers, and Hardhat's download growth trails the category.
Best for: Full-stack Ethereum teams who want contract compilation, Solidity and TypeScript tests, and deployments in one Node.js toolchain.
Scores
Overall6.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.8, likely 6.0 to 7.5
Hardhat 3 is a well-maintained, capable contract development environment and the best fit for TypeScript-first Ethereum teams. Foundry leads for Solidity-native testing and speed, and Hardhat's growth trails the median. It also does not replace a chain client library such as viem for reading and writing chains, which is this category's job, so it ranks below viem and Wagmi here.
- soliditylang.org/blog/2026/04/15/solidity-developer-survey-2025-results: Foundry is the majority choice and Hardhat is second.
- dev.to/pavelespitia/foundry-vs-hardhat-in-2026-which-solidity-toolchain-wins-20jd: 2026 comparison: Hardhat suits TypeScript and deployment workflows.
- github releasesLastYear: Very active development.
- medianDownloadsRatio: Ratio of 1.87 against the 4.1 median: losing ground.
GPT-6.2 Sol: 6.6, likely 5.6 to 7.7
Hardhat is a strong new-project choice when building, testing, and deploying EVM contracts is central to the work. Its active maintenance and TypeScript workflow support that choice, while Foundry leads primary framework use among surveyed Solidity developers. For the catalog's broader job of reading and writing chains, viem offers a more direct Ethereum client, so Hardhat's recommendation depends on how much contract development the project needs.
- hardhat.org/docs/getting-started: Shows the contract development workflow and its use of viem.
- viem.sh/docs/getting-started: Documents the direct Ethereum client API.
- soliditylang.org/survey-2025: Places Hardhat and Foundry in the framework market and viem among SDKs.
- github.com/NomicFoundation/hardhat/releases/tag/hardhat@3.22.0: Shows recent maintenance on the current stable release.
Needed by many3.1
How many developers need a tool for this job?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
Only developers who write and test EVM smart contracts need it, which is a niche within an already niche blockchain category. App developers who only read and write chains use client libraries such as viem instead. Within that group, its TypeScript-first approach suits a large share of full-stack teams.
- github description: A development environment for Ethereum software, not a chain client library.
- tryethernal.com/blog/evm-dev-frameworks-compared-2026: Positioned for full-stack dApp teams with TypeScript frontends.
GPT-6.2 Sol: 3.2, likely 2.1 to 4.3
Hardhat serves the subset of JavaScript and TypeScript developers who build or test EVM contracts. Its Node.js runtime and development focus narrow its use even within blockchain projects. The available survey measures Solidity developers, so it gives little precision about the share of JavaScript and TypeScript developers overall.
- hardhat.org/docs/getting-started: Documents the Ethereum contract workflow and Node.js requirement.
- soliditylang.org/survey-2025: Reports development frameworks and client libraries in separate questions.
Helps a lot7.1
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Hardhat 3 closes much of the gap with Foundry. It adds Solidity tests, fuzz and invariant testing, a Rust runtime, multichain types and Ignition deployments, and it keeps the best console.log debugging and plugin system. Foundry is still faster for compiling and testing. Some Hardhat 2 plugins have no Hardhat 3 version, and some errors are cryptic.
- hardhat.org/docs/hardhat3/whats-new: Hardhat 3 features: Solidity tests, EDR, chain types, ESM plugins.
- hackmd.io/@camoseed/rkogHcoKWg: 1inch migration: benefits, but coverage and tracer are missing and some errors are cryptic.
- tryethernal.com/blog/evm-dev-frameworks-compared-2026: Foundry compiles 2-5x faster, and Hardhat has the most mature plugin ecosystem.
- npm hasTypes: Ships TypeScript types.
GPT-6.2 Sol: 7.2, likely 6.1 to 8.3
Hardhat 3.22.0 combines Solidity and typed TypeScript tests with local forks, execution traces, and deployment tooling. Its docs, templates, and agent skills help with setup, though older Hardhat 2 examples use different APIs. Chain access in scripts commonly goes through viem or ethers.js plugins. An independent benchmark on 3.12.0 found faster test commands and slower builds than Foundry on one workload, leaving performance on the current release uncertain.
- github.com/NomicFoundation/hardhat/releases/tag/hardhat@3.22.0: Confirms the stable release and records fork and tracing fixes.
- hardhat.org/docs/guides/testing: Documents both test languages, coverage, gas statistics, and traces.
- hardhat.org/docs/getting-started: Shows the typed starter, deployment modules, and noninteractive setup.
- hardhat.org/docs/guides/build-with-ai: Provides agent skills for the viem and ethers.js setups.
- hackmd.io/uko26rvjTx-iD7ApVVO9Kg: 1inch documents changes to imports, plugins, and test setup.
- rick.build/blog/foundry-vs-hardhat-performance-benchmark: Measures mixed build and test performance on one Solidity project.
Holds up over time8.1
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Development is very active: 3,321 commits, 348 releases and 59 npm versions in the last year, from 459 contributors, with a stable major line out. The Nomic Foundation funds the work. Hardhat 2 has a published end-of-life date, which shows a planned migration, but the move to 3 was a large breaking change. Foundry's growing share is the main risk to the ecosystem moving towards Hardhat.
- github commitsLastYear / releasesLastYear: 3,321 commits and 348 releases in the last year.
- npm latestPublishedAt: Version 3.22.0 published on 2026-11-12.
- hardhat.org/docs/reference/hardhat-2-end-of-life.md: Planned end of life for Hardhat 2.
- Nomic Foundation: A non-profit foundation funds the maintainers.
GPT-6.2 Sol: 8.2, likely 7.0 to 9.1
The Nomic Foundation maintains Hardhat with a dedicated team, and the core npm package published 59 versions in a year. A November coverage fix went from report to release in 11 days, though the repository still has 518 open issues across its packages. Hardhat 2 has a published retirement timeline, and the changes users report when moving to 3 show that major upgrades can take real work. Hardhat also allows some breaking changes in minor versions, which leaves uncertainty about future upgrade costs.
- evidence.npm.versionsLastYear: 59 versions for the core package over the last year.
- evidence.github.openIssues: 518 open issues across the shared repository.
- nomic.foundation: Identifies the nonprofit team responsible for Hardhat.
- github.com/NomicFoundation/hardhat/pull/8800: Shows the November 1 report and November 9 merge.
- github.com/NomicFoundation/hardhat/releases/tag/hardhat@3.22.0: Shipped the coverage fix on November 12.
- hardhat.org/docs/reference/hardhat-2-end-of-life: Announces the Hardhat 2 retirement timeline and transition to 3.
- hackmd.io/uko26rvjTx-iD7ApVVO9Kg: Describes the work required to migrate a real project.
- hardhat.org/docs/reference/stability-guarantees: Documents exceptions to semantic versioning.
Used widely5.4
How many use it, and is that growing?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
Downloads were 2.2M in the last 4 weeks, up from 1.18M a year ago. That ratio of 1.87 is well below the 4.1 median, so Hardhat is losing ground. It has 36,669 dependent repos, a large count that comes mostly from older Hardhat 2 projects. Survey share held at 33% while Foundry grew.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 2.20M against 1.18M, a ratio of 1.87, below the 4.1 median.
- dependents repos: 36,669 repos and 4,495 packages.
- soliditylang.org/blog/2026/04/15/solidity-developer-survey-2025-results: 33% primary framework share (v3 18%, v2 15%), against 57% for Foundry.
GPT-6.2 Sol: 5.3, likely 4.3 to 6.4
Ecosyste.ms found 36,669 dependent repositories and 4,495 npm packages, consistent with use by tens of thousands of projects. Four-week installs rose from 1.18 million to 2.20 million, or 1.87×, below the catalog median of 4.1× and viem's 4.50×. CI repeats installs, both major versions contribute to the package total, and the 8,518 stars cover the shared repository. The Solidity survey shows substantial use, but the available figures leave the rate of new Hardhat 3 adoption uncertain.
- evidence.dependents: Counts observed repository and npm dependents.
- evidence.npm.downloadsLast4Weeks and evidence.npm.downloadsSame4WeeksYearAgo: Shows 1.87× year-over-year install growth.
- medianDownloadsRatio and peers: Catalog median is 4.1× and viem grew 4.50×.
- evidence.github.stars and evidence.bluesky: Repository has 8,518 stars and one automated Bluesky mention.
- npmjs.com/package/hardhat?activeTab=versions: Shows separate Hardhat 2 and 3 tags and ongoing downloads for both.
- soliditylang.org/survey-2025: Primary framework share was 18% for v3, 15% for v2, and 57% for Foundry.
Vouched for7.3
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
The official Solidity survey shows that a third of Solidity developers use it as their primary framework. Independent write-ups recommend it for TypeScript and deployment workflows. 1inch documented moving back to Hardhat 3 from Forge. Survey satisfaction trails Foundry, and the comparison blogs are mostly low-authority sources.
- soliditylang.org/blog/2026/04/15/solidity-developer-survey-2025-results: 33% primary framework share in the 2025 survey.
- hackmd.io/@camoseed/rkogHcoKWg: 1inch adopted Hardhat 3 for a production repository.
- tryethernal.com/blog/evm-dev-frameworks-compared-2026: Common hybrid setup: Foundry for tests, Hardhat for TypeScript and deployments.
GPT-6.2 Sol: 8.0, likely 6.9 to 9.0
OpenZeppelin ships a Hardhat 3 upgrades plugin, Chainlink maintains a Hardhat 3 CCIP starter kit, and iden3 uses it in its contract repository. 1inch documented adopting it for a concrete migration, including where the change cost time. These are direct endorsements of the contract workflow, while the independent performance evidence covers one workload and the survey measures usage rather than satisfaction.
- github.com/OpenZeppelin/openzeppelin-upgrades/releases: Documents a stable upgrades plugin release requiring Hardhat 3.
- docs.chain.link/chainlink-local/learn/starter-kit-examples: Documents Chainlink's Hardhat 3 integration and example tests.
- raw.githubusercontent.com/iden3/contracts/master/package.json: Declares Hardhat 3 and uses it for contract builds, tests, and deployment scripts.
- hackmd.io/uko26rvjTx-iD7ApVVO9Kg: Reports 1inch's first-hand experience migrating Merkle Distribution.
- rick.build/blog/foundry-vs-hardhat-performance-benchmark: Publishes independent measurements with pinned versions and settings.
- soliditylang.org/survey-2025: Provides a current survey of framework use among Solidity developers.
Safe7.4
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
OSV lists no advisories, the npm licence is MIT, and the package has 18 direct dependencies. No Scorecard is available, so release hardening cannot be checked. Attackers have targeted Hardhat users with fake typosquat packages, which is a risk around the package rather than in it. As a dev tool it usually runs only in development and CI.
- advisories total: 0 advisories.
- npm dependencies / license: 18 dependencies, MIT licence.
- scorecard: No OpenSSF Scorecard data.
- hackerNews top: Malicious npm campaign that imitated Hardhat packages.
GPT-6.2 Sol: 7.8, likely 6.4 to 8.8
The official package is MIT licensed, and the snapshot lists zero OSV advisories. The release workflow uses npm Trusted Publishing and enables provenance, with a review step before publishing. The 18 direct dependencies include a native runtime, and the reported malware campaign involved separate packages impersonating Hardhat. The missing Scorecard, lack of a GitHub security policy, and unverified number of release approvers leave gaps in the assessment.
- evidence.npm.license and evidence.npm.dependencies: MIT license and 18 direct dependencies.
- evidence.advisories and evidence.scorecard: Zero recorded OSV advisories and no collected Scorecard.
- github.com/NomicFoundation/hardhat/blob/hardhat%403.22.0/.github/workflows/release.yml: Shows review, OIDC publishing, and provenance configuration at the release tag.
- hardhat.org/docs/reference/edr-simulated-networks: Documents the native EDR simulation runtime.
- github.com/NomicFoundation/hardhat/security: Shows no repository security policy or published GitHub advisories.
- socket.dev/blog/malicious-npm-campaign-targets-ethereum-developers: Identifies separate npm packages impersonating Hardhat.
Good
- Hardhat 3 adds native Solidity tests with fuzz and invariant testing, on a Rust-based runtime (EDR), while keeping TypeScript tests.
- Hardhat Ignition gives declarative deployments that can resume after an interruption, and gas statistics are built in.
- Solidity console.log debugging, clear stack traces and a large plugin ecosystem fit TypeScript frontends well.
- A funded foundation team ships it very actively, with hundreds of releases a year.
Bad
- Moving from Hardhat 2 to 3 breaks things: the config must be ESM, plugins must be registered, and hardhat-deploy, solidity-coverage and hardhat-tracer were dropped or replaced.
- Foundry is faster and is the primary framework for 57% of Solidity developers, against 33% for Hardhat.
- It only serves EVM smart-contract development. To read and write chains from an app you still need viem or ethers.
- Some errors are cryptic. Users report unrelated HHE errors caused by a missing await on a matcher.
The numbers
- npm downloads, 4 weeks
- 2.2M +87% in a year
- GitHub stars
- 8.5k
- Commits, 12 months
- 3.3k
- npm version
- 3.22.0 Nov 2026
- Versions, 12 months
- 59
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (NomicFoundation/hardhat), npm (hardhat), OSV and the OpenSSF Scorecard.
Blockchain libraries
- 8.9viem
- 8.2Wagmi
- 8.0Solana Kit
- 7.1Ox
- 6.9bitcoinjs-lib
- 6.7Hardhat
- 6.6ethers.js
- 6.3Solana web3.js
- 5.6thirdweb
- 1.7web3.js