How innosynth/print-workshop works
This is a browser-based business management application with sales, purchasing, inventory, accounting, contacts, reporting, settings, and machine meter readings. The principal workflow is user sign-in, permission-checked navigation, and use of a business module; the frontend is organized into page-level modules backed by API and database layers. The source index confirms database dependencies for the sampled API modules, but most page and API internals were not excerpted, so their detailed data flows are not asserted.
Main entry points: App.tsx Router and access · index.ts Database client · Layout.tsx Navigation layout · system.ts System API
Components 22
Application shell
- Router and access
src/App.tsx - Authentication
src/lib/auth-context.tsx - Navigation layout
src/components/Layout.tsx - Application sidebar
src/components/AppSidebar.tsx
Business modules
- Dashboard
src/pages/Dashboard.tsx - Contacts
src/pages/Contacts.tsx - Sales
src/pages/Sales.tsx - Purchasing
src/pages/Purchase.tsx - Accounting
src/pages/Accounting.tsx - Inventory
src/pages/Inventory.tsx - Products
src/pages/Products.tsx - Meter readings
src/pages/MeterReadings.tsx - Reports
src/pages/Reports.tsx - Settings
src/pages/Settings.tsx
API services
- Core API
api/core.ts - Sales API
api/sales.ts - System API
api/system.ts - PDF API
api/pdf.ts - QR API
api/qr.ts
Data storage
- Database client
db/index.ts - Business schema
db/schema.ts
Other components
- User
Connections 20
- User → Router and access: opens app
src/App.tsx - Router and access → Authentication: checks access
src/App.tsx - Router and access → Navigation layout: wraps protected pages
src/App.tsx - Router and access → Dashboard: routes to
src/App.tsx - Router and access → Contacts: routes to
src/App.tsx - Router and access → Sales: routes to
src/App.tsx - Router and access → Purchasing: routes to
src/App.tsx - Router and access → Accounting: routes to
src/App.tsx - Router and access → Inventory: routes to
src/App.tsx - Router and access → Products: routes to
src/App.tsx - Router and access → Meter readings: routes to
src/App.tsx - Router and access → Reports: routes to
src/App.tsx - Router and access → Settings: routes to
src/App.tsx - Navigation layout → Application sidebar: renders
src/components/Layout.tsx - Navigation layout → System API: fetches machines
src/components/Layout.tsx - Reports → System API: fetches inventory
src/pages/Reports.tsx - Core API → Database client: uses database
api/core.ts - Sales API → Database client: uses database
api/sales.ts - System API → Database client: uses database
api/system.ts - Database client → Business schema: initializes with
db/index.ts