Suggest a tool

Pact JS

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

What Pact JS is

Pact JS is the Node.js implementation of Pact for consumer-driven contract testing of HTTP and event-driven systems. Consumer tests use the PactV3 class and MatchersV3 helpers to define expected requests and responses against a mock server. Provider tests use the Verifier class to check a running service against pact files. Versions 10 and later support Pact specification versions 2, 3 and 4. The documentation also covers plugins, GraphQL and XML. It ships as the @pact-foundation/pact npm package. From v12 it requires Node 16 or later. Supported platforms include macOS, Linux with glibc or musl, and Windows on x86_64.

Written from the project's README, read , and its documentation (see sources).

Category
Contract testing
License
MIT
Language
TypeScript
Changelog
Releases on GitHub

Repository metrics

Repository metrics
Stars1,8151
Forks3571
Open issues and PRs1001
Contributors1231
Commits in the last 90 days1101
Last commit2026-09-221
Last releasev17.1.4, 2026-09-071
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 contract testing tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Pact JS's, with its source.

Comparisons

How to install

npm install --save-dev @pact-foundation/pact
From README, read .

Questions

Is Pact JS open source?

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

Is Pact JS maintained?

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

How many GitHub stars does Pact JS have?

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

What language is Pact JS written in?

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

How do I install Pact JS?

The README gives this command: npm install --save-dev @pact-foundation/pact

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. LICENSE file, read
  6. README, read