Skip to content

yu-sutong/SwipeBack

Repository files navigation

🚀 SwipeBack: AI-Powered Shopping, Personalized Recommendations & Instant Blockchain Cashback

Welcome to SwipeBack — the next evolution in online shopping and loyalty rewards! SwipeBack combines AI-driven product recommendations, a swipeable shopping interface, and instant blockchain cashback to deliver a seamless, engaging, and rewarding experience for every shopper.


🌟 Live Demo

https://swipeback.vercel.app


🛠️ Tech Stack

  • Frontend: React + Vite (SPA, modern UI/UX)
  • Backend: Vercel Serverless Functions (Node.js)
  • AI/ML:
    • YOLOv5 Object Detection (Python, in cv/ folder)
    • Reverse Image Search with SerpApi
    • Real-time preference learning from swipe actions
  • Blockchain: XRPL (XRP Ledger) for wallet generation, funding, and instant payments
  • APIs: XRPL Testnet Faucet, XRPL WebSocket API
  • Deployment: Vercel
  • Other: node-fetch, Express (for local dev), CSS3, HTML5

💡 What Makes SwipeBack Unique?

  • AI-Powered Recommendations:
    • Our ML models analyze your browsing and swipe history to recommend products tailored to your interests, just like the best social feeds.
    • Object detection and reverse image search help surface the most relevant products, even from images and videos.
  • Swipeable Shopping Cards:
    • Browse products with a fun, Tinder-like swipe interface for maximum engagement and ease of use.
  • Instant Blockchain Cashback:
    • Every purchase earns you instant, secure cashback, powered by the XRPL blockchain. No waiting, no gimmicks—just real rewards.
  • Seamless Integration:
    • All features are combined in a single, beautiful web app—no plugins, no extensions, just pure shopping joy.

🏗️ Build & Run

# 1. Clone the repo
git clone https://github.com/YOUR_GITHUB_USERNAME/swipeback.git
cd swipeback

# 2. Install dependencies
npm install

# 3. For local development:
#    - Start the backend (Express)
npm run backend
#    - In a new terminal, start the frontend (Vite)
npm start

# 4. For production build:
npm run build

# 5. Deploy to Vercel (recommended)
vercel --prod

📝 Project Description

🏆 Problem Statement

Generic loyalty programs lack personalization and engagement. SwipeBack solves this by combining AI-powered recommendations, swipeable shopping, and instant blockchain cashback for a truly next-gen experience.

💡 Solution Overview

SwipeBack delivers:

  • Personalized product recommendations using AI/ML and your browsing/swipe history
  • A swipeable, engaging shopping interface
  • Instant, secure blockchain cashback for every purchase

🛠️ Technical Implementation

  • Frontend: React + Vite SPA
  • Backend: Vercel Serverless Functions (Node.js)
  • AI/ML: YOLOv5, SerpApi, real-time preference learning (see cv/ folder)
  • Blockchain: XRPL for wallet management and payments
  • Deployment: Vercel

🔄 Development Process

  • Built on top of a proven swipe-based shopping engine
  • Integrated AI/ML for real-time, personalized recommendations
  • Migrated to stateless serverless functions for scalability and security
  • Hardened error handling and user experience for production

🚧 Challenges & Learning Points

  • Migrating from stateful to stateless backend (serverless)
  • Ensuring robust error handling for blockchain and AI APIs
  • Seamless integration of AI, blockchain, and modern frontend

🚀 Future Improvements

  • Persistent merchant wallets (cloud or encrypted storage)
  • Mainnet blockchain support
  • Deeper AI personalization and analytics
  • Multi-chain and multi-platform expansion

📂 File Structure

  • src/ — React frontend
  • api/ — Vercel serverless backend (Node.js)
  • cv/ — AI/ML models and scripts (Python)
  • public/ — Static assets

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors