How dangesid/invoice-pro works
InvoicePro is an invoice-analysis application with a React dashboard, FastAPI backend, and a separate Streamlit interface. The main workflow is authenticated upload, document extraction and invoice analysis, then review, chat, history, and report download. Backend excerpts show parsing and retrieval responsibilities, but leave parts of ingestion and analysis orchestration unsampled; links for those stages are therefore omitted rather than inferred. The tree and excerpts also support the login/signup flow and persistent user/invoice records.
Main entry points: invoice_api.py HTTP API · Index.tsx Dashboard · App.tsx Route shell · Login.tsx Login and signup
Components 20
React dashboard
- Route shell
InvoicePro/invoice_FE/src/App.tsx - Login and signup
InvoicePro/invoice_FE/src/pages/Login.tsx - Dashboard
InvoicePro/invoice_FE/src/pages/Index.tsx - Upload zone
InvoicePro/invoice_FE/src/components/UploadZone.tsx - Document viewer
InvoicePro/invoice_FE/src/components/DocumentViewer.tsx - Chat widget
InvoicePro/invoice_FE/src/components/ChatWidget.tsx - Invoice history
InvoicePro/invoice_FE/src/components/InvoiceHistory.tsx - Auth client
InvoicePro/invoice_FE/src/lib/auth.ts - API client
InvoicePro/invoice_FE/src/lib/api.ts
API and identity
- HTTP API
InvoicePro/backend/invoice_api.py - Token and password auth
InvoicePro/backend/auth.py - Provider configuration
InvoicePro/backend/config.py
Invoice processing
- File parsers
InvoicePro/backend/azure_invoice_process_functions.py - LLM provider
- CLI ingestion and chat
InvoicePro/main.py
Persistence and memory
- User and invoice records
InvoicePro/backend/database.py - Chat memory
InvoicePro/backend/memory_store.py
Streamlit interface
- Streamlit workspace
InvoicePro/streamlit_ui.py
Other components
- User
- Streamlit user
Connections 22
- User → Route shell: opens dashboard
- Route shell → Login and signup: routes to
InvoicePro/invoice_FE/src/App.tsx - Route shell → Dashboard: routes to
InvoicePro/invoice_FE/src/App.tsx - Dashboard → Upload zone: renders
- Dashboard → Document viewer: renders
InvoicePro/invoice_FE/src/pages/Index.tsx - Dashboard → Chat widget: renders
InvoicePro/invoice_FE/src/pages/Index.tsx - Dashboard → Invoice history: renders
- Login and signup → Auth client: uses
- Dashboard → API client: uses
InvoicePro/invoice_FE/src/pages/Index.tsx - Dashboard → HTTP API: requests API
InvoicePro/invoice_FE/src/pages/Index.tsx - Auth client → HTTP API: sends authenticated requests
- HTTP API → Token and password auth: validates tokens
InvoicePro/backend/invoice_api.py - Token and password auth → Provider configuration: loads auth settings
InvoicePro/backend/auth.py - HTTP API → User and invoice records: reads and writes records
InvoicePro/backend/invoice_api.py - HTTP API → File parsers: parses uploaded files
InvoicePro/backend/invoice_api.py - HTTP API → Chat memory: stores chat turns
InvoicePro/backend/invoice_api.py - HTTP API → LLM provider: generates answers
- Provider configuration → LLM provider: selects provider
- User → CLI ingestion and chat: runs commands
InvoicePro/main.py - CLI ingestion and chat → HTTP API: calls ingestion and chat
InvoicePro/main.py - Streamlit user → Streamlit workspace: uses workspace
InvoicePro/streamlit_ui.py - Streamlit workspace → HTTP API: calls chat
InvoicePro/streamlit_ui.py