Parrot Middleware for Express

JSON →
library 5.3.0 ·javascript
verified May 27, 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 47
actors 10 distinct systems
last hit 22h ago human
Amazonbot
4
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
PerplexityBot
1
Search engines
2
Humans
6

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇳🇴 Norway · 🇸🇬 Singapore