Gautam Kumar.
← Back to Portfolio

SwadKart

Multi-Vendor Food Delivery Ecosystem

A production-grade multi-vendor food delivery platform with 4-role ecosystem (Admin, Restaurant, Delivery, Customer). Features AI chatbot (Groq LLM) for food recommendations, voice search in English & Hindi, biometric auth (WebAuthn fingerprint/FaceID), real-time GPS delivery tracking via Socket.io, Razorpay payments (UPI/Cards/Wallets/COD), gamification (streaks, SwadCoins, badges), group ordering with bill splitting, and PWA with offline support. Built with 30+ API routes, 14 Mongoose schemas, and enterprise security (fraud detection, rate limiting, GDPR).

The Problem

Local restaurant aggregators lack real-time transparency, secure delivery verification, and intelligent discovery. Users want voice search, biometric security, and gamification — but existing platforms are either too simple (no real-time) or too complex (enterprise-only pricing).

The Solution

Built a full-scale micro-marketplace with 4 user personas. Implemented WebAuthn for biometric login (fingerprint/FaceID), Socket.io for live GPS order tracking on Leaflet maps, Groq LLM chatbot for natural language food recommendations, voice search via Web Speech API (English + Hindi), Razorpay for payments, and a gamification engine with order streaks, SwadCoins, achievement badges, and referral rewards.

Key Challenges

  • 1Orchestrating state across 4 different user personas (Admin, Vendor, Customer, Rider) with role-based route guards and Redux Toolkit slices.
  • 2Implementing WebAuthn biometric authentication with @simplewebauthn — enrollment, verification, and graceful fallback to JWT when biometrics unavailable.
  • 3Building a real-time delivery tracking system with Socket.io room-based authorization and OTP-verified delivery handoff.
  • 4Designing a fraud detection heuristics engine that flags suspicious orders, repeat addresses, and coupon abuse without blocking legitimate users.

Tech Stack

Frontend

React 19, Vite 7, Redux Toolkit 2, Tailwind CSS, React Router 7, Socket.io-client, Leaflet.js, Recharts, Groq SDK, i18next, PWA (Workbox)

Backend

Node.js 22, Express 5, MongoDB (Mongoose 9), Redis (ioredis), BullMQ, Socket.io 4, Helmet 8, express-rate-limit

Auth & Payments

JWT + Firebase Admin + WebAuthn (@simplewebauthn), Razorpay (UPI/Card/Wallet/COD)

AI & Media

Groq SDK (Llama 3 chatbot), Web Speech API (voice search), Cloudinary (sharp image processing), Brevo + Nodemailer

Infrastructure

Vercel (frontend), Render (backend), MongoDB Atlas, GitHub Actions CI/CD, Firebase Cloud Messaging (push)