MR-IMRAN-60/All-DOWNLODER-API ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple media downloader website and API that can take a media URL and return download info using the imran dlmedia library. I want a basic Express app that serves a clean static HTML page at the root, plus a GET endpoint at /api that accepts a url query parameter. If the url is missing, show a helpful 400 error, and if something goes wrong during the download, return a clear 500 error message.

The homepage should look nice and make it easy for someone to paste in a link and see the result. Keep it simple, fast, and easy to use. If you need to check the latest docs for the downloader library or Express setup, look them up online. Make sure the server starts on localhost 3000 and everything works end to end.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab