Reverse engineered prompt

GitHub

Build me a browser based torrent client that runs as a simple single page web app in plain HTML, JS, and CSS. I want people to be able to paste a magnet link or info hash and start downloading right in the browser, and also seed one or more local files back to the swarm. Give it a clean, informative interface with easy sharing options, a list of active torrents, per torrent upload and download speeds, overall client speeds, and basic actions like pause, resume, and remove torrent.

Please include a small debug mode that can be turned on through localStorage so logs are easy to inspect in the browser console. Make sure the app works when index.html is served as the default route so refreshes do not break the page. Keep it lightweight and usable without a backend if possible. If you need anything, look up current WebTorrent browser docs online and wire it up in a practical way.

Have a live product UI? Try website reverse