How kledsonzg/mais-distribuidora-assistente-de-nfe works
NFe Assistant is a local desktop/web application for working with Brazilian electronic invoices and Excel summaries. Users open its local web interface to search existing summaries, generate summaries from invoice data, inspect or export invoice information, and identify volumes; the server dispatches requests to these domain operations. At startup, file watching indexes XML invoices and Excel files into an in-memory cache used by searches and summary generation. The README is empty and several route implementations are omitted, so uncertain volume-identification wiring is not shown.
Main entry points: Server.cs HTTP server · Cache.cs In-memory cache · Updater.cs File indexer · Program.cs Application startup
Components 21
Local Web Interface
- Browser UI
www/scripts/summary-search.js - Summary scripts
www/scripts/summary-generate.js - Volume scripts
www/scripts/volume-identification-form.js - HTTP server
src/HttpServer/Server.cs - Static files
src/HttpServer/FileServer.cs
Summary Workflows
- Summary search
src/Excel/Search.cs - Invoice summary
src/Xml/SummaryGenerator.cs - Excel viewer
src/Excel/Viewer.cs - Excel summary model
src/Excel/Summary.cs
Invoice Processing
- Invoice export
src/Xml/NFExporter.cs - XML invoice parser
src/Xml/Invoice.cs - Invoice domain data
src/Invoice/Client.cs - Label generation
src/Word/Label.cs
Runtime and State
- File indexer
src/FileListUpdater/Updater.cs - In-memory cache
src/Cache/Cache.cs - Excel reader
src/Excel/ExcelFile.cs - Configuration
src/Config/Configuration.cs - Application startup
src/Program.cs
Other components
- User
- XML invoice files
- Excel summary files
Connections 24
- User → Browser UI: uses
- Browser UI → HTTP server: requests search
- Summary scripts → HTTP server: requests generation
- Volume scripts → HTTP server: requests identification
- HTTP server → Static files: serves interface
- HTTP server → Summary search: dispatches search
- HTTP server → Invoice summary: dispatches generation
- HTTP server → Excel viewer: opens summary
- HTTP server → Invoice export: dispatches export
- Application startup → HTTP server: starts
- Application startup → File indexer: starts indexing
- Application startup → Configuration: loads and saves
- File indexer → Configuration: reads paths
- File indexer → XML invoice files: indexes
- File indexer → Excel summary files: indexes
- File indexer → In-memory cache: updates
- In-memory cache → XML invoice parser: parses invoices
- In-memory cache → Excel reader: reads workbooks
- In-memory cache → XML invoice files: reads
- In-memory cache → Excel summary files: reads
- Summary search → In-memory cache: reads summaries
- Invoice summary → File indexer: gets XML file list
- Invoice summary → In-memory cache: reads invoices
- XML invoice parser → Invoice domain data: populates