Zcross091/Ronin-API ? reverse-engineered prompt
Reverse engineered prompt
Build me an API for anime and manga source links that can cache results and fetch missing ones on demand.
I want it to return cached stream links fast from Supabase, and if an episode is not already saved, it should trigger a background miner through GitHub Actions, then store the result back in the database. It should also have a resolver that can take an embed or player link and turn it into a direct video link, plus a downloads search that can find torrent magnets for a given title and episode.
Please include support for both sub and dub sources, some basic cloudflare resistant scraping, and simple routes for looking up cached episodes, triggering mining, and resolving links. It should be easy to run locally or deploy, with environment variables for the database and any source domains. If you need current library docs, look them up online and use the most reliable approach.