# Hardhat: 6.7 out of 10

Reasonable, with limits. 6th of 10 in [Blockchain libraries](https://elestia.ai/opensource/web3/index.md).

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

- **Overall: 6.7** (likely 5.8 to 7.6)
  - Claude Opus 5.5 (6.8): 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.
  - GPT-6.2 Sol (6.6): 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.
- **Needed by many: 3.1** (likely 2.1 to 4.2)
  - Claude Opus 5.5 (3.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.
  - GPT-6.2 Sol (3.2): 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.
- **Helps a lot: 7.1** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.2): 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.
- **Holds up over time: 8.1** (likely 7.0 to 9.1)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (8.2): 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.
- **Used widely: 5.4** (likely 4.4 to 6.5)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (5.3): 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.
- **Vouched for: 7.3** (likely 6.2 to 8.3)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (8.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.
- **Safe: 7.4** (likely 6.2 to 8.4)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.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.

## 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

- Downloads, 4 weeks: 2.2M
- In a year: +87%
- GitHub stars: 8.5k
- Commits, 12 months: 3.3k
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/NomicFoundation/hardhat
- npm: https://www.npmjs.com/package/hardhat

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
