Pact
JS version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems. observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 20
- age_days: 3743
- days_rel: 7
- days_push: 7
- n_releases_24m: 24
Adoption not part of the score
1803 stars · 356 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Pact is a code-first contract testing framework that lets consumers define expected interactions with providers via a DSL and mock service, then verifies providers against those contracts. It supports HTTP, gRPC, and async message integrations across many languages, and integrates with the Pact Broker for CI/CD orchestration.
Use cases
- test that my API client and backend service stay compatible without end-to-end environments
- write consumer driven contract tests for REST APIs
- verify a provider against consumer expectations in CI
- contract test Kafka message integrations
- replace brittle integration test suites for microservices
- orchestrate safe deployments with can-i-deploy and the Pact Broker
- contract test gRPC services
When to choose
- you have multiple services or a frontend/backend pair that communicate over HTTP, gRPC, or message queues
- you want fast, isolated integration testing instead of full end-to-end environments
- you need to independently deploy microservices with confidence they remain compatible
- you want contract verification wired into CI/CD pipelines
When to avoid
- you are testing a single monolithic application with no inter-service integrations
- you need full end-to-end system or browser UI testing
- your integrations are with third-party APIs you cannot run or verify locally
Facets
framework · maturity active
testing e2e-testing mocking http-client middleware testing microservices apis developer-tools cross-platform ruby jvm python go dotnet cli contract-testing consumer-driven-contracts pact-broker microservices-testing api-testing message-pacts grpc hacktoberfest devops nodejs
3 sources
- readme: https://github.com/pact-foundation/pact-js · fetched 2026-08-28 · 950251e45aae
- homepage: https://pact.io · fetched 2026-08-29 · f01a6b3b2449
- site_page: https://docs.pact.io · fetched 2026-08-29 · 5ff59a543180
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pact-foundation/pact-js | sdk | 99 |
| pact-foundation/pact-ruby | sdk | 98 |
| pact-foundation/pact-jvm | sdk | 99 |
For agents
markdown · JSON · MCP: product_card(name="pact-foundation/pact-js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem