Preparing for system design interviews?  Try bugzed.com →

Parrot Middleware for Express

JSON →
library 5.3.0 ·javascript
verified Jun 17, 2026

parrot-middleware is an Express.js middleware designed for mocking HTTP requests in development and testing environments. It allows developers to define a collection of 'scenarios', each comprising a list of request-response pairs. Based on the active scenario, the middleware intercepts matching incoming requests and serves the predefined mock responses. It provides dedicated control routes (`/parrot/scenario` for setting/getting the active scenario, and `/parrot/scenarios` for inspecting all available scenarios) to manage its behavior dynamically. Currently at stable version 5.3.0, the package sees active maintenance with frequent patch and minor releases, ensuring compatibility and addressing issues. Its key differentiator is the scenario-driven approach, making it easy to simulate complex backend states or error conditions without modifying frontend code or spinning up a full backend.

total hits 17
actors 8 distinct systems
last hit 17d ago AhrefsBot
GPTBot
4
ByteDance
2
ChatGPT-User
2
Script
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · 🇫🇷 France · 🇩🇪 Germany