Henrique-Olivier/poc-network-listener — reverse-engineered prompt
Reverse engineered prompt
I want a small front end library in TypeScript that watches real HTTP requests in the browser and tells me, in simple terms, if the app looks slow, unstable, timing out, or failing on a specific route. It should be framework independent, easy to drop into older projects, and work with both fetch and an Axios instance without forcing React or extra setup.
Please make it privacy safe by default. Do not read or store request bodies, response bodies, cookies, auth headers, tokens, or full URLs with query strings. Normalize routes so the diagnostics can point to something like an endpoint pattern instead of exposing user data.
It should let me start and stop listening, subscribe to diagnosis updates, and also grab the current snapshot on demand. I also want cross tab behavior so only the active tab normally collects data, with shared state persisted safely and restored after refresh when possible. If browser features are missing or storage is blocked, it should still keep working in memory.
Please include tests and a build that outputs something easy to publish and consume. Look up current docs online if you need to.
Want more depth? Deep Reverse