Skip to content

Add LibreTranslate as a new translator Docker app - #4

Merged
vecnode merged 3 commits into
mainfrom
add-translator-app
Jul 12, 2026
Merged

Add LibreTranslate as a new translator Docker app#4
vecnode merged 3 commits into
mainfrom
add-translator-app

Conversation

@vecnode

@vecnode vecnode commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds LibreTranslate (libretranslate/libretranslate, AGPL-3.0, self-hosted) as a new translator app in the Docker app registry - pulled image, port 5000, Reuse lifecycle (same pattern as BentoPDF) since first run downloads translation models for every language.
  • Updates the TUI Open menus (win11 + ubuntu22), run.rs shortcuts (open-translator/stop-translator), MCP tool description, AGENTS.md, SECURITY.md's per-app threat model table, docker/README.md, and docs/mcp-functions.md.
  • README Features: the app-launch bullet is now a nested sub-list (Docs, Library, Media Downloader, Doc Processor, Translator) so future app additions slot in the same way going forward.

Test plan

  • cargo build/test/clippy/fmt --check all pass
  • vn app list includes translator
  • Built/pulled the image locally, waited for readiness (~4.5 min first run - wait_tries set to 240/6min accordingly), confirmed /languages and an actual POST /translate ("Hello world" en→es returned "Hola mundo"), then cleaned up the test container/image
  • Will trigger workflow_dispatch CI manually before merging (this repo's CI is manual-only)

🤖 Generated with Claude Code

vecnode and others added 3 commits July 12, 2026 18:38
Pulled vendor image (libretranslate/libretranslate, AGPL-3.0), port 5000,
Reuse lifecycle (like BentoPDF) since first run downloads translation
models for every language - observed ~4.5 minutes on a plain broadband
connection, so wait_tries is generous (240 tries, 6 min) and the info
line calls this out. Verified end-to-end: pulled the image, waited for
readiness, confirmed the language list and an actual translation
(POST /translate "Hello world" en->es returned "Hola mundo"), then
cleaned up the test container/image.

Updates the TUI Open menus (both win11/ubuntu22), run.rs script
shortcuts (open-translator/stop-translator), MCP tool description,
AGENTS.md, SECURITY.md's per-app threat model, docker/README.md, and
docs/mcp-functions.md to match.

README: Features' app-launch bullet is now a nested sub-list (Docs,
Library, Media Downloader, Doc Processor, Translator) per request, so
future additions slot in the same way.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Live-tested first run: ~9.4 GB downloaded (not "a few GB" as originally
guessed) over ~5 minutes. Bumped wait_tries from 240 (6 min) to 400
(10 min) so a slower connection doesn't trip the "not ready" fallback
on an otherwise-healthy first run, and corrected the size/time mentions
in the info message and AGENTS.md to match what was actually observed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vecnode
vecnode merged commit 40b153f into main Jul 12, 2026
4 checks passed
@vecnode
vecnode deleted the add-translator-app branch July 12, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant