
Bringing a Fabric Wholesaler Online, End to End
Mithila Enterprises supplies premium, structurally engineered fabric — winter wools, summer linens — to designers and design houses across India. With deep offline roots and second-generation leadership set on expanding online, the business ran entirely on analog, relationship-driven processes. There was no storefront, no digital catalogue, and no self-serve way for trade buyers to browse yardage or place orders. Furthermore, inventory was incredibly complex, tracked strictly in continuous meters, requiring a system that could intelligently lock exact lengths to prevent overselling highly demanded limited-run fabrics.
Panarch Digital engineered a bespoke, fully-owned Serverless and Backend-as-a-Service (BaaS) commerce platform built on Next.js 16 and Supabase. The system serves two audiences: a fast, edge-rendered D2C storefront with Razorpay checkout, and a gated B2B wholesale portal that triggers instant Resend emails and WhatsApp alerts via the Meta Cloud Graph API upon inquiry. Behind the storefront is the 'Executive Ledger' — a heavily guarded admin dashboard empowering staff to manage products and orders. To eliminate manual data entry, we integrated Google Gemini to automatically ingest fabric photos, generate SEO descriptions, detect weave structures, and draft product variants. The most critical architectural decision is the security model: all money, inventory, and security logic executes directly within atomic PostgreSQL functions using strict Row Level Security (RLS). When a user checks out, the database instantly locks the rows for those fabrics (FOR UPDATE) in a single atomic sweep, guaranteeing absolutely zero overselling even at extreme concurrency. Finally, the entire application is deployed on Vercel's Edge network and strictly protected by a rigorous Playwright End-to-End (E2E) testing suite that runs on every GitHub push.
A guided tour of what we shipped
Real screens from the live site — the editorial storefront, the fabric catalogue, and the gated B2B wholesale channel — plus a private owner CMS spanning products, orders, customers, inventory, promotions, content and settings.
“A traditional wholesale house now operates a highly sophisticated, enterprise-grade digital business it manages and owns entirely outright — with zero ongoing platform fees and no vendor lock-in. Heritage design meets high-performance engineering: the brand possesses an editorial storefront, a private wholesale channel, and a powerful self-serve Executive Ledger. By migrating to a custom edge-rendered infrastructure, they removed the technical bottlenecks between their products and their customers, securing India-native payments, GST compliance, and absolute inventory integrity on an architecture they fully control.”
30+
Custom pages built
100%
Zero-overselling via RLS
100%
Owned · zero platform fees