Life OS is a premium, all-in-one personal cockpit designed to bridge the gap between rigid calendar planning and actual, fluid daily execution. By combining AI-driven dynamic scheduling, an interactive Google Calendar-inspired Time Grid, real-time outcome check-ins, and analytical self-reflection metrics, Life OS helps you conquer your day with focus and intention.
Traditional calendars are passive, and to-do lists lack a sense of time. When plans hit real-world disruptions, static tools break down. Life OS treats your day as a dynamic sequence of Time Blocks, helping you bridge intent and action:
- Intention: You express what you want to achieve using natural language prompts.
- Context-Aware AI Generation: The platform interfaces with advanced language models to schedule a realistic, highly personalized timeline based on your current mood, energy levels, and mental state.
- Immersive Execution: An interactive Google Calendar-style interface keeps you locked in on the current task with a dedicated Focus Panel, featuring counting rings, progress bars, and one-click time extensions.
- Accountability & Reflection: When time blocks finish, you complete a rapid check-in logging the actual outcome, notes, and Time ROI (Return on Investment). The day concludes with an overall rating, a breakdown of daily wins, and analytical insights.
- Natural Intent Input: Simply type what you want to achieve (e.g., "I have a lot of work to catch up on, need to do a 1-hour run, and want a relaxed dinner with family").
- Context-Driven Scheduling: Input your daily mood (1β10), energy score (1β10), and current mental state. The AI factors this in to place challenging intellectual tasks when your energy is high, and relaxing personal tasks when it is low.
- OpenRouter API Integration: Communicates seamlessly with OpenRouter (using fast, versatile models like
openai/gpt-4o-miniormistral-7b-instruct) to generate valid schedule objects instantly.
- Hour Ruler & Time Grid: Elegant calendar time grid rendering from 6:00 AM to 11:00 PM with custom alternating half-hour markers.
- Interactive Blocks: Supports quick click-to-create empty slots, and block editing using an inline floating popover anchored directly to the block.
- Side-by-Side Overlaps: Intelligent rendering math automatically handles overlapping blocks to keep your schedule neat and legible.
- Live "Now" Tracker: A distinct, glowing red indicator line moves across the time grid in real-time, scrolling automatically on load to focus your attention.
- Countdown Ring: An animated circular progress indicator showing remaining time down to the second.
- Quick Controls: Instantly adapt to disruptions using the Extend Block (+15m) or Complete Early actions.
- Up Next Feed: A visual sequence of upcoming cards showing what is next, complete with countdowns (e.g., "Starting in 45m").
- Actionable Logging: Log block outcomes as
done,extended,skipped, ordid_something_else. - Value Assessment: Refined tracking of actual ending time, notes, and a cognitive Time ROI assessment (e.g., whether the block was high value or a distraction).
- Daily Review Reviews: Rate your day, log your primary energy drains, specify wins, and identify areas for improvement.
- Interactive Charts (Recharts): Analyze completion streaks, distribution of time across categories (Work, Learning, Health, Relationships, Admin, Personal, Sleep), and longitudinal mood vs. energy trends.
- Routines Tracking: Create positive recurring habits (categorized and color-coded).
- Daily Habit Logs: Toggle daily completions to build and maintain powerful streaks.
graph TD
A[React Client / Vite] <-->|JSON over HTTP / JWT| B[Express Server]
B <-->|pg Node-postgres Pool| C[(PostgreSQL Database)]
B <-->|External HTTPS Requests| D[OpenRouter AI Service]
- Core: React 18, Vite (fast HMR build tool).
- Routing: React Router DOM (v6 / future React Router compatibility setup).
- State Management: Zustand (lightweight, reactive global store).
- Visuals & Utilities: Recharts (interactive graphs), Lucide React (sleek modern icons), Date-fns (date formatting and logic).
- Styling: Premium Vanilla CSS custom variables (
theme.css) with light/dark variables, glassmorphic filters, and animated keyframes.
- Core: Node.js, Express, Cors.
- Database Driver:
pg(custom pool queries). - Authentication: Password hashing with
bcryptjsand secure authorization withjsonwebtoken(JWT). - AI Service: Custom AXIOS integration with the OpenRouter API supporting fallback schemas, error handling, and robust JSON extraction rules.
- DB Schema Sync: Auto-checks and initializes schema using an idempotent migration script (
db-init.js) on launch.
The schema is built on a reliable, relational PostgreSQL model designed for rapid reads, analytical grouping, and cascade deletions:
ββββββββββββββββ
β users β
ββββββββ¬ββββββββ
β
βββββββββββββββββΌββββββββββββββββ
βΌ βΌ βΌ
ββββββββββββββββββ βββββββββββββ ββββββββββββββββ
β daily_plans β β habits β β habit_logs β
ββββββββββ¬ββββββββ βββββββ¬ββββββ ββββββββββββββββ
β β
βΌ β
ββββββββββββββββββ β
β time_blocks βββββββββ (Habit correlations)
ββββββββββ¬ββββββββ
β
βββββΊ [ checkins ]
β
βββββΊ [ daily_reviews ]
users: Manages credentials, custom themes, and user settings JSON.daily_plans: Captures daily context including intent prompts, date, mood scores, energy scores, and mental state.time_blocks: Captures titles, categories (work, learning, health, etc.), precise times, planned constraints, status states, and positioning indexes.checkins: Links outcomes, actual end times, alternate activities, and Time ROI directly to time blocks.daily_reviews: Combines day summary logs, completion rates, wins, and improvement notes for future analytical queries.habits&habit_logs: Tracks recurring habit names, active statuses, and daily toggled checkboxes.
- Node.js (v18 or higher recommended)
- PostgreSQL (Local instance or cloud databases like Supabase)
- OpenRouter API Key (Get yours at openrouter.ai)
Create a .env file at the root of the project (you can duplicate .env.example as a starting point):
# Database connection string (PostgreSQL)
DB_URL="postgresql://postgres:your-password@localhost:5432/life_os"
# JWT Secret for secure logins
JWT_SECRET="generate-a-long-random-alphanumeric-string-here"
# OpenRouter Configuration for AI scheduling
OPENROUTER_API_KEY="your_openrouter_api_key_here"
OPENROUTER_MODEL="openai/gpt-4o-mini" # or mistralai/mistral-7b-instruct:free
# Network Rules
PORT=5000
CLIENT_URL="http://localhost:5173"
VITE_API_URL="http://localhost:5000"From the root directory of the project, install all dependencies for the server and client in one sweep:
# Install root dependencies (concurrently, etc.)
npm install
# Install client dependencies
cd client && npm install
# Install server dependencies
cd ../server && npm installRun the integrated concurrently script from the root directory to spin up both the Express backend and the Vite frontend simultaneously:
# Return to the root folder if needed, then run:
npm run dev- Frontend will spin up at:
http://localhost:5173 - Express API will spin up at:
http://localhost:5000(Database tables will be created automatically if they do not exist).
Life OS is styled using premium, contemporary design systems to deliver maximum immersion. Highlights:
- Glassmorphism Elements: Subtle backing blurs (
backdrop-filter: blur(12px)), thin transparent borders, and soft shadows to create modern depths. - Tailored Harmonious Colors: Predefined custom properties based on semantic categories:
- π» Work: Blue (
#3B82F6) - π Health: Green (
#22C55E) - π Learning: Purple (
#A855F7) - π€ Relationships: Orange (
#F97316) - βοΈ Admin: Slate Gray (
#6B7280) - π Personal: Pink (
#EC4899) - π Sleep: Deep Slate (
#1E293B)
- π» Work: Blue (
- Interactive Micro-animations: Active blocks feature a glowing pulsing animation, transitions are animated smoothly (e.g., hover scaling, active countdown rings), and time block updates animate into place elegantly.
- Light/Dark Semantic Mapping: Pure CSS customization mapping tokens dynamically using standard selectors (e.g.,
[data-theme="dark"]).
- Frontend Deployment: Fully optimized for static hosting platforms like Vercel, Netlify, or GitHub Pages. Ensure that
VITE_API_URLpoints to your production server URL. - Backend Server: Deploy as a persistent node service on Render, Railway, or Heroku.
- Database: Utilize managed relational PostgreSQL platforms like Supabase or Neon for secure connections and effortless scaling.