How pupariaa/ivx-inventory works
IVX is a desktop inventory-management application. Users manage categories and products, record stock movements, review dashboard and client information, and configure or print product labels; scanning and reporting provide additional workflows. The React interface is hosted by an Electron main process, with SQLite-backed data and printer, scan, settings, and subscription services. The README is empty, so product capabilities are inferred from the source index, routes, and sampled code; several renderer-to-main IPC details and unsampled feature implementations are not shown.
Main entry points: App.tsx Route shell · main.ts Electron main process · printer.ts Printer orchestration · database.ts SQLite inventory store
Components 26
Inventory interface
- Route shell
src/App.tsx - Navigation and scanning UI
src/components/Layout.tsx
Inventory workflows
- Category management
src/pages/Categories.tsx - Category details
src/pages/CategoryDetail.tsx - Category and label setup
src/pages/CategoryEdit.tsx - Product records
src/pages/ProductForm.tsx - Product details
src/pages/ProductDetail.tsx - Stock movements
src/pages/StockEntryForm.tsx - Stock outflow
src/pages/StockOutForm.tsx - Client records
src/pages/Clients.tsx
Desktop services
- Electron main process
electron/main.ts - SQLite inventory store
electron/database.ts - AI assistance
electron/ai.ts - Application settings
electron/settings.ts
Device operations
- Label printing screen
src/pages/Impression.tsx - Scan product resolution
electron/scan-resolve.ts - Printer orchestration
electron/printer.ts - Printer settings
electron/printer-settings.ts - Phomemo M120 driver
electron/phomemo-m120-dll.ts - Label editor
src/components/label-editors/LabelEditorD11s_12x22.tsx
Analytics and reporting
- Dashboard view
src/pages/Dashboard.tsx - Dashboard metrics
src/lib/dashboard-metrics.ts - Custom dashboard widgets
src/lib/dashboard-custom.ts - Usage analytics
src/lib/analytics.ts
Other components
- Inventory user
- Analytics endpoint
Connections 28
- Inventory user → Route shell: uses
- Route shell → Category management: routes to
src/App.tsx - Route shell → Category details: routes to
src/App.tsx - Route shell → Category and label setup: routes to
src/App.tsx - Route shell → Product records: routes to
src/App.tsx - Route shell → Product details: routes to
src/App.tsx - Route shell → Stock movements: routes to
src/App.tsx - Route shell → Stock outflow: routes to
src/App.tsx - Route shell → Client records: routes to
src/App.tsx - Route shell → Dashboard view: routes to
src/App.tsx - Route shell → Label printing screen: routes to
src/App.tsx - Route shell → Navigation and scanning UI: renders
src/App.tsx - Navigation and scanning UI → Electron main process: requests scan
- Electron main process → SQLite inventory store: uses
electron/main.ts - Electron main process → Scan product resolution: resolves scans
electron/main.ts - Electron main process → Application settings: loads AI settings
electron/main.ts - Electron main process → Printer orchestration: prints labels
electron/main.ts - Electron main process → Printer settings: loads settings
electron/main.ts - Electron main process → AI assistance: registers service
electron/main.ts - Printer orchestration → Printer settings: loads settings
electron/printer.ts - Printer orchestration → Phomemo M120 driver: uses driver
electron/printer.ts - Electron main process → SQLite inventory store: reads products
electron/main.ts - Electron main process → SQLite inventory store: writes photos
electron/main.ts - Category and label setup → Label editor: uses editor
src/pages/CategoryEdit.tsx - Dashboard view → Dashboard metrics: computes metrics
- Custom dashboard widgets → Dashboard metrics: uses metrics
src/lib/dashboard-custom.ts - Client records → Usage analytics: tracks usage
src/pages/Clients.tsx - Usage analytics → Analytics endpoint: posts batches
src/lib/analytics.ts