How masrafisiam/filebridge works
FileBridge is a Django web app that converts DOCX and PPTX uploads into downloadable PDFs. A user selects a file in the browser; the frontend submits it to the home endpoint, which validates the upload and delegates conversion. The service stages the file temporarily, runs LibreOffice in a restricted Docker container, and returns the resulting PDF through the endpoint for browser download. The main path is visible in the sampled frontend, URL, view, and service code. The Docker image definition exists in the tree, but its contents were not sampled.
Main entry points: views.py Home and upload endpoint · services.py Format validation and conversion · index.html Upload interface · app.js File selection and download
Components 12
Browser interface
- Upload interface
converter/templates/converter/index.html - File selection and download
converter/static/converter/js/app.js
Django request handling
- Project URL routing
FileBridge/urls.py - Converter URL routing
converter/urls.py - Home and upload endpoint
converter/views.py
Document conversion
- Format validation and conversion
converter/services.py - Temporary file workspace
converter/services.py - Docker engine
- Conversion image
docker/Dockerfile - LibreOffice
Other components
- User
- Browser
Connections 17
- User → Browser: uses
- Browser → Upload interface: loads page
- Upload interface → File selection and download: loads script
- User → File selection and download: selects file
converter/static/converter/js/app.js - File selection and download → Browser: submits upload
converter/static/converter/js/app.js - Project URL routing → Converter URL routing: includes routes
FileBridge/urls.py - Converter URL routing → Home and upload endpoint: routes request
converter/urls.py - Home and upload endpoint → Upload interface: renders page
converter/views.py - Browser → Home and upload endpoint: POSTs upload
- Home and upload endpoint → Format validation and conversion: calls conversion
converter/views.py - Format validation and conversion → Temporary file workspace: stages files
converter/services.py - Format validation and conversion → Docker engine: runs container
converter/services.py - Docker engine → Conversion image: uses image
- Format validation and conversion → LibreOffice: invokes in container
converter/services.py - Format validation and conversion → Home and upload endpoint: returns PDF bytes
converter/views.py - Home and upload endpoint → Browser: returns PDF response
converter/views.py - Browser → User: downloads PDF