TypeScript-arr (pronounced "Tsar" /tsɑr/ - a Slavic king/emperor)
Type-safe TypeScript SDK for Servarr APIs (Radarr, Sonarr, etc.)
Tsarr provides type-safe TypeScript clients for all Servarr APIs, generated from their Swagger/OpenAPI specifications. Perfect for building automation tools, scripts, and applications to manage your media servers.
bun add tsarr
import { RadarrClient, SonarrClient, LidarrClient } from 'tsarr';
const radarr = new RadarrClient({
baseUrl: 'http://localhost:7878',
apiKey: 'your-api-key'
});
// Type-safe API calls
const movies = await radarr.getMovies();
const status = await radarr.getSystemStatus();
Install dependencies:
bun install
Run development server:
bun run dev
Build the project:
bun run build
Lint and format:
bun run lint
bun run format
Perfect for building:
This project uses:
MIT - see LICENSE file for details.