$ show liuzhao1225/YouDub-webui
YouDub WebUI is a full-stack video localization platform that enables users to import videos, transcribe speech via Whisper, translate via OpenAI-compatible APIs, clone voices with VoxCPM2, separate audio with Demucs, align subtitles with Qwen3 Forced Aligner, and export dubbed videos or subtitles. The architecture is plugin-based (Cordis framework) with a Node.js/TypeScript host orchestrating Python subprocesses for ML inference, a Next.js web frontend, and native desktop apps for macOS (Swift) and Windows (C#). The system features a task engine with queuing, cancellation, retry, and partial rerun; a worker protocol using NDJSON over stdin/stdout; and a comprehensive setup service that downloads and verifies model weights. While primarily an application, it includes research-grade model consumption and detailed validation records documenting real-media runs with SHA-256 hashes and human listening feedback. The codebase is actively maintained with recent commits, CI/CD pipelines, and extensive unit tests for contracts, protocols, and permissions.
The LLM identified 4 files worth highlighting for reuse:
Core task execution engine implementing a compare-and-swap (CAS) revision system for safe concurrent updates, with support for queuing, cancellation, retry, and partial rerun. It manages artifact registration, external request tracking, and step progress. This module is self-contained and could be extracted as a reusable task runtime for any multi-step workflow system.
Python worker protocol implementation using NDJSON message exchange over stdin/stdout with sequence numbers, cancellation via signals, and external state reporting. It defines OperationWire for progress updates and cancellation. This pattern is reusable for any Node.js-Python subprocess RPC system and is cleanly separated from business logic.
Download client with resume support via Range requests, partial file persistence, and SHA-256 checksum verification. It supports multiple mirrors and progress reporting. This is a reusable utility for any application that needs to download large files with integrity checks.
SDK types and interfaces for the plugin system: TaskRecord, WorkflowDefinition, OperationProvider, StoreService, etc. This module defines the contracts that all plugins must implement, enabling a clean separation between host and plugins. It could be extracted as a published npm package for third-party plugin development.