# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 16
# self = https://watcher.sour.is/conv/4hbckpq
@prologic @lin Could my instance of LibreTranslate help with building a prototype?
Of an integration with a "translation" service? 🤔 Yes I _think_ so... What was it like standing that thing up? What's it's tech stack? Resource requirements? etc
Of an integration with a "translation" service? 🤔 Yes I _think_ so... What was it like standing that thing up? What's it's tech stack? Resource requirements? etc
@prologic I'd have to do some benchmarking to answer that properly -- under normal and peak usage, etc. -- but, as it stands, it's negligible, in a Docker container, behind NGINX.
@jlj Cool link me to the project and can you share your container setup for it? 🤔
@jlj Cool link me to the project and can you share your container setup for it? 🤔
@prologic Sure thing!\n\nI just use the defaults at: https://github.com/LibreTranslate/LibreTranslate#run-with-docker\n\nBut they offer a number of customisations as well.
@jlj Ahh nice 👌
@jlj Ahh nice 👌
Oh boi! 😳


$ docker images | grep libretranslate
libretranslate/libretranslate     latest    210f515faa80   9 days ago     4.13GB


And:


Updating language models
Found 42 models
Downloading Arabic → English (1.0) ...
Downloading Chinese → English (1.1) ...
Downloading Dutch → English (1.4) ...
Downloading English → Arabic (1.0) ...


... This is a rather expensive piece of infa. How long did it take to download all the language models? Can they be downloaded and store in a volume? 🤔 The image size itself is insane 😱
Oh boi! 😳\n\n
\n$ docker images | grep libretranslate\nlibretranslate/libretranslate     latest    210f515faa80   9 days ago     4.13GB\n
\n\nAnd:\n\n
\nUpdating language models\nFound 42 models\nDownloading Arabic → English (1.0) ...\nDownloading Chinese → English (1.1) ...\nDownloading Dutch → English (1.4) ...\nDownloading English → Arabic (1.0) ...\n
\n\n... This is a rather expensive piece of infa. How long did it take to download all the language models? Can they be downloaded and store in a volume? 🤔 The image size itself is insane 😱
Oh boi! 😳


$ docker images | grep libretranslate
libretranslate/libretranslate     latest    210f515faa80   9 days ago     4.13GB


And:


Updating language models
Found 42 models
Downloading Arabic → English (1.0) ...
Downloading Chinese → English (1.1) ...
Downloading Dutch → English (1.4) ...
Downloading English → Arabic (1.0) ...


... This is a rather expensive piece of infa. How long did it take to download all the language models? Can they be downloaded and store in a volume? 🤔 The image size itself is insane 😱
@prologic Oops. Forgot that. Yeah, there's build instructions for offline deployment, where you grab all that beforehand. But it's big regardless, I guess. 😛
@jlj What's the total size since you have it running? 🤔
@jlj What's the total size since you have it running? 🤔
@prologic Uh... Well, to start, docker stats on the container returns:\n\nCONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS\neb3740950384 clever_maxwell 0.01% 73.93MiB / 15.52GiB 0.47% 3.81GB / 108MB 1.17GB / 0B 53\n\nIt's been up for two weeks with minimal usage afaik.