Configuration interface for manga source APIs.

interface MangaSourceConfig {
    name: string;
    source: MangaSource;
    baseUrl: string;
    endpoints: { search: string; detail: string };
    headers?: Record<string, string>;
    rateLimit?: { requestsPerSecond: number; burstLimit: number };
    cache?: { enabled: boolean; ttlMinutes: number };
}

Properties

name: string

Human-readable name of the source

source: MangaSource

Source identifier

baseUrl: string

Base API URL

endpoints: { search: string; detail: string }

Search endpoint configuration

headers?: Record<string, string>

Headers to include in requests

rateLimit?: { requestsPerSecond: number; burstLimit: number }

Rate limiting configuration (optional)

cache?: { enabled: boolean; ttlMinutes: number }

Cache configuration (optional)