Skip to content
@pact-foundation

Pact Foundation

The cross-language distributed contract testing framework.

Pact

Pact is the de-facto API contract testing tool. Replace expensive and brittle end-to-end integration tests with fast, reliable and easy to debug unit tests.
  • ⚡ Lightning fast
  • 🎈 Effortless full-stack integration testing - from the front-end to the back-end
  • 🔌 Supports HTTP/REST and event-driven systems
  • 🛠️ Configurable mock server
  • 😌 Powerful matching rules prevents brittle tests
  • 🤝 Integrates with Pact Broker / PactFlow for powerful CI/CD workflows
  • 🔡 Supports 12+ languages

Why use Pact? Contract testing with Pact lets you:

  • ⚡ Test locally
  • 🚀 Deploy faster
  • ⬇️ Reduce the lead time for change
  • 💰 Reduce the cost of API integration testing
  • 💥 Prevent breaking changes
  • 🔎 Understand your system usage
  • 📃 Document your APIs for free
  • 🗄 Remove the need for complex data fixtures
  • 🤷‍♂️ Reduce the reliance on complex test environments

Watch our series on the problems with end-to-end integrated tests, and how contract testing can help.

Pinned Loading

  1. roadmap roadmap Public

    Developer Relations @ Pact - Your map to the Pact landscape for all-comers (maintainers, contributors, users, newbies)

    43 7

  2. pact-specification pact-specification Public

    Describes the pact format and verification specifications

    304 28

  3. pact-reference pact-reference Public

    Reference implementations for the pact specifications

    Rust 98 50

  4. pact_broker pact_broker Public

    Enables your consumer driven contracts workflow

    Ruby 729 185

  5. pact-core-mock-server pact-core-mock-server Public

    In-process mock server for matching HTTP requests and generating responses from a pact file

    Rust 7 2

  6. pact-js pact-js Public

    JS version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.

    TypeScript 1.7k 354

Repositories

Showing 10 of 81 repositories
  • pact-python Public

    Python version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

    pact-foundation/pact-python’s past year of commit activity
    Python 624 MIT 144 46 (1 issue needs help) 5 Updated Sep 30, 2025
  • jest-pact Public

    A Pact adaptor for to allow you to easily run tests with Jest

    pact-foundation/jest-pact’s past year of commit activity
    TypeScript 81 MIT 12 4 10 Updated Sep 29, 2025
  • pact-js Public

    JS version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.

    pact-foundation/pact-js’s past year of commit activity
    TypeScript 1,704 354 99 (14 issues need help) 9 Updated Sep 29, 2025
  • pact-foundation/pact-5-minute-getting-started-guide’s past year of commit activity
    JavaScript 14 539 1 3 Updated Sep 29, 2025
  • pact-foundation/pact-event-bot’s past year of commit activity
    TypeScript 2 MIT 1 1 21 Updated Sep 29, 2025
  • pact-js-core Public

    Core binaries for pact-js, a Contract Testing Framework. NOTE: If you are looking to do Pact contract testing in node, you almost certainly want pact-js, not pact-node.

    pact-foundation/pact-js-core’s past year of commit activity
    TypeScript 151 MIT 79 5 5 Updated Sep 29, 2025
  • pact-js-cli Public

    The Broker CLI for Pact, but available to your node scripts

    pact-foundation/pact-js-cli’s past year of commit activity
    TypeScript 2 MIT 2 6 10 Updated Sep 29, 2025
  • pact-docker-cli Public

    Dockerised Amalgamated Pact CLI - Broker Client / Mock Server / Provider Verifier / Stub Server / Plugin / PactFlow AI

    pact-foundation/pact-docker-cli’s past year of commit activity
    Shell 14 MIT 13 3 4 Updated Sep 29, 2025
  • pact-broker-chart Public

    This repository houses the Pact Broker Helm Chart

    pact-foundation/pact-broker-chart’s past year of commit activity
    Smarty 14 MIT 22 2 1 Updated Sep 29, 2025
  • pact-broker-docker Public

    Dockerized Pact Broker

    pact-foundation/pact-broker-docker’s past year of commit activity
    Shell 114 MIT 109 2 4 Updated Sep 29, 2025