Skip to content

Latest commit

Β 

History

83 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ… Equinox - Your AI-Powered Life OS

Balance your health, productivity, and focus with one intelligent platform

Live Demo Built with Opik LangChain


🎯 The Problem

Modern professionals are overwhelmed:

  • 35+ apps switched daily β€” health trackers, task managers, calendars, emails
  • No unified intelligence β€” nothing connects your wellness with your productivity
  • Decision fatigue & burnout β€” without a single source of truth, priorities slip through

πŸ’‘ Our Solution

Equinox is an AI-powered life OS that unifies your health, tasks, and emails with multi-agent intelligence β€” fully traced using Opik for complete LLM observability.


✨ Key Features

πŸ€– Multi-Agent Architecture

Agent Responsibility
Supervisor Routes queries to the appropriate specialist agent
Wellness Agent Handles health, sleep, readiness, and workout queries
Productivity Agent Manages emails, notes, todos, and calendar
Briefing Agent Generates personalized morning summaries

πŸŒ… AI Morning Briefing

Wake up to a personalized summary:

  • πŸŒ™ Sleep Score (calculated from wellness data)
  • πŸ“§ Critical email count
  • βœ… Today's task overview
  • πŸ’¬ AI-generated motivational summary

πŸ’¬ Agentic Chatbot

Natural language interface to manage your day:

"What are my tasks for today?"
"Do I have any critical emails?"
"How did I sleep last night?"

πŸ“Š Full Opik Observability

Every AI agent call is traced with Opik:

  • LLM prompts and responses
  • Latency and token usage
  • Tool calls and agent decisions
  • Conversation threading by thread_id

πŸ› οΈ Tech Stack

Backend

Technology Purpose
FastAPI High-performance Python API
LangChain + LangGraph Multi-agent orchestration
Groq (Llama 3.3 70B) Fast LLM inference
PostgreSQL Persistent data storage
Opik LLM observability & tracing
Google OAuth 2.0 Gmail & Tasks integration

Frontend

Technology Purpose
React 19 + TypeScript Modern UI framework
Vite Fast build tooling
React Router Client-side navigation
React Markdown (GFM) Rich chat rendering

πŸš€ Quick Start

Prerequisites

One-Command Startup

# Clone the repository
git clone https://github.com/Deep99739/equinox.git
cd equinox

# Configure environment
cp backend/.env.example backend/.env
# Edit backend/.env with your API keys

# Run everything
chmod +x startup.sh
./startup.sh

Environment Variables

Create backend/.env:

# Required
GROQ_API_KEY=your_groq_api_key
DATABASE_URL=postgresql://user:pass@localhost:5432/equinox

# Opik Observability (Required for tracing)
OPIK_API_KEY=your_opik_api_key
OPIK_WORKSPACE=your_opik_workspace
OPIK_PROJECT_NAME=equinox

# Google OAuth (for Gmail & Tasks)
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret

πŸ“ Project Structure

equinox/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ agents/
β”‚   β”‚   β”œβ”€β”€ briefing/        # Morning briefing agent
β”‚   β”‚   β”œβ”€β”€ productivity/    # Email, notes, todos agent
β”‚   β”‚   └── wellness/        # Health and fitness agent
β”‚   β”œβ”€β”€ supervisor/          # Query router (LangGraph)
β”‚   β”œβ”€β”€ api/                 # REST endpoints
β”‚   β”‚   β”œβ”€β”€ briefing.py      # Briefing generation
β”‚   β”‚   β”œβ”€β”€ todos.py         # Task management
β”‚   β”‚   β”œβ”€β”€ notes.py         # Note-taking
β”‚   β”‚   └── google_oauth.py  # OAuth flow
β”‚   β”œβ”€β”€ database/            # SQLAlchemy models
β”‚   β”œβ”€β”€ state/               # User token management
β”‚   β”œβ”€β”€ tools/               # Google API utilities
β”‚   └── main.py              # FastAPI application
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”‚   β”œβ”€β”€ Home/        # Landing page
β”‚   β”‚   β”‚   β”œβ”€β”€ Chat/        # Agentic chatbot
β”‚   β”‚   β”‚   β”œβ”€β”€ Briefing/    # Morning briefing
β”‚   β”‚   β”‚   β”œβ”€β”€ Productivity/# Notes & Todos
β”‚   β”‚   β”‚   └── Wellness/    # Health dashboard
β”‚   β”‚   β”œβ”€β”€ components/      # Shared UI components
β”‚   β”‚   └── api/             # API client utilities
β”‚   └── package.json
└── startup.sh               # Development startup script

πŸ”Œ API Endpoints

Core

Method Endpoint Description
GET /ping Health check
POST /supervisor Send message to AI supervisor

Briefing

Method Endpoint Description
POST /api/briefing/generate Generate morning briefing
POST /api/briefing/send-email Email briefing to user

Todos

Method Endpoint Description
GET /todos/{email} Get user todos (Local + Google Tasks)
POST /todos/ Create todo
PATCH /todos/{id} Toggle/update todo
DELETE /todos/{id} Delete todo

Notes

Method Endpoint Description
GET /notes/{email} Get user notes
POST /notes/ Create note
PATCH /notes/{id} Update note
DELETE /notes/{id} Delete note

Chat History

Method Endpoint Description
GET /api/history/{email} Get all conversation threads
GET /api/history/{email}/{thread_id} Get specific thread
POST /api/history/{email}/{thread_id} Save thread

πŸ“Š Opik Integration

Equinox uses Opik for complete LLM observability:

What's Traced

  • βœ… All LangChain agent invocations
  • βœ… Tool calls (Gmail, Tasks, Notes)
  • βœ… LLM prompts and responses
  • βœ… Latency and token usage
  • βœ… Conversation threading

Viewing Traces

  1. Go to comet.com/opik
  2. Navigate to the equinox project
  3. View traces grouped by thread_id

Why Opik?

  • Debug AI issues β€” See exactly what the LLM received and responded
  • Optimize costs β€” Monitor token usage across agents
  • Improve quality β€” Analyze agent decisions and tool usage

πŸ§ͺ Development

Backend

cd backend
pip install -r requirements.txt
python -m uvicorn main:app --reload --port 8000

Frontend

cd frontend
npm install
npm run dev

πŸ› Troubleshooting

Issue Solution
OPIK_API_KEY not found Set in backend/.env
Google OAuth errors Verify GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET
Rate limiting (429) Groq free tier: 30 req/min. Wait or upgrade.
Database connection errors Verify DATABASE_URL and PostgreSQL is running
Briefing shows 0 emails/tasks Re-authenticate with Google OAuth

πŸ‘¨β€πŸ’» Author

Deepak Kumar


πŸ“„ License

MIT License - see LICENSE for details.


πŸŒ… Equinox β€” Balance your day with AI

Built with ❀️ for the Opik Hackathon

About

Your AI Chief of Staff that adapts your workload to your wellness

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages