{"platform":{"name":"Blackstone Coffee Shop 3D & DevSajidur Multi-Tenant Restaurant SaaS","version":"4.0.0-Enterprise","description":"High-concurrency, multi-tenant cloud operating system uniting immersive 3D WebGL customer experiences with full-spectrum back-of-house restaurant operations (POS, KDS, recipe inventory COGS, customer dues, and white-label store cloning).","license":"Proprietary","live_url":"https://devsajidur.com"},"creator_and_architect":{"name":"Sajidur Rahman","handle":"devsajidur","role":"Lead Full-Stack & 3D WebGL Software Architect","email":"sajidur.dev@gmail.com","portfolio":"https://devsajidur.com","github":"https://github.com/devsajidur","linkedin":"https://linkedin.com/in/devsajidur","facebook":"https://facebook.com/devsajidur","location":"Dhaka, Bangladesh"},"why_it_was_built":{"executive_summary":"Engineered to liberate restaurants from 20-35% third-party marketplace commissions and unify fragmented restaurant software into a singular high-concurrency 3D WebGL platform.","core_drivers":[{"problem":"High marketplace commissions (20% to 35%)","solution":"Direct-to-consumer online ordering with table QR code sync at 0% commission."},{"problem":"Boring static 2D restaurant websites with high bounce rates","solution":"Real-time 3D WebGL coffee and dish models with orbital camera rigging and 60 FPS mobile performance."},{"problem":"Untracked recipe inventory loss & inaccurate COGS accounting","solution":"Automated recipe-level stock deduction upon order creation with dynamic COGS calculation."},{"problem":"Monolith database connection bottlenecks during holiday order spikes","solution":"Event-driven architecture with Redis BullMQ asynchronous queues and WebSocket kitchen feeds."},{"problem":"Slow and costly onboarding for new cafe locations","solution":"1-click Carbon Copy deep store cloning engine duplicating complete menus and settings in 30 seconds."}]},"how_it_was_built":{"architecture_pattern":"Serverless Monolith + Event-Driven Microservices Hybrid","frontend_framework":"Next.js 16.2.6 (App Router, Server Components & Server Actions)","ui_library":"React 19.2.7 with TypeScript 5","styling_system":"Tailwind CSS v4 with dynamic CSS variable tokens","webgl_3d_engine":"Three.js 0.183.2, @react-three/fiber 9.5.0, @react-three/drei 10.7.7 with Draco Worker decoding","database_and_orm":"MongoDB Atlas 6.21.0 with Mongoose 8.12.0 (Strict multi-tenant storeId partitioning)","asynchronous_queuing":"Redis (ioredis 6.0) & BullMQ 6.3.6 background workers","realtime_layer":"WebSockets (ws 8.21.3) for zero-latency Kitchen Display Systems (KDS)","authentication":"NextAuth.js v5.0.0-beta.31 with MongoDB adapter & JWT verification","edge_routing":"Next.js Edge Middleware for dynamic subdomain (store.devsajidur.com) and custom domain proxying"},"core_systems":[{"id":"3d-storefront","name":"Interactive 3D WebGL Storefront","description":"Real-time 3D rendered coffee cup with heart foam latte art and interactive camera controls.","route":"/"},{"id":"omnichannel-ordering","name":"Omnichannel Ordering & Table QR Sync","description":"Handles Dine-In with automatic table QR sync, Pickup, and Delivery with distance validation.","route":"/#menu"},{"id":"pos-register","name":"Dual-Mode Point of Sale (POS) Counter Module","description":"Offline cashier terminal persisting immediately to OfflineSale and Order collections.","route":"/admin"},{"id":"kitchen-display-system","name":"Live Kitchen Display System (KDS)","description":"Real-time ticket screen for kitchen staff with sound chimes and 1-tap stage progression.","route":"/admin"},{"id":"recipe-inventory-deduction","name":"Automated Recipe-Based Inventory Deduction","description":"Automatically reduces ingredient gram/ml quantities in InventoryItem upon checkout.","route":"/admin"},{"id":"cogs-financial-engine","name":"Real-Time Financials & COGS Engine ('Hisab-Nikas')","description":"Live calculation of Gross Revenue, dynamic ingredient COGS, operating expenses, and net profit.","route":"/admin"},{"id":"customer-dues-ledger","name":"Customer Dues Ledger ('Baki Khata')","description":"Tracks customer credit balances, repayment logs, and partial offline payments.","route":"/admin"},{"id":"gamified-loyalty","name":"Gamified Loyalty Rewards ('Online Success Game')","description":"Post-order memory card matching minigame rewarding customer wallet discounts.","route":"/online-success-game"},{"id":"multi-tenant-saas","name":"Multi-Tenant Dynamic Theming & Deep Cloning","description":"1-click store cloning engine duplicating complete store blueprints in under 30 seconds.","route":"/saas"},{"id":"billing-lockdown","name":"Automated Billing Countdown & Lockdown Safeguards","description":"Live countdown timer in tenant settings with graceful maintenance mode if payment is overdue.","route":"/admin"},{"id":"master-admin","name":"Master Super Admin Hub","description":"Platform command center for MRR, tenant lifecycle management, and global platform controls.","route":"/master-admin"}],"routes_directory":{"public_storefront":["/","/menu","/about","/saas","/order-tracking","/online-success-game","/noire"],"customer_dashboard":["/dashboard"],"tenant_admin":["/admin"],"platform_super_admin":["/master-admin"],"system_manifests":["/llms.txt","/llms-full.txt","/.well-known/llms.txt","/.well-known/ai-plugin.json","/api/system-info","/sitemap.xml","/robots.txt"]},"tech_stack_catalog":{"frameworks":["Next.js 16.2.6","React 19.2.7","Node.js 20+"],"languages":["TypeScript 5","JavaScript (ES2024)","GLSL"],"styling":["Tailwind CSS v4","Lucide React","Framer Motion 12"],"three_d":["Three.js 0.183","@react-three/fiber 9.5","@react-three/drei 10.7","DracoLoader"],"database":["MongoDB Atlas","Mongoose 8.12"],"queues_and_workers":["Redis (ioredis 6.0)","BullMQ 6.3.6"],"realtime":["WebSockets (ws 8.21.3)"],"authentication":["NextAuth v5 beta","bcryptjs","speakeasy (OTP)"],"payments":["Stripe","SSLCommerz","bKash","Nagad"],"cloud_and_cdn":["Cloudinary","Vercel Edge Network"]}}