ModelFarebeta
Back to AI Toolkit

Pact JS

Check that API consumers and providers agree on their contracts.

Toolkit

Testing & QA · Documentation reviewed 2026-11-10. Not independently tested.

When it helps

Independently deployed services that need early warning when HTTP or messaging interfaces change.

What to consider

The repository LICENSE is MIT, although GitHub does not identify a single license automatically. Contract tests complement integration tests. Package-install analytics have a documented SCARF_ANALYTICS=false opt-out.

Getting started

Install the Pact package, write consumer expectations, then verify them against the provider. Add a broker only when you need shared contract publication and history.

Access & costs

Runs
Local / Self-hosted
External account
Optional
API key
Optional
Costs
Local or service costs

Local contract tests need no external account. Optional self-hosted or managed broker publication requires access configuration; managed services can charge separately.

  • Supported Node.js and platform
  • Consumer tests and provider verification setup
  • Optional contract broker

Repository evidence

Stars: 1,827 · License: Check repository terms

Last code push: 2026-11-21

Statistics retrieved: 2026-11-23T00:42:59+00:00

Counts are snapshots, not live rankings. Review the repository license and any hosted-service terms before adopting it.

Adding model calls?

Plan the tokens, retries, and fallback costs before connecting your tools.

Open the planner