Used in agent projects
305
2.4% of 12,697 public repos built with AI coding agents
Rank in testing
#7 of 40
by use in those projects
Downloads
14M
npm, last 7 days, chai
GitHub stars
8,265
last push Oct 5, 2026
How Chai is used
Chai is a dependency in 305 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (2.4%), #7 of 40 in testing. The most used alternative there is Vitest. Projects that use it most often also use Mocha (83.3%), Solana Web3.js (73.1%), ts-mocha (61.3%).
Often used with Chai
| Mocha | 83.3% of Chai projects · 37.6× more than average |
|---|---|
| Solana Web3.js | 73.1% of Chai projects · 4.4× more than average |
| ts-mocha | 61.3% of Chai projects · 40.8× more than average |
| Solana SPL Token | 52.8% of Chai projects · 7.3× more than average |
| Anchor | 47.9% of Chai projects · 13.9× more than average |
| Prettier | 57.7% of Chai projects · 3.3× more than average |
| TypeScript | 88.2% of Chai projects · 1.6× more than average |
| ts-node | 34.1% of Chai projects · 5.0× more than average |
By coding agent
| Claude Code | 0.4% of projects set up for it |
|---|---|
| GitHub Copilot | 0.5% of projects set up for it |
| Cursor | 0.4% of projects set up for it |
Share of public repos configured for each agent that list Chai as a dependency.
Install
| Package | npm install chai |
|---|---|
| Main stacks | Rust (181), TypeScript / JavaScript (103), Next.js (16), Python (2) |
| Example projects | buffalojoec/arb-program, m8s-lab/pump-fun-smart-contract, blockworks-foundation/mango-v4, ironaddicteddog/anchor-amm, zeta-chain/toolkit |
Alternatives to Chai
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| 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 | — |
| Mocha npm Feature-rich JavaScript test framework for Node.js and browsers. |
281 (2.2%) | 12.6M | 22.9K | MIT |
| ts-mocha npm Mocha wrapper for running TypeScript tests directly with ts-node without compilation. |
191 (1.5%) | 573K | 196 | MIT |