mlx-bun library API
    Preparing search index...

    Process-global download tracker — the status page's /downloads endpoint reads this. Only downloads performed by THIS process are visible (a mlx-bun get in another terminal is not).

    interface DownloadStatus {
        bytesPerSec: number;
        currentFile: string | null;
        error?: string;
        filesDone: number;
        filesTotal: number;
        finishedAt: number | null;
        receivedBytes: number;
        repoId: string;
        startedAt: number;
        state: "error" | "done" | "active";
        totalBytes: number;
    }
    Index
    bytesPerSec: number

    Rolling-window transfer rate (server-measured, ~5 s window).

    currentFile: string | null
    error?: string
    filesDone: number
    filesTotal: number
    finishedAt: number | null
    receivedBytes: number
    repoId: string
    startedAt: number
    state: "error" | "done" | "active"
    totalBytes: number