A production-grade, full-stack Point of Sale (POS) and business management system built for the Lingo.dev hackathon. Built with Next.js 14, TypeScript, Supabase, and shadcn/ui.
- Multi-tenant architecture (per-shop isolation)
- Role-based access (Admin, Cashier, Inventory Manager)
- POS system with cart and checkout
- Inventory management with stock tracking
- Sales history with invoice generation (PDF)
- Revenue analytics and charts
- Low-stock alerts
- Internationalization (English ↔ Hindi via Lingo.dev)
- Secure authentication using Supabase + RLS
- Fully responsive UI
| Layer | Technology |
|---|---|
| Framework | Next.js (App Router) |
| Language | TypeScript |
| Backend | Supabase (Postgres + Auth + RLS) |
| State | Zustand |
| Styling | Tailwind CSS |
| UI | shadcn/ui + Radix |
| Validation | Zod + React Hook Form |
| Charts | Recharts |
| i18n | Lingo.dev |
| jsPDF |
Next.js (App Router)
├── Server Actions (Auth, Products, Sales, Analytics, Settings)
├── Supabase (Postgres + RLS + Auth)
├── Zustand (Shop + Cart state)
├── Multi-tenant via shop_id
└── Lingo.dev i18n layer
- Shop owner signup creates shop automatically
- Role-based access
- Secure middleware route protection
- Fast checkout flow
- Zustand-powered cart
- Invoice and receipt generation
- Product CRUD
- Category management
- Stock adjustments with audit logs
- Low-stock alerts
- Full transaction history
- Sequential invoice numbers via database
- CSV export and PDF receipts
- Revenue charts
- Top-selling products
- Daily / monthly statistics
- Multi-tenant using
shop_id - Row Level Security enabled
- Inventory triggers prevent negative stock
- Sequential invoice numbering (
INV-YYYYMM-XXXX) - Full audit trail for stock changes
- Automatic translation (English → Hindi)
- Runtime language switching
- Cached translation files
- Compiler-driven extraction
git clone <your-repo-url>
cd shopmanagernpm installCreate .env.local
NEXT_PUBLIC_SUPABASE_URL=your_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
npm run dev- Built from scratch during Lingo.dev Hackathon
- Uses Lingo.dev for real-world i18n implementation
- Clean commit history
- Production-grade multi-tenant architecture
- Secure Supabase RLS design
- Multi-shop switching
- Offline POS mode
- GST / tax automation
- Barcode scanning
- Mobile PWA support
- Email / WhatsApp invoice sending
- Advanced analytics dashboard
Ankur Singh



