Suggest a tool

Chai

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

What Chai is

Chai is a BDD and TDD assertion library for Node.js and the browser. It can be paired with any JavaScript testing framework. It offers three assertion styles: assert, expect and should. Each style can be imported as a local variable or registered globally. With Mocha, a style is registered through the --require option. In the browser, the index.js file from the npm package loads as an ES module. A plugin architecture extends Chai's assertions and interfaces. The project maintains a list of plugins on its documentation site.

Written from the project's README, read .

Category
Unit testing and test runners
License
MIT
Language
JavaScript
Changelog
Releases on GitHub

Repository metrics

Repository metrics
Stars8,2691
Forks7251
Open issues and PRs931
Contributors2031
Commits in the last 90 days341
Last commit2026-09-211
Last releasev6.2.2, 2025-12-221
Fetched

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

Status

activeLast commit within 90 days of the fetch date.

Computed from the last commit date and the archive flag on the fetch date. See the status rules.

Alternatives

Listed unit testing and test runners tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Chai's, with its source.

How to install

npm install --save-dev chai
From README, read .

Questions

Is Chai open source?

Yes. Chai is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.

Is Chai maintained?

On 2026-09-22, the last commit to the default branch was on 2026-09-21, so the listed status is active. Rule: Last commit within 90 days of the fetch date.

How many GitHub stars does Chai have?

8,269 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.

What language is Chai written in?

The repository's primary language, as reported by the GitHub API, is JavaScript.

How do I install Chai?

The README gives this command: npm install --save-dev chai

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: commits, read
  3. GitHub REST API: latest release, read
  4. GitHub REST API: contributors, read
  5. README, read