Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

@nomicfoundation/hardhat-chai-matchers

Hardhat plugin with custom chai matchers for testing smart contracts.

Testing npm MIT

Used in agent projects
36
0.3% of 12,697 public repos built with AI coding agents
Rank in testing
#22 of 40
by use in those projects
Downloads
156K
npm, last 7 days, @nomicfoundation/hardhat-chai-matchers
GitHub stars
8,511
last push Oct 10, 2026

How @nomicfoundation/hardhat-chai-matchers is used

@nomicfoundation/hardhat-chai-matchers is a dependency in 36 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #22 of 40 in testing. The most used alternative there is Vitest. Projects that use it most often also use Hardhat (100.0%), Hardhat Network Helpers (94.4%), Hardhat Toolbox (91.7%).

Often used with @nomicfoundation/hardhat-chai-matchers

Hardhat100.0% of @nomicfoundation/hardhat-chai-matchers projects · 56.9× more than average
Hardhat Network Helpers94.4% of @nomicfoundation/hardhat-chai-matchers projects · 260.7× more than average
Hardhat Toolbox91.7% of @nomicfoundation/hardhat-chai-matchers projects · 127.9× more than average
ethers.js88.9% of @nomicfoundation/hardhat-chai-matchers projects · 19.7× more than average
OpenZeppelin Contracts86.1% of @nomicfoundation/hardhat-chai-matchers projects · 65.9× more than average
@typechain/hardhat86.1% of @nomicfoundation/hardhat-chai-matchers projects · 303.7× more than average
Hardhat ethers Plugin83.3% of @nomicfoundation/hardhat-chai-matchers projects · 182.4× more than average
Hardhat Verify83.3% of @nomicfoundation/hardhat-chai-matchers projects · 225.1× more than average

Install

Packagenpm install @nomicfoundation/hardhat-chai-matchers
Main stacksTypeScript / JavaScript (20), Next.js (15), Rust (1)
Example projectszeta-chain/toolkit, kreskohq/kresko-protocol, quiknode-labs/earn-smart-contracts, Cyfrin/2024-07-biconomy

Alternatives to @nomicfoundation/hardhat-chai-matchers

All testing

Tool Used in agent projectsDownloads / wk GitHub starsLicense
Vitest npm
Next-generation testing framework powered by Vite with native ESM.
1,549 (12.2%) 123M 17.2K MIT
Playwright (JavaScript) npm
Cross-browser automation library for end-to-end testing.
1,117 (8.8%) 74.2M 97.4K Apache-2.0
Testing Library npm
Testing utilities for React encouraging testing user behavior.
915 (7.2%) 68.7M 19.7K MIT
Jest npm
Delightful JavaScript testing framework with minimal configuration.
702 (5.5%) 46.3M 45.6K MIT
jsdom npm
JavaScript implementation of web standards for testing DOM interactions.
681 (5.4%) 112M 21.7K MIT
pytest pypi
Simple, powerful Python testing framework with fixtures and plugins.
330 (2.6%) 196M 14.6K —
Chai npm
BDD/TDD assertion library for Node.js and browsers with expressive syntax.
305 (2.4%) 14M 8,265 MIT
Mocha npm
Feature-rich JavaScript test framework for Node.js and browsers.
281 (2.2%) 12.6M 22.9K MIT
Is @nomicfoundation/hardhat-chai-matchers right for your project? Ask AgentGid →