Skip to content

Latest commit

ย 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Lysti - Jumia Seller Optimization Platform

A comprehensive Chrome extension and Next.js dashboard platform designed to help Jumia sellers optimize their product listings through AI-powered competitor analysis, keyword optimization, profit calculations, and automated data scraping across all 9 Jumia country domains.

๐Ÿš€ Features

Chrome Extension

  • Profit Calculator: Real-time profit calculations with Jumia fees and margins
  • Competitor Analysis: Automated scraping and analysis of competitor products
  • AI-Powered Recommendations: Intelligent optimization suggestions for titles, descriptions, and pricing
  • OCR Processing: Extract text from competitor product images using Tesseract.js
  • Anti-Detection System: Stealth scraping with behavior simulation and session management
  • Dynamic Content Handling: Advanced waiting strategies for JavaScript-heavy pages
  • Multi-Marketplace Support: Works across all 9 Jumia domains

Next.js Dashboard

  • Interactive Analytics: Comprehensive product performance analytics
  • AI Content Generation: Automated product descriptions and specifications
  • Competitor Comparison: Side-by-side analysis with actionable insights
  • Keyword Analysis: SEO optimization and missing keyword identification
  • Price Optimization: AI-driven pricing recommendations with profit impact
  • File Upload & OCR: Bulk product analysis from screenshots
  • Real-time Notifications: System alerts and recommendation updates
  • User Management: Secure authentication with role-based access

AI & Machine Learning

  • Google Gemini Integration: Advanced AI for content generation and analysis
  • Intelligent Recommendations: Context-aware optimization suggestions
  • Pattern Recognition: Market trend analysis and competitive intelligence
  • Performance Prediction: ROI and conversion impact estimates
  • Automated Categorization: Smart product category suggestions

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Chrome        โ”‚    โ”‚   Next.js API   โ”‚    โ”‚   Database       โ”‚
โ”‚   Extension     โ”‚โ—„โ”€โ”€โ–บโ”‚   Routes        โ”‚โ—„โ”€โ”€โ–บโ”‚   PostgreSQL     โ”‚
โ”‚                 โ”‚    โ”‚                 โ”‚    โ”‚   /SQLite        โ”‚
โ”‚ โ€ข Content       โ”‚    โ”‚ โ€ข /api/sync/    โ”‚    โ”‚                 โ”‚
โ”‚   Scripts       โ”‚    โ”‚ โ€ข /api/recommendโ”‚    โ”‚ โ€ข Categories     โ”‚
โ”‚ โ€ข Profit Calc   โ”‚    โ”‚ โ€ข /api/ocr/     โ”‚    โ”‚ โ€ข Competitor     โ”‚
โ”‚ โ€ข Competitor    โ”‚    โ”‚ โ€ข /api/ai-      โ”‚    โ”‚   Listings       โ”‚
โ”‚   Analysis      โ”‚    โ”‚   content/      โ”‚    โ”‚ โ€ข OCR Data       โ”‚
โ”‚ โ€ข Anti-Detectionโ”‚    โ”‚ โ€ข /api/scraped- โ”‚    โ”‚ โ€ข Recommendationsโ”‚
โ”‚ โ€ข Stealth       โ”‚    โ”‚   data/         โ”‚    โ”‚ โ€ข Notifications  โ”‚
โ”‚   Scraping      โ”‚    โ”‚ โ€ข /api/profit-  โ”‚    โ”‚ โ€ข Audit Logs     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚   calculations/ โ”‚    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Tech Stack

Frontend

  • Next.js 15: React framework with App Router
  • TypeScript: Type-safe development
  • Tailwind CSS: Utility-first styling
  • Radix UI: Accessible component primitives
  • Framer Motion: Smooth animations
  • React Hook Form: Form management with validation
  • Zustand: State management

Backend

  • Next.js API Routes: Serverless API endpoints
  • Prisma: Database ORM with type safety
  • NextAuth.js: Authentication and session management
  • Firebase: Real-time database and cloud functions
  • PostgreSQL/SQLite: Flexible database support

AI & Services

  • Google Gemini: Advanced AI for content generation
  • Tesseract.js: OCR processing for image text extraction
  • React Query: Server state management
  • Axios: HTTP client with interceptors

Extension

  • Manifest V3: Modern Chrome extension architecture
  • Content Scripts: DOM manipulation and data extraction
  • Background Service Worker: Event handling and coordination
  • Chrome APIs: Storage, tabs, and runtime communication

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ and npm 8+
  • Google Chrome browser
  • Database (PostgreSQL for production, SQLite for development)

Installation

  1. Clone the repository

    git clone https://github.com/your-org/lysti-jumia-optimizer.git
    cd lysti-jumia-optimizer
  2. Install dependencies

    npm run setup
  3. Configure environment variables

    # Copy example environment files
    cp .env.example .env.local
    cp dashboard/.env.example dashboard/.env.local
    
    # Edit with your configuration
    nano dashboard/.env.local
  4. Set up the database

    cd dashboard
    npx prisma generate
    npx prisma db push
  5. Start development servers

    npm run dev
  6. Install the Chrome extension

    • Open Chrome and go to chrome://extensions/
    • Enable "Developer mode"
    • Click "Load unpacked" and select the project root folder

Environment Configuration

Create dashboard/.env.local:

# Database
DATABASE_URL="file:./dev.db"

# Authentication
NEXTAUTH_SECRET="your-secret-key"
NEXTAUTH_URL="http://localhost:3000"

# AI Services
GEMINI_API_KEY="your-gemini-api-key"
AI_PROVIDER="gemini"

# Security
ENCRYPTION_KEY="your-32-character-encryption-key"
EXTENSION_ORIGIN="chrome-extension://your-extension-id"

# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100

๐Ÿ“– Usage

Extension Usage

  1. Navigate to any Jumia marketplace (jumia.com.ng, jumia.co.ke, etc.)
  2. Click the Lysti extension icon in your toolbar
  3. Use the profit calculator on product pages
  4. Analyze competitors and get AI recommendations
  5. Access the full dashboard for detailed analytics

Dashboard Features

  • Upload: Bulk analyze products from screenshots
  • Compare: Side-by-side competitor analysis
  • Optimize: AI-powered recommendations and insights
  • Analytics: Performance tracking and trend analysis
  • Settings: User preferences and privacy controls

๐ŸŒ Supported Jumia Domains

  • ๐Ÿ‡ณ๐Ÿ‡ฌ Nigeria: jumia.com.ng
  • ๐Ÿ‡ฐ๐Ÿ‡ช Kenya: jumia.co.ke
  • ๐Ÿ‡บ๐Ÿ‡ฌ Uganda: jumia.ug
  • ๐Ÿ‡จ๐Ÿ‡ฎ Ivory Coast: jumia.ci
  • ๐Ÿ‡ช๐Ÿ‡ฌ Egypt: jumia.com.eg
  • ๐Ÿ‡ฌ๐Ÿ‡ญ Ghana: jumia.com.gh
  • ๐Ÿ‡ธ๐Ÿ‡ณ Senegal: jumia.sn
  • ๐Ÿ‡ฒ๐Ÿ‡ฆ Morocco: jumia.ma
  • ๐Ÿ‡ฉ๐Ÿ‡ฟ Algeria: jumia.com.dz

๐Ÿงช Testing

Run Tests

# All tests
npm test

# Extension tests only
npm run test:extension

# Dashboard tests only
npm run test:dashboard

# E2E tests
npm run test:e2e

# Coverage report
npm run test:coverage

Test Categories

  • Unit Tests: Component and service testing
  • Integration Tests: API and database testing
  • E2E Tests: Full workflow automation with Playwright
  • Performance Tests: Load testing and optimization
  • Security Tests: Authentication and data protection

๐Ÿš€ Deployment

Production Build

npm run build

Deploy Dashboard

npm run deploy:dashboard

Deploy Firebase Functions

npm run deploy:functions

Package Extension

npm run package

๐Ÿ”’ Security & Privacy

Data Protection

  • Encryption: AES-256 encryption for sensitive data
  • Row-Level Security: Database-level access control
  • Data Retention: Automatic cleanup after 7 days
  • GDPR Compliance: Privacy-first data handling
  • Audit Logging: Comprehensive security monitoring

API Security

  • Rate Limiting: Prevents abuse and ensures fair usage
  • CORS Protection: Secure cross-origin requests
  • Input Validation: Comprehensive data sanitization
  • Authentication: Secure session management
  • API Key Management: Server-side key protection

๐Ÿ“Š Performance

Extension Performance

  • Fast Loading: < 100ms initialization time
  • Memory Efficient: Minimal resource usage
  • Anti-Detection: Stealth scraping with human-like behavior
  • Error Handling: Comprehensive error recovery

Dashboard Performance

  • Server-Side Rendering: Fast initial page loads
  • Optimized Queries: Efficient database operations
  • Caching: Smart caching strategies
  • CDN Integration: Global content delivery

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Write comprehensive tests
  • Update documentation
  • Follow security guidelines
  • Test across all Jumia domains

๐Ÿ“š Documentation

๐Ÿ› Troubleshooting

Common Issues

  • Extension not loading: Check permissions and developer mode
  • Dashboard connection: Verify environment variables and CORS settings
  • OCR processing: Check image quality and file size limits
  • AI recommendations: Verify API keys and rate limits

Support

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Jumia: For providing the marketplace platform
  • Google Gemini: AI-powered content generation
  • Tesseract.js: OCR processing capabilities
  • Next.js Team: Excellent React framework
  • Prisma: Type-safe database toolkit

๐Ÿ“ˆ Roadmap

Upcoming Features

  • Machine Learning Models: Enhanced prediction accuracy
  • Multi-Language Support: Localization for all Jumia markets
  • Advanced Analytics: Deeper market insights
  • Mobile App: Native mobile companion
  • API Integrations: Third-party service connections

Version History

  • v1.0.0: Initial release with core features
  • v1.1.0: AI recommendations and OCR processing
  • v1.2.0: Anti-detection and stealth scraping
  • v1.3.0: Advanced analytics and notifications

Built with โค๏ธ by the Lysti Team

Empowering Jumia sellers with intelligent optimization tools

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages