
Tsarr: a type-safe TypeScript SDK & CLI for the Servarr ecosystem
If you run Radarr, Sonarr, or any of the *arr apps, you've probably written a quick script to automate something. Bulk imports, library cleanup, monitoring. And you've probably hit the same wall: the APIs are big, undocumented in practice, and every app has slightly different conventions. I got tired of writing raw fetch calls and guessing at response shapes, so I built Tsarr : a fully type-safe TypeScript client and CLI that covers the entire Servarr ecosystem. What it does Tsarr provides auto-generated TypeScript clients for: Radarr (movies) Sonarr (TV series) Lidarr (music) Readarr (books) Prowlarr (indexers) Bazarr (subtitles) Every client is generated directly from the official Swagger/OpenAPI specs, so types are always accurate and up-to-date. When the *arr devs update their API, Tsarr follows automatically. How it works under the hood Each *arr app ships an OpenAPI/Swagger spec that describes their full API. Tsarr uses @hey-api/openapi-ts to generate typed TypeScript clients fro
Continue reading on Dev.to
Opens in a new tab


