Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Chai

BDD/TDD assertion library for Node.js and browsers with expressive syntax.

TestingNPM

GitHubWebsite

1. License

License from npm.

github.com/chaijs/chai

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Chai does

BDD/TDD assertion library for Node.js and browsers with expressive syntax.

Chai popularity

76 / 100
Gid Score, #190 overall
222M
downloads a week, npm
8,264
GitHub stars
20
agent projects use it
Chai: downloads per weeknpm, chai 221,787,457
Chai: GitHub starschaijs/chai 8,264

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Chai is used

  • Chai is a dependency in 20 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.4% of the 4,867 JavaScript/TypeScript ones), #27 of 122 in testing.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 385; those are left out of every share on this page.
  • The most used alternative in our scan is Jest (396 projects).
  • Projects that use it most often also use Mocha (65.0%), ts-node (45.0%), Sinon.JS (40.0%).

By coding agent

11 projects, 0.5%
10 projects, 0.3%
7 projects, 0.2%

Often used with

In 65.0% of its projects
In 45.0% of its projects
In 40.0% of its projects
In 55.0% of its projects
In 20.0% of its projects
In 20.0% of its projects
In 20.0% of its projects
In 20.0% of its projects

More about Chai

Funding
  • Open Collective: https://opencollective.com/chaijs

See all

More in Testing

Alternatives

Chai This page

MITGid 76222M/wk

Jest

Delightful JavaScript testing framework with minimal configuration.

MITGid 8663.2M/wk

Compare Chai with another tool

Get started

Install it.

npm install chai

No step-by-step start for Chai yet: we have not written its hand-checked card.