x49dev/Music-API ? reverse-engineered prompt

Reverse engineered prompt

Build me a self hostable music metadata API that I can run locally or in Docker. It should let me search YouTube for songs, get track details, playlist details, artist or channel details, and fetch a stream link for a track. I want it to use yt dlp first, with YouTube data API as a fallback if needed, and I want the responses to be clean JSON that is easy for bot developers to use.

Please include a simple health check, rate limiting, caching, request logging, and a nice API docs page I can open in the browser. It should be written in TypeScript, work with Fastify, and support SQLite for development and PostgreSQL for production. If helpful, add Redis as an optional cache. Make sure it is easy to configure with an env file, and include Docker setup so I can start it quickly. Use current docs online if you need to check anything.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab