Offline-first store management system. Track inventory, record sales, and monitor your business — all from your browser.
CommerceTypeScript · PLpgSQLGitHub @innie1OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
StoreFlow is a mobile-first Progressive Web App (PWA) for small business owners — inventory, sales, expenses, restocking, staff, and a customer-facing order storefront, all in one app. It's built to work offline-first on a phone, with cloud sync and backup via Supabase for stores that want multi-device access.Read the full README ↗StoreFlow is a mobile-first Progressive Web App (PWA) for small business owners — inventory, sales, expenses, restocking, staff, and a customer-facing order storefront, all in one app. It's built to work offline-first on a phone, with cloud sync and backup via Supabase for stores that want multi-device access.
localStorage, synced to Supabase (Postgres) for cloud backup and multi-device accessvite-plugin-pwa with a custom service worker (src/sw.ts, injectManifest strategy) for offline support and Web Pushsrc/
components/ UI components (one per feature area: Inventory, Sales,
Orders, Expenses, ROITracker, SmartRestockEngine, etc.)
components/qr/ QR code generation and barcode/QR scanning
components/dashboards/ Role-specific dashboards (Owner, Manager, Cashier, Inventory)
lib/ Core business logic — store-data.ts (the main data layer:
CRUD for products, sales, expenses, restocks, loans, etc.),
manager-intel.ts (insights/notifications/AI-ish analysis),
reports.ts (share summary + full raw exports),
print-engine.ts (receipt printing — system + Bluetooth),
push-notifications.ts (Web Push subscribe/unsubscribe)
pages/ Top-level routed pages (Index.tsx is the main app shell)
sw.ts Custom service worker (push notifications, offline caching)
types/store.ts Central type definitions for all store data
supabase/
functions/ Edge Functions (e.g. send-order-push, scan-receipt)
migrations/ Database schema migrations
Requires Node.js and npm.
git clone <this-repo-url>
cd storeflow-innie
npm install
npm run dev
Other useful commands:
npm run build # production build
npm run preview # preview a production build locally
npm test # run tests once
npm run test:watch # run tests in watch mode
npm run lint # lint the codebase
This app expects a connected Supabase project (see src/integrations/supabase/client.ts for the client config). For push notifications to actually send, the send-order-push Edge Function needs VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, and VAPID_SUBJECT set as Supabase secrets — see the comments in src/lib/push-notifications.ts for details.
src/lib/store-data.ts and src/lib/manager-intel.ts — most features read/write a single StoreData object (see src/types/store.ts) that gets persisted locally and synced to Supabase.src/sw.ts) is hand-written (not auto-generated) because it needs custom push and notificationclick handlers — don't switch the PWA build strategy back to generateSW without accounting for this.npx tsc --noEmit -p tsconfig.app.json to see the current count.