{"library":"connect-prism","type":"library","category":null,"description":"Connect-prism is a Node.js middleware designed to record, mock, and proxy HTTP traffic, primarily for front-end development and end-to-end testing of Single Page Applications (SPAs). It functions by integrating with the `connect` middleware framework, allowing developers to capture API responses, store them as JSON files, and then replay them locally, effectively caching backend interactions. The package supports four modes: 'record' (captures live responses), 'mock' (serves recorded responses), 'mock & record' (prioritizes mocks, records if not found), and 'proxy' (forwards requests to a target API). The current stable version, 1.0.21, was last published in early 2019, indicating an abandoned or minimally maintained status. Its key differentiators include its tight integration with `connect` servers for in-development mocking and its VCR-like approach to HTTP interaction capture, accelerating test suites and reducing reliance on live backend services during development. It decompresses gzipped/deflated responses for readable mock files.","language":"javascript","status":"abandoned","version":"1.0.21","tags":["javascript","mock","record","proxy","connect","middleware","stub","http","prism"],"last_verified":"Wed May 27","install":[{"cmd":"npm install connect-prism","imports":["const prism = require('connect-prism');","const config = prism.create({ name: 'myApi', context: '/api', host: 'localhost', port: 8000 });","app.use(prism.middleware);"]},{"cmd":"yarn add connect-prism","imports":[]},{"cmd":"pnpm add connect-prism","imports":[]}],"homepage":null,"github":"https://github.com/seglo/connect-prism","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/connect-prism","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/connect-prism/compatibility"}}