How asadhshujau/invoicer works
Invoicer is a local-first browser invoice editor: users enter invoice details in the live sheet, which is paginated for preview and reused for PDF export or printing. The graph includes invoice persistence, image assets, backup/restore, settings, and offline/update behavior documented in the README or represented in the tree. Edges are limited to explicit imports and calls in the excerpts or SOURCE INDEX; unsampled feature internals are represented by their exact source paths, with uncertain wiring omitted.
Main entry points: invoice.ts Invoice state · App.vue App shell · useBackup.ts Backup workflow · PagedInvoice.vue Paged invoice
Components 27
App and editing
- App shell
src/App.vue - Editable fields
src/components/fields - Invoice sheet
src/components/paper/InvoicePaper.vue - Paged invoice
src/components/paper/PagedInvoice.vue - Page preview
src/components/paper/PagePreview.vue - UI state
src/stores/ui.ts - Invoice settings
src/components/app/SettingsPanel.vue
Invoice domain
- Invoice state
src/stores/invoice.ts - Invoice model
src/domain/invoice.ts - Invoice calculations
src/domain/totals.ts - Line item rules
src/domain/lines.ts - Schema and migrations
src/domain/schema.ts - Page planning
src/composables/usePagination.ts
Local persistence
- IndexedDB
src/storage/db.ts - Invoice repository
src/storage/invoiceRepository.ts - Asset state
src/stores/assets.ts - Asset repository
src/storage/assetRepository.ts - Tab synchronization
src/storage/tabSync.ts
Export and backup
- Export controls
src/components/app/ExportSheet.vue - PDF file export
src/composables/usePdfFile.ts - Print view
src/composables/usePrint.ts - Backup dialogs
src/components/app/BackupDialogs.vue - Backup processing
src/domain/backup.ts - Backup workflow
src/composables/useBackup.ts
Browser platform
- Update handling
src/composables/useAppUpdate.ts
Other components
- Invoice maker
- Browser
Connections 31
- Invoice maker → App shell: edits invoice
README.md - App shell → Invoice state: loads and saves
src/App.vue - App shell → UI state: loads UI state
src/App.vue - App shell → Invoice sheet: shows editor
src/App.vue - Editable fields → Invoice state: edits invoice
- Invoice sheet → Paged invoice: renders pages
- Page preview → Paged invoice: renders preview
src/components/paper/PagePreview.vue - Page preview → Invoice state: reads invoice
src/components/paper/PagePreview.vue - Paged invoice → Page planning: requests page plan
src/components/paper/PagedInvoice.vue - Page planning → Invoice state: reads invoice
src/composables/usePagination.ts - Page planning → Line item rules: filters blank lines
src/composables/usePagination.ts - Invoice settings → Invoice state: updates settings
- Invoice state → Invoice repository: loads and saves
src/stores/invoice.ts - Invoice repository → IndexedDB: reads and writes
src/storage/invoiceRepository.ts - Invoice state → Tab synchronization: announces saves
src/stores/invoice.ts - Invoice repository → Schema and migrations: validates stored data
src/storage/invoiceRepository.ts - Invoice state → Invoice model: holds invoice data
src/stores/invoice.ts - Invoice state → Backup processing: builds backups
src/stores/invoice.ts - Invoice state → Invoice calculations: uses totals
src/stores/invoice.ts - Invoice state → Asset state: loads invoice assets
src/stores/invoice.ts - Asset state → Asset repository: loads and stores assets
src/stores/assets.ts - Asset repository → IndexedDB: uses database
src/storage/assetRepository.ts - Export controls → Paged invoice: prepares pages
src/components/app/ExportSheet.vue - Export controls → PDF file export: exports PDF
src/components/app/ExportSheet.vue - Export controls → Print view: prints invoice
- Backup dialogs → Backup workflow: manages backup
- Backup workflow → Backup processing: encodes and reads
src/composables/useBackup.ts - Backup workflow → Invoice state: imports invoice
src/composables/useBackup.ts - Backup workflow → Asset state: handles images
src/composables/useBackup.ts - App shell → Update handling: checks updates
src/App.vue - Update handling → Browser: checks app version