Skip to content

hmcommits/LifeOS

Repository files navigation

LifeOS: A Local AI Assistant Powered by Coral SQL

What Problems Are Solved

  • Data Fragmentation: Our digital footprints are scattered across multiple silos (calendars, email clients, messaging platforms) that refuse to talk to each other.
  • Missed Commitments: Casual promises made in texts, overlooked bills, and mismanaged schedules happen constantly due to this fragmentation.
  • Brittle Integration Code: Traditionally, unifying these sources requires developers to write extensive, complex API glue code.
  • Privacy & Cloud Costs: Sending personal, highly sensitive data to cloud-hosted LLMs poses a massive privacy risk and incurs high computational costs.

What I Built

LifeOS is an intelligent, privacy-first local assistant designed to aggregate scattered digital footprints and transform them into a unified, actionable dashboard. It acts as a relentless personal assistant that connects the dots between your schedule, inbox, and text messages. It operates entirely on your local machine using local AI pipelines, ensuring absolute data privacy.

The system features four main pillars:

  1. Social Capital Keeper: Translates unstructured WhatsApp chat exports into a database to detect "hidden promises" and commitments made to friends and colleagues.
    Social Capital Keeper Demo

  2. Wealth Tetris: Cross-references live Gmail receipts with Google Calendar to detect upcoming utility bills and sneaky auto-renewals before they charge you.
    Wealth Tetris Demo

  3. Action-Bias Tracker: Compares scheduled coding hours (Google Calendar) against actual output (GitHub commits) to prevent procrastination and "tutorial hell."
    Action Bias Tracker Demo

  4. Time-Tetris: Autonomously reschedules non-negotiable daily habits (like gym sessions) into available whitespace when surprise calendar events ruin your original routine.
    Time Tetris Demo

How I Used Coral

LifeOS relies entirely on Coral SQL as its core data orchestration layer, completely eliminating traditional API integration bottlenecks. Coral acts as a universal translator, allowing the local AI assistant to query the user's entire digital life through standardized, cross-source SQL JOIN operations.

  • Unstructured Data to SQL Translation: Coral instantly parses and structures messy WhatsApp chat exports into clean, read-only SQL tables, filtering out formatting junk before it reaches the AI.
  • Cross-Source SQL JOINs: Coral executes native CROSS JOIN operations between live Gmail data and Google Calendar data to overlay bills exactly onto your schedule.
  • Multi-API Simultaneous Querying: Coral queries Google Calendar and GitHub APIs in parallel, returning merged metrics in a standardized format for easy comparison without brittle pagination logic.
  • High-Frequency State Overlaying: Coral continuously queries local habit files and live calendar data to rapidly spot scheduling conflicts without burning memory overhead.

Connected Data Sources

  • Google Calendar API: For live schedule management, habit tracking, and event detection.
  • Gmail API: For extracting receipts, auto-renewals, and financial notices.
  • GitHub API: For tracking live code commits and repository activity.
  • WhatsApp Chat Exports: Local .txt and .csv files for relationship and commitment tracking.

Tech Stack

  • Frontend: React + Vite (Neo-Brutalist UI)
  • Backend: Node.js + Express
  • AI Models: Local LLMs (via Ollama/Qwen)
  • Data Pipeline: Coral SQL

Demo, Repo, Setup

Setup Instructions

  1. Clone this repository:
    git clone https://github.com/hmcommits/LifeOS.git
    cd LifeOS
  2. Set up environment variables: Copy .env.example to .env in the backend directory and fill in your API credentials.
  3. Install dependencies for the backend and frontend:
    cd backend && npm install
    cd ../frontend && npm install
  4. Start the application:
    # Terminal 1 (Backend)
    cd backend && npm start
    # Terminal 2 (Frontend)
    cd frontend && npm run dev
  5. Coral Setup: Ensure Coral SQL is installed locally and configured with your data sources.

What's Next

  • Complete Financial Hub: Upgrading Wealth Tetris to support smart receipt tracking and utility bill processing via local OCR (PDFs/Images) and local bank SMS alert interception.
  • Voice-Activated Logging: Introducing Voice-to-Text inputs that instantly translate to organized Coral database entries (e.g., "Hey LifeOS, I just spent ₹500 on groceries").
  • Deepening the Relationship Matrix: Building an automated pipeline that safely updates communication logs to automatically track fading professional contacts without relying on manual chat exports.

(A quick note behind the scenes: To help write the code and build this project faster, the Antigravity AI IDE was used strictly during the development phase. The LifeOS system itself runs entirely independently on its own!)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors