# hardhat

> Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

Latest version **3.16.0** (published 2026-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install hardhat
pnpm add hardhat
yarn add hardhat
bun add hardhat
```

Provides the command `hardhat`.

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.16.0 |
| Published | 2026-09-07 |
| First published | 2012-05-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 18 |
| Unpacked size | 3.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8505 |
| Author | Nomic Foundation |
| Maintainers | alcuadrado |
| Keywords | ethereum, smart-contracts, hardhat |

## Links

- npm: https://www.npmjs.com/package/hardhat
- Repository: https://github.com/NomicFoundation/hardhat
- Homepage: https://hardhat.org
- Issues: https://github.com/NomicFoundation/hardhat/issues
- npm.io page: https://npm.io/package/hardhat

## Dependencies (18)

- [ws](https://npm.io/package/ws.md) ^8.21.1
- [tsx](https://npm.io/package/tsx.md) ^4.23.1
- [zod](https://npm.io/package/zod.md) ^3.23.8
- [p-map](https://npm.io/package/p-map.md) ^7.0.6
- [semver](https://npm.io/package/semver.md) ^7.8.5
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.6.0
- [chokidar](https://npm.io/package/chokidar.md) ^5.0.0
- [enquirer](https://npm.io/package/enquirer.md) ^2.3.0
- [@sentry/core](https://npm.io/package/@sentry/core.md) ^9.4.0
- [resolve.exports](https://npm.io/package/resolve.exports.md) ^2.0.3
- [micro-eth-signer](https://npm.io/package/micro-eth-signer.md) ^0.14.0
- [@nomicfoundation/edr](https://npm.io/package/@nomicfoundation/edr.md) 0.19.0
- [ethereum-cryptography](https://npm.io/package/ethereum-cryptography.md) ^2.2.1
- [@nomicfoundation/hardhat-utils](https://npm.io/package/@nomicfoundation/hardhat-utils.md) ^4.1.6
- [@nomicfoundation/hardhat-errors](https://npm.io/package/@nomicfoundation/hardhat-errors.md) ^3.0.17
- [@nomicfoundation/hardhat-vendored](https://npm.io/package/@nomicfoundation/hardhat-vendored.md) ^3.0.4
- [@nomicfoundation/hardhat-zod-utils](https://npm.io/package/@nomicfoundation/hardhat-zod-utils.md) ^3.0.5
- [@nomicfoundation/solidity-analyzer](https://npm.io/package/@nomicfoundation/solidity-analyzer.md) ^0.1.1

## Recent versions

- 3.16.0 (latest) — 2026-09-07
- 2.29.1 (hh2) — 2026-08-18
- 3.15.0 — 2026-08-27
- 3.14.0 — 2026-08-20
- 3.13.0 — 2026-08-12
- 3.12.0 — 2026-07-30
- 3.11.1 — 2026-07-23
- 2.29.0 — 2026-07-21
- 3.11.0 — 2026-07-20
- 3.10.0 — 2026-07-16
- 3.9.1 — 2026-07-02
- 3.9.0 — 2026-06-08
- 3.8.0 — 2026-06-04
- 3.7.0 — 2026-05-28
- 3.6.0 — 2026-05-26
- … 267 more at https://npm.io/package/hardhat/versions

## README

![](https://raw.githubusercontent.com/NomicFoundation/hardhat/main/img/hardhat-header.png)

Hardhat is an Ethereum development environment for professionals. It facilitates performing frequent tasks, such as running tests, automatically checking code for mistakes or interacting with a smart contract.

Built by the [Nomic Foundation](https://nomic.foundation/) for the Ethereum community.

## Getting started

To install Hardhat and initialize a new project, run the following commands in an empty directory:

```bash
npx hardhat --init
```

This will take you through an interactive setup process to get started.

## Learn more

To learn more about Hardhat, check out the [documentation](https://hardhat.org/docs/).

---
_Source: https://npm.io/package/hardhat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
