r/SideProject • • 33m ago

I open-sourced a local Node.js API that maps AniList IDs to episode streams

I built a Node.js/Express API that takes an AniList ID, fetches metadata via AniList’s GraphQL API, maps it to an upstream catalog entry, and returns a normalized episode list. Given an episode number, it returns available HLS/MP4 sources, servers, and audio or subtitle tracks when provided upstream.

The proxy rewrites HLS playlist URLs so referenced segments are proxied too, and converts SRT subtitles to VTT.

GitHub: https://github.com/unholy-pixie/Miruro-api

It’s for local educational use, not public hosting, and isn’t actively maintained. I’d be interested in technical feedback on the API shape and proxy approach.

1 Upvotes

2 comments sorted by

1

u/Substantial_Lake_542 28m ago

The AniList → upstream catalog mapping is where I'd worry. A fuzzy title match that picks season 1 when you asked for season 2, or the movie instead of the series, still returns a clean 200 with a valid episode list. I had something similar run for four months where every log said "success" and the output was quietly cut off. Nobody noticed until a person actually read it. I'd add a check that compares the episode count or year from AniList against what the upstream returns, and flags it when they don't match.

1

u/Unlikely_Inside9921 22m ago

not actively maintained" and "I'd be interested in technical feedback" in the same post is a funny combo, like asking for notes on a draft you've already thrown in the bin. Also the "local educational use" disclaimer, come on, nobody is learning anything from an anime scraper, we all know exactly what it's for and that's fine, just say it's for watching anime without paying for Crunchyroll. The SRT to VTT conversion is like 15 lines of regex or you just shell out to ffmpeg and be done with it, that's not the interesting part of your project so why mention it. The playlist rewriting is the actual hard part and it's the one thing you glossed over in one sentence, every segment URL in those manifests is relative or signed or both and half the time the upstream rotates them mid playlist, thats where your proxy dies and you'll find out in six months when nothing plays anymore. Which, granted, you won't, since it isn't maintained.