Skip to content

Warfarian/havenly.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿก Havenly.ai - Your AI-Powered Home Concierge

Havenly.ai is an intelligent home assistant that helps you transform your space with zero effort. Whether you're looking to make your room more cozy or declutter by selling unused items, Havenly's autonomous agents handle everything โ€” from analyzing your environment to generating listings, negotiating deals, and managing your space.

โœจ Features

๐Ÿ›‹๏ธ Buy Mode - Make Your Room Cozy

  • AI Room Analysis: Upload a photo and get personalized decoration suggestions
  • Smart Product Search: AI finds relevant furniture and decor items using Tavily API
  • Intelligent Chat: Ask questions and get personalized home decoration advice
  • Memory System: Remembers your preferences across sessions using Mem0
  • Save & Track: Save favorite items and track your decoration journey

๐Ÿ“ฆ Sell Mode - Declutter Your Space

  • Video Processing: Upload room walkthrough videos for automatic item detection
  • AI Item Recognition: Identifies sellable items with timestamps and descriptions
  • Smart Pricing: AI estimates market value for each item
  • Marketplace Integration: Automatically posts to rental platforms like UseThis
  • Listing Generation: Creates compelling descriptions and optimized images

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.8+
  • Node.js 18+
  • npm or yarn

Backend Setup

  1. Clone the repository

    git clone https://github.com/yourusername/havenly.ai.git
    cd havenly.ai
  2. Set up Python environment

    cd backend
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    pip install -r requirements.txt
  3. Configure environment variables Create a .env file in the backend directory:

    # Required API Keys
    NEBIUS_API_KEY=your_nebius_api_key
    TAVILY_API_KEY=your_tavily_api_key
    MEM0_API_KEY=your_mem0_api_key
    APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
    APPWRITE_PROJECT_ID=your_project_id
    APPWRITE_API_KEY=your_appwrite_api_key
    APPWRITE_DATABASE_ID=your_database_id
    
    # eBay Integration (Optional)
    EBAY_APP_ID=your_ebay_app_id
    EBAY_CERT_ID=your_ebay_cert_id
    EBAY_DEV_ID=your_ebay_dev_id
    EBAY_SANDBOX_AUTH_TOKEN=your_sandbox_token
    EBAY_SANDBOX=true
  4. Start the backend server

    python main.py

    The API will be available at http://localhost:8000

Frontend Setup

  1. Navigate to frontend directory

    cd frontend
  2. Install dependencies

    npm install
  3. Start the development server

    npm run dev

    The app will be available at http://localhost:5173

๐Ÿ—๏ธ Architecture

Frontend (React + TypeScript)

  • Framework: React 19 with TypeScript
  • Styling: Tailwind CSS with custom design system
  • Animations: Framer Motion for smooth transitions
  • Build Tool: Vite for fast development

Backend (Python FastAPI)

  • Framework: FastAPI for high-performance API
  • AI Services: Nebius AI (DeepSeek-V3) for image analysis and text generation
  • Search: Tavily API for product discovery
  • Memory: Mem0 for user preference learning
  • Database: Appwrite for data storage
  • Video Processing: OpenCV for frame extraction and analysis

๐Ÿ”ง API Endpoints

Buy Mode

  • POST /api/buy/analyze-room - Analyze uploaded room photo
  • POST /api/buy/chat - Handle intelligent chat messages
  • POST /api/buy/save-item - Save product to user's list
  • GET /api/buy/saved-items/{user_id} - Get user's saved items

Sell Mode

  • POST /api/sell/upload-video - Upload room video for processing
  • GET /api/sell/extraction-status/{job_id} - Check processing status
  • POST /api/sell/post-to-marketplace - Post items to marketplace
  • PUT /api/sell/update-item - Edit item details

๐Ÿค– AI Services

Nebius AI (DeepSeek-V3)

  • Room analysis and object detection
  • Natural language processing for chat
  • Listing generation and pricing

Tavily API

  • Real-time product search
  • Market data and pricing information

Mem0

  • User preference learning
  • Conversation context maintenance
  • Personalized recommendations

Appwrite

  • User data and preferences storage
  • File storage for images and videos
  • Authentication and sessions

๐ŸŽจ Design Philosophy

  • Dark Theme: Modern, premium aesthetic
  • Glass Morphism: Translucent cards with backdrop blur
  • Micro-interactions: Smooth hover effects and animations
  • Responsive: Works seamlessly across all devices
  • AI-First: Complex tasks handled automatically by AI

๐Ÿ“ Project Structure

havenly.ai/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”‚   โ”œโ”€โ”€ buy_mode.py          # Buy mode API endpoints
โ”‚   โ”‚   โ””โ”€โ”€ sell_mode.py         # Sell mode API endpoints
โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”œโ”€โ”€ room_analyzer.py     # AI room analysis
โ”‚   โ”‚   โ”œโ”€โ”€ video_processor.py   # Video processing
โ”‚   โ”‚   โ”œโ”€โ”€ product_search.py    # Product search API
โ”‚   โ”‚   โ”œโ”€โ”€ chat_service.py      # Intelligent chat
โ”‚   โ”‚   โ”œโ”€โ”€ mem0_service.py      # Memory management
โ”‚   โ”‚   โ””โ”€โ”€ appwrite_service.py  # Database operations
โ”‚   โ”œโ”€โ”€ config.py                # Configuration and env vars
โ”‚   โ”œโ”€โ”€ main.py                  # FastAPI application
โ”‚   โ””โ”€โ”€ requirements.txt         # Python dependencies
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ LandingPage.tsx  # Main landing page
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ BuyMode.tsx      # Buy mode interface
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ SellMode.tsx     # Sell mode interface
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ SavedItemsPage.tsx # User's saved products
โ”‚   โ”‚   โ”œโ”€โ”€ App.tsx              # Main app component
โ”‚   โ”‚   โ””โ”€โ”€ main.tsx             # App entry point
โ”‚   โ”œโ”€โ”€ package.json             # Node.js dependencies
โ”‚   โ””โ”€โ”€ vite.config.ts           # Vite configuration
โ””โ”€โ”€ README.md                    # This file

๐Ÿ”‘ Required API Keys

To use Havenly.ai, you'll need API keys from these services:

  1. Nebius AI - For AI image analysis and text generation

  2. Tavily API - For product search and market data

  3. Mem0 (Optional) - For user memory and personalization

  4. Appwrite (Optional) - For database and file storage

๐Ÿš€ Deployment

Backend Deployment

The FastAPI backend can be deployed to any cloud platform:

# Using uvicorn for production
uvicorn main:app --host 0.0.0.0 --port 8000

Frontend Deployment

Build and deploy the React frontend:

npm run build
# Deploy the dist/ folder to your hosting platform

๐Ÿค 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

๐Ÿ“ License

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

๐Ÿ†˜ Support

If you encounter any issues or have questions:

  1. Check the Issues page
  2. Create a new issue with detailed information
  3. Join our community discussions

๐Ÿ”ฎ Future Enhancements

  • Real Marketplace Integration: Connect to actual selling platforms
  • AR Visualization: See furniture in your room before buying
  • Mobile App: Native iOS/Android applications
  • Social Features: Share room transformations with friends
  • Professional Services: Connect with interior designers

Made with โค๏ธ by the Havenly.ai team

Transform your space with the power of AI! ๐Ÿกโœจ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors