Thaihdu21/danang-proxy — reverse-engineered prompt

Reverse engineered prompt

Build me a small JavaScript server that works as a simple proxy service. I want it to accept incoming HTTP requests, forward them to a target API, and send the response back cleanly so a frontend can call this instead of talking to the remote service directly.

Please make it easy to run locally with sensible defaults in environment variables, and include basic things people usually need for a proxy, like CORS support, a health check route, clear error handling, and simple request logging. If the target API needs headers or query params passed through, keep that working. If there is any obvious place where secrets or base URLs should be configurable, put that behind env vars.

Keep the code straightforward in a single server entry point unless there is a strong reason not to. Add a short README with how to start it and how to test a sample proxied request. You can look up current docs online if you need to.

Want more depth? Deep Reverse