How shubh321h/storeflow works
StoreFlow is a mobile operations app for small retailers. A principal workflow is selecting products and a customer, creating and completing a bill, recording the sale, and presenting an invoice; product and inventory management, purchasing, and business records are supporting workflows. The graph includes documented feature areas whose screens were not sampled. Some links rely on the README or SOURCE INDEX; unsampled implementations are not asserted beyond those references.
Main entry points: database.ts Data access · ProductsScreen.tsx Product management · BillingScreen.tsx Billing & sale · App.tsx App navigation
Components 23
Access & setup
- App navigation
App.tsx - Authentication
context/AuthContext.tsx - Login & registration
screens/LoginScreen.tsx - Business setup
screens/BusinessSetupScreen.tsx - Active business context
context/BusinessContext.tsx
Catalog & stock
- Product management
screens/ProductsScreen.tsx - Barcode scanning
screens/BarcodeScannerScreen.tsx - Product metadata lookup
lib/openFoodFacts.ts - Barcode metadata
lib/barcodeMetadata.ts - Inventory & movements
lib/database.ts
Sales & purchasing
- Billing & sale
screens/BillingScreen.tsx - Invoice preview & sharing
components/InvoicePreview.tsx - Sales history
screens/SalesHistoryScreen.tsx - Purchases
screens/PurchaseScreen.tsx
Business records
- Customer accounts
screens/CustomersScreen.tsx - Supplier accounts
screens/SuppliersScreen.tsx - Expenses
screens/ExpensesScreen.tsx - Reports
screens/ReportsScreen.tsx - Business settings
screens/BusinessSettingsScreen.tsx
Shared foundation
- Data access
lib/database.ts - Supabase backend
lib/supabase.ts - Shared UI components
components
Other components
- Shopkeeper
Connections 29
- Shopkeeper → App navigation: uses
README.md - App navigation → Authentication: provides
App.tsx - App navigation → Active business context: provides
App.tsx - App navigation → Login & registration: routes to
App.tsx - App navigation → Business setup: routes to
App.tsx - Authentication → Supabase backend: authenticates via
context/AuthContext.tsx - Active business context → Data access: loads businesses
context/BusinessContext.tsx - Product management → Data access: reads and writes
screens/ProductsScreen.tsx - Product management → Product metadata lookup: looks up products
screens/ProductsScreen.tsx - Product management → Barcode metadata: uses metadata
screens/ProductsScreen.tsx - Barcode scanning → Product management: finds or adds products
README.md - Barcode scanning → Product metadata lookup: looks up information
README.md - Barcode scanning → Barcode metadata: uses barcode support
README.md - Product management → Inventory & movements: updates stock
README.md - Billing & sale → Data access: searches products
screens/BillingScreen.tsx - Billing & sale → Invoice preview & sharing: previews invoice
screens/BillingScreen.tsx - Billing & sale → Inventory & movements: updates sale records
README.md - Billing & sale → Sales history: records sale
README.md - Sales history → Invoice preview & sharing: previews invoice
screens/SalesHistoryScreen.tsx - Purchases → Data access: records purchases
screens/PurchaseScreen.tsx - Purchases → Inventory & movements: updates stock
README.md - Customer accounts → Data access: manages accounts
README.md - Supplier accounts → Data access: manages accounts
README.md - Expenses → Data access: records expenses
screens/ExpensesScreen.tsx - Reports → Data access: queries summaries
screens/ReportsScreen.tsx - Business settings → Data access: manages settings
README.md - Data access → Supabase backend: queries backend
lib/database.ts - Product management → Shared UI components: renders
screens/ProductsScreen.tsx - Billing & sale → Shared UI components: renders
screens/BillingScreen.tsx