stoplightio/prism

Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 hour ago
Added to GitGenius on September 13th, 2026
Created on March 18th, 2016
Open Issues & Pull Requests: 148 (+0)
GitHub issues: Enabled
Number of forks: 414
Total Stargazers: 5,033 (+0)
Total Subscribers: 51 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.8 days
Mean response time: 78.4 days
90th percentile: 144.1 days
Tracked items: 53

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 52
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 632 days
Stale 30+ days: 51
Stale 90+ days: 49

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • triaged (15)
  • p/medium (5)
  • t/enhancement (5)
  • help wanted (4)
  • t/bug (4)
  • t/feature (4)
  • team/platinum-falcons (4)
  • bug (3)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Prism is a command-line HTTP server that turns OpenAPI and Postman Collection specifications into mock servers with validation and contract testing capabilities.

Prism solves the problem of needing a working API before implementation is complete. It reads OpenAPI v2, OpenAPI v3.0, OpenAPI v3.1, or Postman Collection files and generates a mock server that responds with realistic data based on the specification. The tool operates in two primary modes: a mock server that generates responses from the specification, and a validation proxy that intercepts traffic to check whether actual API implementations match their documented contracts. Request validation and content negotiation are built into both modes.

Teams should adopt Prism when they need to parallelize API development and consumer work, test API contracts before backend implementation, or validate that live APIs conform to their specifications. It works well in continuous integration pipelines and for local development. The tool can run standalone from the command line or be integrated into testing workflows. Prism is available both as a self-hosted open-source tool and through hosted options provided by Stoplight, though the README does not compare the self-hosted version to other mock server generators.

Development on the project shows consistent engagement with community discussions and documented issues. The codebase is maintained in TypeScript and supports multiple Node.js versions with specific minimum requirements. The project maintains comprehensive documentation covering installation, mocking behavior, and proxy operation, alongside a dedicated getting-started guide.