How selma-star/elecsa-platform works
ELECSA turns uploaded PDF quotations into editable, structured line items, then exports reviewed quotations as Excel or PDF. The browser handles login, extraction requests, review and pricing edits; the backend authenticates and relays requests to the Python service, which selects native-text parsing or scanned-document OCR and builds exports. Source excerpts show the main API and processing calls; deployment details and some implementation internals were not sampled, so the graph focuses on evidenced runtime relationships.
Main entry points: main.py Extraction API · App.jsx Review and pricing UI · server.js Authenticated API relay · ocr_table.py Scanned PDF OCR
Components 11
Quotation workspace
- Review and pricing UI
frontend/src/App.jsx
Authentication and API
- Login and JWT auth
backend/server.js - Authenticated API relay
backend/server.js
PDF extraction
- Extraction API
extraction-service/main.py - Native PDF parser
extraction-service/pdf_parser.py - Scanned PDF OCR
extraction-service/ocr_table.py - OCR and PDF imaging
Quotation exports
- Workbook builder
extraction-service/excel_builder.py - Workbook to PDF
extraction-service/main.py
Other components
- Quotation user
- LibreOffice
Connections 10
- Quotation user → Review and pricing UI: uses
frontend/src/App.jsx - Review and pricing UI → Login and JWT auth: logs in
frontend/src/App.jsx - Review and pricing UI → Authenticated API relay: uploads and exports
frontend/src/App.jsx - Authenticated API relay → Extraction API: forwards requests
backend/server.js - Extraction API → Native PDF parser: parses native PDFs
extraction-service/main.py - Extraction API → Scanned PDF OCR: processes scanned PDFs
extraction-service/main.py - Scanned PDF OCR → OCR and PDF imaging: uses OCR and imaging
extraction-service/ocr_table.py - Extraction API → Workbook builder: builds workbook
extraction-service/main.py - Extraction API → Workbook to PDF: converts workbook
extraction-service/main.py - Workbook to PDF → LibreOffice: converts to PDF
extraction-service/main.py