FastAPI

Upgates AI Translator — HTML-aware GPT-4o pipeline for Slovak/Czech e-shops. HTML-aware GPT-4o pipeline for Slovak/Czech e-shops.

FastAPIReact 18 · TypeScriptPydantic v2httpx · OpenAI SDKBeautifulSoup4 · lxmlTenacityVite + TailwindDocker multi-stageNginx :9002websockets

A Dockerised full-stack web app that pulls product / category data from Upgates (a Czech-Slovak e-commerce platform) via its API, translates it through OpenAI GPT-4o, lets the operator review changes in a React UI, and writes the translations back through the API.

Multi-shop support (SHOPS_DIR config), HTML-preserving translation (BeautifulSoup keeps tags intact while only translating text nodes), websocket-based live progress updates from backend to frontend.

Hard parts. Preserving inline HTML / placeholders / brand names through GPT-4o — the tag-aware AST walker is what makes the difference between "works" and "destroys your storefront." Scoping the websocket back-pressure when translating thousands of products. Bearer-token security through Nginx → FastAPI without leaking secrets in env.