How harsh-91/statement-importer works
Statement Importer is an offline-first desktop application for importing and reconciling bank statements into PostgreSQL. The main workflow is: a user launches the local desktop UI, configures storage, uploads statements, and receives import results backed by normalized transaction data. The graph also preserves documented capabilities for safe custom mappings, diagnostics and bug reports, database maintenance, updates, and read-only REST/MCP access. Most edges are supported by the README or SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: app.py Web application · database.py Transaction database · local_postgres.py Managed PostgreSQL · config.py Connection settings
Components 21
Desktop experience
- Desktop shell
desktop.py - Web application
app.py - Storage setup
templates/setup.html - Import screens
templates/imports.html
Statement processing
- Import workflow
app.py - Statement parsers
statement_importer/parsers.py - Custom mapping
statement_importer/mapping.py
Data and safety
- Transaction database
statement_importer/database.py - Connection settings
statement_importer/config.py - Managed PostgreSQL
statement_importer/local_postgres.py - Reporting and access
statement_importer/access.py - Database safety
statement_importer/maintenance.py
Local integrations
- REST and MCP
statement_importer/api.py - Claude extension
claude-desktop/server/index.js
Operations
- Diagnostics
statement_importer/diagnostics.py - Report relay
report-relay/src/index.js - Legacy and beta updates
statement_importer/updater.py - Version metadata
statement_importer/version.py - Package detection
statement_importer/windows_package.py
Other components
- Desktop user
- GitHub triage
Connections 34
- Desktop user → Desktop shell: launches
README.md - Desktop shell → Web application: serves locally
desktop.py - Desktop user → Web application: uses
README.md - Web application → Storage setup: renders
README.md - Web application → Import screens: renders
README.md - Web application → Connection settings: configures
app.py - Web application → Managed PostgreSQL: sets up storage
app.py - Web application → Import workflow: routes imports
app.py - Import workflow → Statement parsers: parses files
app.py - Import workflow → Custom mapping: supports mapped files
README.md - Import workflow → Transaction database: records imports
app.py - Transaction database → Connection settings: loads connection
statement_importer/database.py - Transaction database → Statement parsers: uses fingerprints
statement_importer/database.py - Custom mapping → Statement parsers: uses parsing
statement_importer/mapping.py - Custom mapping → Connection settings: loads settings
statement_importer/mapping.py - Managed PostgreSQL → Connection settings: uses configuration
statement_importer/local_postgres.py - Managed PostgreSQL → Transaction database: prepares schema
statement_importer/local_postgres.py - Web application → Database safety: offers safety tools
README.md - Database safety → Connection settings: loads connection
statement_importer/maintenance.py - Database safety → Managed PostgreSQL: uses PostgreSQL tools
statement_importer/maintenance.py - Web application → REST and MCP: registers services
app.py - REST and MCP → Reporting and access: authenticates and queries
statement_importer/api.py - REST and MCP → Transaction database: serves transaction data
README.md - Claude extension → REST and MCP: forwards MCP requests
README.md - Web application → Diagnostics: offers diagnostics
app.py - Diagnostics → Connection settings: checks configuration
statement_importer/diagnostics.py - Diagnostics → Transaction database: checks database
statement_importer/diagnostics.py - Diagnostics → Managed PostgreSQL: checks local server
statement_importer/diagnostics.py - Diagnostics → Report relay: submits reports
README.md - Report relay → GitHub triage: forwards reports
README.md - Web application → Legacy and beta updates: offers updates
README.md - Legacy and beta updates → Version metadata: compares versions
statement_importer/updater.py - Web application → Package detection: checks package type
app.py - Desktop shell → Managed PostgreSQL: starts managed server
desktop.py