Suggest a tool

Prism vs Pact Go: open-source contract testing tools compared

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

Summary

Prism: OpenAPI mock server and validation proxy for API mocking and contract testing, run from the command line.

Pact Go: Go library for Pact consumer tests and provider verification, which calls Rust-built C shared libraries and needs cgo enabled.

Both are listed under Contract testing. The table gives repository metrics from the GitHub API with their fetch date, then the documented facts used for every comparison in this category, each linked to the README or docs page it comes from. A cell reads "not documented" when the fact was not found in the project's documentation (1 of 10 fact cells here); that does not mean the feature is absent.

Side by side

Prism and Pact Go: metrics and documented facts, in the fixed row order used for contract testing comparisons.
FactPrismPact Go
Stars5,03419551
Forks41411111
Contributors1121631
Last release2026-07-1712026-09-161
Last commit2026-09-2112026-09-211
Commits in 90 days231391
LicenseApache-2.01MIT1
Primary languageTypeScript1Go1
Statusactive1active1
Languages for writing testsnot documentednot found in the project's documentation as of Go (consumer package github.com/pact-foundation/pact-go/v2/consumer) source: README
Contract or spec formatsOpenAPI v3.1, v3.0 and v2.0 (Swagger); Postman Collections source: READMEPact specification versions 2, 3 and 4 (pact-go 2.0.x) source: README
ProtocolsHTTP source: READMEHTTP/REST and event-driven systems source: README
CI integrationRuns standalone or in continuous integration source: READMECI/CD workflows through Pact Broker source: README
Install methodnpm (@stoplight/prism-cli), standalone binaries, Docker image stoplight/prism source: Docs: InstallationGo module (go get github.com/pact-foundation/pact-go/v2) source: README

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

When each fits

Written from each project's documented scope, not from preference. Neither tool is ranked.

Prism

Fits projects that mock APIs or test contracts from OpenAPI documents; its README describes mock servers and a validation proxy for API consumers and developers. source: README

Pact Go

Fits projects that write consumer-driven contract tests for APIs in Go; its README describes a dedicated mock server started for each consumer test. source: README

More on these tools

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: repository, read
  3. GitHub REST API: contributors, read
  4. GitHub REST API: contributors, read
  5. GitHub REST API: latest release, read
  6. GitHub REST API: latest release, read
  7. GitHub REST API: commits, read
  8. GitHub REST API: commits, read
  9. README, read
  10. README, read
  11. Docs: Installation, read

Documented facts collected 2026-09-22. See the methodology for how metrics and facts are gathered.