aicoolies logo
Pact logo
Pact logo

Pact

Consumer-driven contract testing for APIs and microservices

open sourceupdated Apr 21, 2026

Pact is the de-facto contract testing framework for HTTP APIs and event-driven systems across 12+ languages. It verifies that services can communicate correctly by testing API contracts from the consumer's perspective before deployment, catching breaking changes in microservice architectures. Maintained by Pact Foundation with 7,000+ combined GitHub stars across implementations. PactFlow offers a managed SaaS broker. Used widely in enterprise microservice teams to prevent integration failures.

Pact solves a critical gap in microservice testing: verifying that services actually work together without running expensive end-to-end test suites. The consumer-driven approach means the service that calls an API defines what it expects, and the providing service verifies it can meet those expectations. This catches breaking changes, missing fields, and type mismatches at build time rather than in production — a fundamental requirement for teams operating dozens or hundreds of interconnected services.

The framework supports consumer and provider testing across JavaScript, TypeScript, Java, Python, Go, Ruby, .NET, Rust, Swift, PHP, and more through the shared Rust core (pact-reference). For event-driven architectures, Pact supports message-based interactions alongside traditional HTTP. The contract broker (self-hosted or managed via PactFlow) stores and shares contracts between teams, enabling can-i-deploy checks in CI/CD pipelines that prevent incompatible versions from reaching production.

Pact is maintained by the Pact Foundation with 7,000+ combined stars across its language implementations. The core specification and most libraries are MIT licensed. PactFlow (commercial SaaS) adds team management, webhook integrations, and enterprise features. Contract testing is an entirely missing category in many developer tool directories, yet it is critical infrastructure for any team running microservices — Pact is the established standard in this space.

Pricing

Free open-source; PactFlow SaaS from $99/mo

Platforms

Libraries for 12+ languages; self-hosted or PactFlow managed broker

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

MCPJam logo

MCPJam Inspector

Test and debug MCP servers before they ship

Open-source platform for inspecting, debugging and regression-testing MCP servers, MCP Apps and ChatGPT apps, with OAuth and protocol conformance for local and CI workflows.

freemiumOpen SourceTelemetry
MCP for Unity logo

MCP for Unity

Open-source MCP bridge between AI assistants and the Unity Editor

MCP for Unity is CoplayDev’s MIT-licensed bridge between MCP-compatible AI assistants and the Unity Editor. It exposes tools for assets, scenes, GameObjects, scripts, tests, profiling, and build-oriented workflows. The community project supports Unity 2021.3 LTS through 6.x and is explicitly not affiliated with Unity Technologies.

Open Source
XcodeBuildMCP logo

XcodeBuildMCP

Sentry-maintained MCP server and CLI for Xcode builds, simulators, and tests

XcodeBuildMCP is a Sentry-maintained, MIT-licensed MCP server and CLI for agent-assisted iOS and macOS development. It lets MCP-compatible coding agents run Xcode build and test workflows, manage simulators, inspect failures, and work through Homebrew, npm, or on-demand client configuration, with documented Sentry telemetry controls for teams that need an opt-out.

Open SourceTelemetry
iFixAi logo

iFixAi

Open-source diagnostic for AI operational misalignment

iFixAi is an Apache-2.0 diagnostic tool for scoring AI agents and models against operational-misalignment risks such as hallucination, manipulation, sabotage, sandbagging, and oversight evasion.

Open Source
Inspect AI parent UK AISI mark

Inspect AI

UK AI Security Institute framework for LLM safety evaluations

Inspect AI is an MIT-licensed framework from the UK AI Security Institute for running large language model evaluations, including tool use, multi-turn dialogue, model-graded scoring, and reusable evaluation tasks.

Open Source
Safari MCP Server parent Safari mark

Safari MCP Server

Apple's Safari-native MCP server for web debugging agents

Safari MCP Server is Apple's safaridriver-based MCP server in Safari Technology Preview, giving compatible coding agents local access to Safari page content, console logs, network requests, screenshots, JavaScript evaluation, interactions, viewport controls, and accessibility/performance checks.

freeTelemetry

Used in Stacks

Comparisons

Pact vs Keploy — Consumer-Driven Contract Testing vs Traffic-Based API Test Generation

Pact and Keploy both prevent API integration failures, but through fundamentally different approaches. Pact is the established standard for consumer-driven contract testing, where the API consumer defines expectations that the provider verifies. Keploy generates API tests automatically from real production traffic. This comparison helps microservice teams choose between contract-first safety and traffic-based test generation.

PactKeploy

FAQ

What is Pact?

Pact is the de-facto contract testing framework for HTTP APIs and event-driven systems across 12+ languages. It verifies that services can communicate correctly by testing API contracts from the consumer's perspective before deployment, catching breaking changes in microservice architectures. Maintained by Pact Foundation with 7,000+ combined GitHub stars across implementations. PactFlow offers a managed SaaS broker. Used widely in enterprise microservice teams to prevent integration failures.

Is Pact free?

Yes — Pact is open source and free to use. Free open-source; PactFlow SaaS from $99/mo

Is Pact open source?

Yes — Pact is open source.

What are the best Pact alternatives?

The top editor-verified Pact alternatives are Keploy, Playwright, Stryker Mutator.