ReLoop is a modular AI retail platform that helps modern businesses optimize supplier restocks and recover revenue from returns. Our mission:
Rethink how retail handles returns and resupply—cut costs, reduce landfill waste, and make resale intelligent, scalable, and profitable.
-
🧠 Smart Buyer & Supplier Intelligence
Predict restock needs, benchmark suppliers, and negotiate better purchase orders. -
🔄 Returns & Resale Manager
Classify returns, trigger refunds, and auto-route resale to platforms like eBay.
-
🔮 Restock Prediction
Predict SKU-level quantities using inventory, sales, trends, and seasonality
→ Gemini explains “Why this quantity?” -
📊 Supplier Benchmarking
Compare vendors by price, SLA, return %, defect rate, and location
→ Gemini flags poor suppliers -
📄 PO Generator
Editable POs with Gemini-suggested MOQ, discounts, and shipping
→ Auto-send or save as draft -
📈 PO Tracker
Status timeline: Created → Confirmed → Shipped → Delayed
→ Exception alerts for quantity mismatches, delays, or SLA issues
-
🧠 Return Classification
Gemini evaluates image, metadata, trend score → suggests action
→ Outputs a 1-word tag (e.g., “Relist”, “Donate”) + expandable reason -
🔁 Resale Routing
- eBay API (live)
- CSV Export (ThredUp, Depop, Poshmark, etc.)
- Gemini selects resale channel per item type
-
📥 Bulk Intake & Manual Override
- Upload returns via CSV + image blob
- Override AI suggestions, with audit logs
-
💳 Refund Logic & Fraud Flagging
Auto-refund if eligible, flag edge cases
→ Triggers Stripe/PayPal actions -
🔄 Inventory Sync (planned)
Shopify, Square, WooCommerce support
-
Return Intake Card
Upload image, metadata → view tag → expand reasoning -
Eligibility Checker
Rules: return window, item condition, receipt
→ Gemini fallback for ambiguous cases -
Auto Refund Trigger
Processes or flags refund -
Resale Sync Panel
Platform routing logic + sync status
- 🔥 Product Trend Panel – Gemini says: Hot / Declining / Niche
- ♻️ Return Funnel – Approved / Flagged / Denied
- 🛒 Resale Tracker – Live listings, Sold %, Failed %
- 📦 Inventory Recovery – % of returns salvaged
- 💰 ROI Dashboard – Profit per resale channel vs COGS
| Layer | Tech |
|---|---|
| Frontend | React (Next.js), Tailwind CSS |
| Backend | FastAPI (Python) |
| Database | PostgreSQL (Supabase) |
| Auth | Supabase Auth |
| AI | Gemini 2.0 (Chat + Vision) |
| Resale Sync | eBay API (live), CSV export for others |
| Payments | Stripe, PayPal |
| POS (Planned) | Shopify, Square, WooCommerce |
| Storage | Supabase Storage |
| Resend | |
| Hosting | Vercel (frontend), Render (backend) |
Frontend:
pnpm install
pnpm devBackend (FastAPI):
cd backend
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000Frontend:
- NEXT_PUBLIC_SUPABASE_URL
- NEXT_PUBLIC_SUPABASE_ANON_KEY
- NEXT_PUBLIC_API_BASE_URL (example: http://localhost:8000)
- GEMINI_API_KEY
- RESEND_API_KEY
- EBAY_CLIENT_ID
- EBAY_CLIENT_SECRET
Backend:
- SUPABASE_URL
- SUPABASE_ANON_KEY
- SUPABASE_STORAGE_BUCKET
- GEMINI_API_KEY
- STRIPE_SECRET_KEY
- EBAY_CLIENT_ID
- EBAY_CLIENT_SECRET
- Frontend: copy
.env.local.exampleto.env.local - Backend: copy
backend/.env.exampletobackend/.env