
Pact JS
JavaScript and TypeScript library for contract testing HTTP APIs and asynchronous messaging systems with Pact.
Pact JS is the JavaScript and TypeScript library of Pact, a contract testing framework for HTTP APIs and asynchronous messaging systems. The README names HTTP/REST and event-driven systems as the systems it supports, and lists a configurable mock server among its features. It is installed from npm as a development dependency and runs on Node.js.
Worth knowing
PactFlow, described on the Pact homepage as a premium, fully hosted Pact Broker, is a separate product. The README says Pact JS integrates with the Pact Broker and PactFlow.
Identity
Rendering and deploy
- Install with
- npm3
Releases
Adoption
Sources
- 2026-11-16: links
pact.io/ - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/pact-foundation/pact-js - 2026-11-16: links, Categories, Install with
github.com/pact-foundation/pact-js/blob/master/README.md - 2026-11-16: Maintainer, License
github.com/pact-foundation/pact-js/blob/master/LICENSE - 2026-11-16: Runtime, Minimum runtime
github.com/pact-foundation/pact-js/blob/v17.1.4/package.json - 2026-11-16: Current major version, Last release, First release
api.github.com/repos/pact-foundation/pact-js/releases - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@pact-foundation/pact - 2026-11-16: Contributors
api.github.com/repos/pact-foundation/pact-js/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/%40pact-foundation%2Fpact