How pablostanley/yoinks works
yoinks is a terminal video downloader. The user launches the CLI with a URL or enters one in the full-screen interface, reviews extracted video information and available resolutions or audio-only output, chooses a format, and downloads the file to ~/Downloads. The app orchestrates probing, format selection, progress, and completion through yt-dlp, with ffmpeg available for merging and audio extraction; it also records URL history. The graph preserves the documented terminal UI, theme, and mouse features. Some links are based on README statements or source-index references because implementation excerpts are incomplete.
Main entry points: app.tsx Download app · cli.tsx CLI launcher · ytdlp.ts Media download · text-input.tsx URL editor
Components 23
CLI entry
- CLI launcher
src/cli.tsx - Argument parsing
src/lib/args.ts - Clipboard suggestion
src/lib/clipboard.ts
Terminal experience
- Download app
src/app.tsx - URL editor
src/components/text-input.tsx - Input frame
src/components/framed-input.tsx - Full-screen view
src/components/fullscreen.tsx - Animated logo
src/components/logo.tsx - Download panel
src/components/panel.tsx - Progress display
src/components/progress-bar.tsx - Shortcut hints
src/components/shortcuts.tsx - Theme provider
src/theme.ts
Download workflow
- Video probing
src/lib/ytdlp.ts - Format choices
src/lib/ytdlp.ts - Media download
src/lib/ytdlp.ts
Input and display support
- URL history
src/lib/history.ts - URL validation
src/lib/platforms.ts - Click hit-testing
src/lib/click-map.ts - Mouse input hook
src/lib/use-mouse-click.ts - Display formatting
src/lib/format.ts
Other components
- Terminal user
- yt-dlp executable
- ffmpeg
Connections 27
- Terminal user → CLI launcher: launches
README.md - CLI launcher → Argument parsing: parses options
src/cli.tsx - CLI launcher → Clipboard suggestion: reads suggestion
src/cli.tsx - CLI launcher → URL validation: checks clipboard URL
src/cli.tsx - CLI launcher → Download app: renders
src/cli.tsx - CLI launcher → Click hit-testing: captures frames
src/cli.tsx - Terminal user → URL editor: enters URL
README.md - Download app → URL editor: renders
src/app.tsx - Download app → Input frame: renders
src/app.tsx - Download app → Full-screen view: renders
src/app.tsx - Download app → Animated logo: renders
src/app.tsx - Download app → Download panel: renders
src/app.tsx - Download app → Progress display: renders
src/app.tsx - Download app → Shortcut hints: renders
src/app.tsx - Download app → Theme provider: provides theme
src/app.tsx - Download app → URL validation: validates URL
src/app.tsx - Download app → Video probing: probes URL
src/app.tsx - Download app → Format choices: builds choices
src/app.tsx - Download app → Media download: starts download
src/app.tsx - Download app → URL history: records URL
src/app.tsx - Download app → Mouse input hook: handles clicks
src/app.tsx - Download app → Display formatting: formats display
src/app.tsx - URL editor → Mouse input hook: strips mouse reports
src/components/text-input.tsx - Video probing → yt-dlp executable: invokes
README.md - Media download → yt-dlp executable: invokes
README.md - Media download → ffmpeg: uses for processing
README.md - Format choices → Display formatting: formats sizes
src/lib/ytdlp.ts