{"library":"stubborn-server","type":"library","category":null,"description":"Stubborn Server is a Node.js library designed to create flexible stub servers for development and testing environments. It currently maintains a stable version, 2.0.1, and has a release cadence that addresses dependency updates, bug fixes, and feature enhancements as needed, with major breaking changes typically bundled into new major versions. Its core functionality includes serving static JSON mocks, handling dynamic requests with Express-based handlers, managing an in-memory database with namespace support, and providing mechanisms for aliasing mock responses and defining fallback routes (static files, proxying to other targets, or reusing existing mocks). A key differentiator is its integration with Express, allowing users to attach custom Express middleware and handlers directly, offering significant flexibility over purely configuration-driven mocking solutions. It's well-suited for integration testing and rapid front-end development against evolving APIs.","language":"javascript","status":"active","version":"2.0.1","tags":["javascript","stub","mock","server","node","test"],"last_verified":"Wed May 27","install":[{"cmd":"npm install stubborn-server","imports":["const stubbornServer = require('stubborn-server');","const stub = stubbornServer();","// No direct import, configure via object or file\nconst config = {\n  logMode: 'all',\n  servePort: 8059\n};"]},{"cmd":"yarn add stubborn-server","imports":[]},{"cmd":"pnpm add stubborn-server","imports":[]}],"homepage":null,"github":"https://github.com/zeachco/stubborn-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/stubborn-server","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/stubborn-server/compatibility"}}