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)

    45 7

  2. pact-specification pact-specification Public

    Describes the pact format and verification specifications

    317 30

  3. pact-reference pact-reference Public

    Reference implementations for the pact specifications

    Rust 106 55

  4. pact_broker pact_broker Public

    Enables your consumer driven contracts workflow

    Ruby 745 192

  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 356

Repositories

Showing 10 of 92 repositories
  • mocha-pact Public

    An adaptor to allow you to easily run pact tests with Mocha

    pact-foundation/mocha-pact's past year of commit activity
    TypeScript 1 MIT 0 2 35 Updated Oct 11, 2026
  • pact-go Public

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

    pact-foundation/pact-go's past year of commit activity
    Go 955 MIT 111 29 (1 issue needs help) 18 Updated Oct 11, 2026
  • pact-workshop-message Public

    collection of pact message workshops in various languages

    pact-foundation/pact-workshop-message's past year of commit activity
    Rust 0 2 3 2 Updated Oct 11, 2026
  • pact-reference Public

    Reference implementations for the pact specifications

    pact-foundation/pact-reference's past year of commit activity
    Rust 106 MIT 55 45 (2 issues need help) 2 Updated Oct 11, 2026
  • rspec-pact-matchers Public

    Provides an RSpec matcher using the Pact matching logic

    pact-foundation/rspec-pact-matchers's past year of commit activity
    Ruby 0 MIT 0 1 2 Updated Oct 11, 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,820 356 88 (9 issues need help) 13 Updated Oct 11, 2026
  • pact-cli Public

    🔗 Pact in a single binary - Mock/Stub Server, Provider Verifier, Broker Client & Plugin CLI

    pact-foundation/pact-cli's past year of commit activity
    Rust 3 MIT 1 4 6 Updated Oct 11, 2026
  • pact-broker-cli Public

    A CLI client for the Pact Broker. Publish/retrieve pacts and verification results.

    pact-foundation/pact-broker-cli's past year of commit activity
    Rust 3 MIT 2 5 8 Updated Oct 11, 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 684 MIT 147 11 (1 issue needs help) 16 Updated Oct 10, 2026
  • docs.pact.io Public

    Pact documentation website

    pact-foundation/docs.pact.io's past year of commit activity
    HTML 17 105 17 (2 issues need help) 11 Updated Oct 10, 2026