Tsarr Documentation - v1.8.0
    Preparing search index...

    Tsarr Documentation - v1.8.0

    Tsarr Logo Tsarr

    TypeScript-arr (pronounced "Tsar" /tsɑr/ - a Slavic king/emperor)

    TypeScript Bun License: MIT CI

    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.

    • 🛡️ Type-safe - Generated from official Swagger/OpenAPI specs
    • Bun-optimized - Leverages native fetch API
    • 📦 Modular - Separate clients for each Servarr app
    • Radarr - Movie collection manager
    • Sonarr - TV series collection manager
    • Lidarr - Music collection manager
    • Readarr - Book collection manager
    • Prowlarr - Indexer manager
    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:

    • Automation scripts - Bulk movie imports, library maintenance, and media organization
    • Management tools - Custom dashboards, backup utilities, and monitoring scripts
    • Integration scripts - Connect Servarr apps with other services and workflows
    • CLI tools - Command-line utilities for media server administration

    This project uses:

    MIT - see LICENSE file for details.