How sutaraltamash/msme-tax-assistant works
This is a cloud-hybrid GST compliance assistant: users upload invoices, receive compliance questions and respond, then request filing output. The WebSocket gateway dispatches those actions to a session pipeline, which coordinates extraction, sanitization, deterministic rule checks, persistence, and GSTR CSV generation. The README documents authentication and mock/live extractor selection as additional capabilities. The graph follows those documented relationships; unsampled implementation details and unshown frontend internals are not inferred.
Main entry points: main.cpp HTTP and WebSocket server · Pipeline.cpp Session pipeline · websocket_client.js WebSocket client · IExtractor.hpp Extractor interface
Components 19
User interface
- WebSocket client
frontend/websocket_client.js - Invoice file handling
frontend/file_handler.js - Assistant interface
frontend/app.js
Application gateway
- HTTP and WebSocket server
backend/src/main.cpp
Compliance workflow
- Session pipeline
backend/src/Pipeline.cpp - Extractor interface
backend/include/IExtractor.hpp - Invoice sanitization
backend/src/Sanitizer.cpp - Validated state matrix
backend/src/StateMatrix.cpp - GST rule engine
backend/src/RuleEngine.cpp
Persistence and filing
- Invoice and session repository
backend/src/InvoiceRepository.cpp - Credential cryptography
backend/src/Crypto.cpp - GSTR CSV generator
backend/src/GSTRGenerator.cpp
External integrations
- Mock extractor
backend/src/MockExtractor.cpp - Groq extraction
backend/src/GroqClient.cpp - HTTP transport
backend/src/CurlHttpClient.cpp
Other components
- GST user
- Groq API
- SQLite database
- Filing CSV
Connections 22
- GST user → WebSocket client: uses
README.md - Invoice file handling → WebSocket client: submits invoice
- Assistant interface → WebSocket client: uses
- WebSocket client → HTTP and WebSocket server: sends frames
README.md - HTTP and WebSocket server → Session pipeline: dispatches actions
README.md - HTTP and WebSocket server → WebSocket client: sends frames
README.md - HTTP and WebSocket server → Mock extractor: selects in mock mode
backend/src/main.cpp - HTTP and WebSocket server → Groq extraction: selects live mode
backend/src/main.cpp - Session pipeline → Extractor interface: extracts invoice
README.md - Extractor interface → Mock extractor: implemented by
- Extractor interface → Groq extraction: implemented by
- Groq extraction → HTTP transport: sends request
- HTTP transport → Groq API: calls API
- Session pipeline → Invoice sanitization: sanitizes extraction
README.md - Session pipeline → Validated state matrix: validates facts
README.md - Session pipeline → GST rule engine: evaluates rules
README.md - Session pipeline → Invoice and session repository: persists session data
README.md - Invoice and session repository → SQLite database: reads and writes
backend/src/InvoiceRepository.cpp - Session pipeline → GSTR CSV generator: generates filing
README.md - GSTR CSV generator → Filing CSV: produces CSV
- HTTP and WebSocket server → Invoice and session repository: authenticates users
backend/src/main.cpp - HTTP and WebSocket server → Credential cryptography: hashes credentials
backend/src/main.cpp