Project
Doclyph - Word Document Translation
A solo project for translating Word documents with AI while preserving their formatting, with a Next.js interface and Python backend.
View on GitHub- Team
- 1
- Role
- Full-Stack Developer & AI Engineer
- Duration
- 06/2025–Present
Stack
- Python
- FastAPI
- Next.js
- React
- Docker
- Mistral AI
- Redis
Gallery

Overview
Doclyph is a solo project for translating Word documents (.docx) with AI while preserving their structure and formatting. I built the upload interface, document-processing pipeline, and translation backend.
The Next.js 15 and React 19 frontend handles drag-and-drop uploads, language selection, and progress updates. A Python FastAPI backend processes documents and coordinates translation through Mistral AI, with synchronous and asynchronous workflows, error handling, and rate-limit management.
My Work
- Built the upload interface, language selection, and progress display.
- Implemented document parsing and reconstruction around Word's XML structure.
- Connected the translation pipeline to Mistral AI, splitting text into chunks for processing.
- Added background processing, rate-limit management, and error reporting.
Engineering Decisions
Document formatting and translation are handled separately: the backend extracts text for translation and then replaces it within the document structure. This avoids asking the language model to reconstruct the entire file.
The frontend polls the backend for progress updates, so translation can continue in the background. Separate services handle document processing and model requests.
Outcome
The application connects document upload, translation, and reconstruction in one workflow. Parsing and updating the document's XML keeps formatting separate from the text sent for translation.
The project is ongoing. Its main engineering concerns are preserving document structure, managing translation requests, and keeping processing progress visible in the interface.