Skip to content

MrAlpha00/LifeOS

Repository files navigation

LifeOS - AI Personal Operating System

An AI-powered personal operating system combining Tasks, Planner, Notes with Summaries & Flashcards, Semantic Search, AI Writer, and Shopping List Generator. Built with a local-first architecture using only free and open-source technologies.

Features

  • Dashboard: Unified Today view with task stats, schedule preview, and quick actions
  • Tasks: Full CRUD with priorities, due dates, and filtering
  • Notes Library: Upload text, auto-generate summaries and flashcards
  • Plan My Day: AI-powered day scheduling based on your tasks and preferences
  • Semantic Search: Search your notes with natural language queries
  • AI Writer: Generate emails, summaries, and resume bullets
  • Shopping Generator: Create shopping lists from leftovers and preferences
  • Dark/Light Theme: System-aware with manual toggle

Quick Start

# Install dependencies
npm install

# Start development server
npm run dev

Open http://localhost:5000 in your browser.

Demo Mode

Click "Try Demo Mode" on the login screen to explore with pre-seeded data:

  • Sample tasks with various priorities
  • Notes with summaries and flashcards
  • Ready-to-use semantic search

Architecture

Frontend: React + Vite + Tailwind + Shadcn/UI
Backend:  Express.js + TypeScript
Storage:  In-memory (local-first demo)
Auth:     bcrypt password hashing

API Endpoints

Method Endpoint Description
POST /api/auth/signup Create account
POST /api/auth/login Login
POST /api/auth/demo Start demo mode
GET /api/dashboard Dashboard data
CRUD /api/tasks Task management
CRUD /api/notes Notes library
POST /api/notes/:id/summarize Generate summary + flashcards
POST /api/plan Generate day schedule
POST /api/search Semantic search
POST /api/ai/writer Generate text
POST /api/shopping/generate Create shopping list

Demo Script (2 minutes)

  1. 0:00-0:10 - Login with Demo Mode
  2. 0:10-0:25 - Explore Dashboard (stats, today's tasks)
  3. 0:25-0:40 - Create a task with priority and due date
  4. 0:40-1:00 - Generate day plan from selected tasks
  5. 1:00-1:20 - View notes, summarize, use flashcards
  6. 1:20-1:35 - Search notes with natural language
  7. 1:35-1:50 - Generate an email with AI Writer
  8. 1:50-2:00 - Create shopping list from leftovers

Technical Notes

Fallback Implementations

Since this MVP uses no paid APIs:

  • Summarization: Extractive algorithm scoring sentences by key phrases
  • Flashcards: Pattern matching for definition-style sentences
  • Day Planning: Heuristic scheduler respecting productive hours and breaks
  • Semantic Search: Simple cosine similarity on word overlap
  • AI Writer: Template-based generation

Future Enhancements

  1. PostgreSQL persistence with Drizzle ORM
  2. Real embeddings with sentence-transformers
  3. Local LLM integration (Mistral-7B, Llama)
  4. File upload with Tesseract OCR
  5. Voice input with Web Speech API

Privacy

LifeOS is designed with local-first principles:

  • All data stored locally (in-memory for demo)
  • No external API calls required
  • No tracking or analytics
  • User controls all data

License

MIT License - Free for personal and commercial use.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages