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)

    44 7

  2. pact-specification pact-specification Public

    Describes the pact format and verification specifications

    312 29

  3. pact-reference pact-reference Public

    Reference implementations for the pact specifications

    Rust 101 50

  4. pact_broker pact_broker Public

    Enables your consumer driven contracts workflow

    Ruby 743 186

  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 10 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.8k 351

Repositories

Showing 10 of 86 repositories
  • 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 2 6 Updated Mar 26, 2026
  • pact-workshop-message Public

    collection of pact message workshops in various languages

    pact-foundation/pact-workshop-message’s past year of commit activity
    Makefile 0 0 3 10 Updated Mar 26, 2026
  • roadmap Public

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

    pact-foundation/roadmap’s past year of commit activity
    44 MIT 7 64 6 Updated Mar 26, 2026
  • pact-broker-docker Public

    Dockerized Pact Broker

    pact-foundation/pact-broker-docker’s past year of commit activity
    Shell 116 MIT 111 2 13 Updated Mar 26, 2026
  • 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 662 MIT 144 15 (3 issues need help) 9 Updated Mar 26, 2026
  • pact_broker Public

    Enables your consumer driven contracts workflow

    pact-foundation/pact_broker’s past year of commit activity
    Ruby 743 MIT 186 99 (1 issue needs help) 21 Updated Mar 26, 2026
  • docs.pact.io Public

    Pact documentation website

    pact-foundation/docs.pact.io’s past year of commit activity
    HTML 17 106 18 (2 issues need help) 14 Updated Mar 26, 2026
  • pact.io Public

    Pact Foundation Website

    pact-foundation/pact.io’s past year of commit activity
    HTML 219 89 12 (1 issue needs help) 42 Updated Mar 26, 2026
  • pact-standalone Public

    Standalone Amalgamated Pact CLI - Broker Client / Mock Server / Provider Verifier / Stub Server / Plugin

    pact-foundation/pact-standalone’s past year of commit activity
    Shell 45 MIT 36 2 (2 issues need help) 5 Updated Mar 26, 2026
  • 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,750 351 98 (13 issues need help) 22 Updated Mar 26, 2026