Skip to content

RADXIshan/mindtrace

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

300 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 MindTrace

A "Second Brain" for your glasses. Remember names, recall conversations, and track your social life.

FastAPI React TailwindCSS Gemini ChromaDB


🌟 What is MindTrace?

MindTrace is a tool to help you remember people and what you talked about. It uses a wearable HUD (like Meta Glass) to identify faces in real-time and a web dashboard to search through your past interactions.

Basically, it's for when you forget names or need to remember that one thing someone mentioned three weeks ago.


πŸ“Έ Screenshots

HUD Interface Dashboard
HUD Interface Dashboard
AI Summarizer Contact Directory
AI Summarizer Contact Directory
Smart Reminders Advanced SOS
Smart Reminders Advanced SOS

πŸ—οΈ The Setup

MindTrace is split into three parts:

1. πŸ–₯️ Web Dashboard (/client)

A React 19 app to manage your contacts and see your stats.

  • View contact history and relationship notes.
  • Charts for social activity (built with Recharts).
  • Interaction summaries.
  • SOS/alert settings.

2. πŸ₯½ Glass HUD (/glass-client)

The interface for wearable devices or mobile browsers.

  • Fast face recognition.
  • Real-time speech-to-text (ASR).
  • Simple overlays to identify people instantly.

3. βš™οΈ AI Backend (/server)

A FastAPI server that handles the heavy lifting:

  • InsightFace: For face analysis and matching.
  • OpenAI Whisper: Transcribes ambient audio.
  • RAG Engine: Semantic search using ChromaDB and Google Gemini.
  • LangChain: Connects the LLMs to your memory data.

πŸš€ Features

  • πŸ‘οΈ Face ID: Matches faces against your contact list.
  • πŸŽ™οΈ Background Tracking: Records and transcribes chats, then tags them to the right person.
  • 🧠 Memory Search: Search your history with natural language (e.g., "What did John say about his new job?").
  • πŸ“… Auto-Reminders: Creates tasks based on what people say (e.g., "Buy that book Sarah recommended").
  • 🚨 SOS System: Quick emergency alerts with location sharing.
  • πŸ“Š Social Stats: Visualizes how often you're meeting people.

πŸ› οΈ Tech Stack

Frontend

  • Framework: React 19 + Vite
  • Styling: Tailwind CSS 4
  • Motion: Framer Motion + Lenis
  • Maps: React Leaflet
  • Icons: Lucide React

Backend & AI

  • API: FastAPI (Python 3.12)
  • DB: SQLAlchemy + ChromaDB (Vector)
  • AI Models: InsightFace, Faster Whisper, Google Gemini
  • Logic: LangChain + ONNX Runtime

🧠 Model Details

For the technical specifics on how we tuned the models and why we picked them, check out MODELS.md.


πŸ“ Architecture

graph TD
    A[Glass HUD / Client] -->|Video/Audio Stream| B[FastAPI Server]
    C[Web Dashboard] -->|Data/Auth| B
    
    subgraph AI Engine
        B --> D[Face Recognition]
        B --> E[ASR / Transcription]
        B --> F[Summarizer / LLM]
        F --> G[RAG / Vector DB]
    end
    
    subgraph Storage
        B --> H[(SQL DB)]
        G --> I[(ChromaDB)]
    end
    
    D -->|Match| A
    E -->|Transcript| F
    F -->|Insights| C
Loading

🏁 Getting Started

Prerequisites

  • Node.js 18+
  • Python 3.10+
  • uv (Python package manager)
  • Google Gemini API Key

Quick Start

  1. Clone the repo

    git clone https://github.com/yourusername/mindtrace.git
    cd mindtrace
  2. Run the Backend

    cd server
    uv sync
    cp .env.example .env # Add your GEMINI_API_KEY
    uv run main.py
  3. Run the Dashboard

    cd client
    npm install
    npm run dev
  4. Run the Glass HUD (Optional)

    cd glass-client
    npm install
    npm run dev

πŸ“‚ Folders

MindTrace/
β”œβ”€β”€ client/             # Web Dashboard (React)
β”œβ”€β”€ glass-client/       # Wearable HUD
β”œβ”€β”€ server/
β”‚   β”œβ”€β”€ app/            # Routes & Logic
β”‚   β”œβ”€β”€ ai_engine/      # FaceID, ASR, RAG
β”‚   β”œβ”€β”€ data/           # Storage & DBs
β”‚   └── main.py         # App Entry
β”œβ”€β”€ screenshots/        # Images for README
β”œβ”€β”€ QUICKSTART.md       # 10-min guide
β”œβ”€β”€ API.md              # Endpoint docs
└── CONTRIBUTING.md     # How to contribute

πŸ“œ License

MIT License. See LICENSE for details.


Built for people who need a little help remembering.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 69.5%
  • Python 30.5%