# Repository Briefing: pluja/anysub
> Source: https://repoforai.com/repo/pluja/anysub (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/pluja/anysub
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: TypeScript
- **License**: AGPL-3.0
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 15/25 · Releases 20/20 · License 11/20)
- **Latest Release**: v4.4.0 (2026-11-21) — https://github.com/pluja/anysub/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, GPU
- **Momentum**: 3,116 ★ total (+1 24h / +3 7d) · 185 forks
- **Topics**: `ai`, `audio-to-text`, `docker`, `python`, `self-hosted`, `selfhosted`, `speech-recognition`, `speech-to-text`, `stt`, `subtitle-editor`, `subtitle-generator`, `subtitles`
- **When to Use**: Best for: Individual editors and single-operator workflows that turn long recordings into reviewed subtitles and need control over whether inference runs locally or through a provider. Skip if: You need shared accounts, speaker labels, workers on multiple machines, ARM images, or import of existing subtitles, or if your application only needs transcripts from a hosted API.

## Overview
```text
### Architecture & Core Mechanics
Anysub is a self-hosted subtitle application, not just a transcription endpoint. Docker Compose separates the web service from a transcription worker, and the image tags are meant to be upgraded together. The TypeScript monorepo is organized under `apps/`, `packages/`, and `workers/`, with a pnpm workspace, a Node.js requirement of `>=24.22.0` in the root manifest, and SvelteKit's `adapter-node` referenced in the Compose configuration.

Media uploads flow into a transcription job, then into a project where users can edit and export the result. The web service sets `DATA_ROOT=/data` and `ANYSUB_DATABASE_FILE=/database/anysub.db`; first-start secrets are stored in the database. The public API introduced in v4.2.0 is the integration surface for scripts and other apps. OpenAI-compatible transcription is a separate interface to external inference providers, not a mechanism for deploying Anysub workers remotely.

### Key Capabilities & Differentiators
Local Whisper models range from `tiny` through `large-v3-turbo`. For media with multiple audio tracks, users can select the track to transcribe and keep multiple transcripts in one project. An advanced transcription prompt lets users supply preferred spellings for names and terms. The editor pairs word-level timestamps with a waveform timeline, player controls, undo, autosave, and warnings for cues that are too fast to read, too long, or overlapping.

Resumable uploads are useful for hours-long recordings. Search covers project names and transcript contents; selecting a timestamped match opens the editor at that line. Find and replace helps with recurring transcription errors. Translation can use a provider's chat model or a server you operate, independently of the choice of transcription backend. Exports include SRT, WebVTT, LRC, plain text, and JSON.

### Trade-offs & Limitations
Compared with running Whisper alone, Anysub adds a searchable media library and a human review workflow, at the cost of operating a web app, worker, and persistent storage. Compared with calling a hosted Whisper API directly, it adds editing and export without forcing a move to local inference. Local processing keeps transcription audio on the host, but throughput depends on the model and hardware. External inference avoids local model compute, but sends audio to the provider and makes transcription dependent on its pricing and availability. Test actual recordings and expected job volume rather than assuming a fixed VRAM budget or turnaround time.

Single-account operation and the lack of workers on other machines limit team and scale-out use. Speaker labels, watched folders, URL import, and existing subtitle import are also absent. There are no ARM images, and local GPU acceleration is NVIDIA-only. AGPL-3.0 does not prohibit commercial hosting, but teams offering a modified version over a network should plan how to provide Corresponding Source to users of that version.

### Hardware & Deployment Guide
The standard release deployment targets x86-64 Linux with Docker and Docker Compose. Start the base stack with `docker compose up -d`, open `http://localhost:5173`, and retrieve the first-account setup code with `docker compose logs web`. Model choices, defaults, and upload limits are set in Administration. For HTTPS reverse-proxy deployments, set `BETTER_AUTH_URL` so session cookies can be marked Secure.

The base stack supports CPU transcription. Add `compose.cuda.yaml` for local NVIDIA acceleration with the NVIDIA Container Toolkit and a supported GTX 16xx, RTX 20xx, or newer card. Alternatively, `compose.remote.yaml` uses a smaller provider-only worker without local models or a GPU requirement. For on-premises processing, choose local transcription and an on-premises translation server if translation is needed; do not assume a fresh install can be provisioned offline. v4.2.0 added external providers and a public API, v4.3.0 added track selection and multiple transcripts per project, and v4.4.0 added transcript search, find and replace, and translation. Anysub cannot read Whishper 3 data, so migration is not an in-place image upgrade.
```

## Key Capabilities
```text
- Service layout: Version-matched web and worker images, with `/data` and `/database/anysub.db` configured separately.
- Inference: Local Whisper from `tiny` to `large-v3-turbo` on CPU or supported NVIDIA hardware, or OpenAI-compatible provider transcription.
- Subtitle review: Word timings, waveform editing, autosave, undo, and warnings for fast, long, or overlapping cues.
- Project workflow: Resumable uploads, source audio-track selection, and multiple transcripts per project.
- Transcript search: Timestamped matches open the studio at the matching line; find and replace is available in the editor.
- Delivery: Translate through your own server or a provider chat model; export SRT, WebVTT, LRC, plain text, or JSON.
```

## Quick Start / Clone
```bash
curl -fsSLO https://github.com/pluja/anysub/releases/latest/download/compose.cuda.yaml
     echo "COMPOSE_FILE=compose.yaml:compose.cuda.yaml" >> .env
```
