Skip to content

About

The Last-Minute Life Saver

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
 β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
 β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘
 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
 β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•  β•šβ•β•β•β•  β•šβ•β• β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•     β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•

SAVIOUR.OS β€” The Atmospheric Deadline Shield Terminal

PROTOCOL-V2.6 Β· AUTONOMOUS LIFE SENTINEL ACTIVE

Live Demo Hackathon

Engine Stack Deploy Firebase TypeScript License


"The moment a deadline starts slipping is exactly when most tools go silent. Saviour AI does the opposite β€” it deploys 5 autonomous agents to plan, intervene, and recover."


πŸ“Œ Hackathon Context

Category Details
πŸ† Event Vibe2Ship 2026 – India's Biggest Vibe-Coding Hackathon
🀝 Organizers Coding Ninjas 10X Club Γ— Google for Developers
🎯 Track The Last-Minute Life Saver
πŸš€ Project SAVIOUR.OS β€” The Atmospheric Deadline Shield Terminal
🌐 Live Demo https://saviour-ai-260245018870.us-west1.run.app/
☁️ Deployment Google Cloud Run via Google AI Studio Build Pipeline

🎯 Problem Statement

Students, professionals, and entrepreneurs routinely miss deadlines because existing productivity tools are built on a passive pull architecture β€” they wait for users to check them. When stress hits, users avoid their dashboards entirely (the "Ostrich Effect"). When a deadline slips, there is no Plan B.

Three real failures of traditional tools:

  • Reminder Fatigue β€” passive notifications are dismissed in under 2 seconds
  • The Ostrich Effect β€” approaching deadlines increase anxiety, causing active dashboard avoidance
  • No Recovery Protocol β€” zero structured help after a deadline is missed

Solution Architecture

Saviour AI is built around a Hybrid Active-Mitigation OS β€” user-in-the-loop agency combined with server-side Gemini reasoning that activates proactively, not reactively.

πŸ—οΈ SAVIOUR.OS Architecture

flowchart TB
    classDef frontend fill:#0d1117,stroke:#00ff41,color:#ffffff,stroke-width:2px;
    classDef backend fill:#161b22,stroke:#58a6ff,color:#ffffff,stroke-width:2px;
    classDef service fill:#1c2128,stroke:#f59e0b,color:#ffffff,stroke-width:2px;
    classDef storage fill:#0f172a,stroke:#a855f7,color:#ffffff,stroke-width:2px;

    UI["πŸ–₯️ React 19 Client<br/>SAVIOUR.OS Terminal UI<br/><sub>CRT β€’ Motion β€’ D3.js</sub>"]:::frontend

    API["⚑ Express.js Backend<br/><sub>Vite HMR β€’ esbuild β€’ Secure API Gateway</sub>"]:::backend

    GEMINI["πŸ€– Gemini 2.5 Flash<br/><sub>5 Specialized AI Agents </sub>"]:::service
    MAIL["πŸ“§ Nodemailer SMTP<br/><sub>HTML Email Engine</sub>"]:::service
    CAL["πŸ“… Google Calendar API<br/><sub>Event Automation</sub>"]:::service
    GMAIL["βœ‰οΈ Gmail Drafts API<br/><sub>Email Composer</sub>"]:::service

    FIREBASE[" Firebase Platform<br/><sub>Firestore + Auth + User Persistence</sub>"]:::storage

    UI -->|"Secure API Requests"| API

    API --> GEMINI
    API --> MAIL
    API --> CAL
    API --> GMAIL
    API --> FIREBASE

    CAL -. OAuth .-> FIREBASE
    GMAIL -. OAuth .-> FIREBASE
Loading

πŸ€– The 5 Autonomous Agents

Each agent is a separate structured-output Gemini endpoint β€” not a single chatbot wrapper. This separation allows each agent to specialize and return typed JSON that maps directly onto UI state.

Agent Endpoint Specialization
Task Breakdown Agent POST /api/gemini/breakdown Slices any task into 3–5 procrastination-defeating subtask milestones using responseSchema JSON
Delay Mitigation Agent POST /api/gemini/mitigate Drafts polished extension emails or strict 4-step rescue action plans on demand
Companion Chat Agent POST /api/gemini/chat Holds live task context, responds with natural language + suggestedActions[] that trigger real UI state changes
Auto-Scheduler Agent POST /api/gemini/auto-schedule Scans full task list for timeline conflicts, proposes and explains deferrals to protect high-stakes work
Crisis Triage Agent POST /api/gemini/triage Activates post-deadline: classifies severity, generates 3-step recovery plan, drafts stakeholder email, delivers mindset coaching

All agents use responseMimeType: 'application/json' + responseSchema (Gemini structured output) so model output maps directly and reliably onto UI state without string parsing.


⚑ Feature Ecosystem

1. SAVIOUR.OS Terminal Boot Loader

  • Immersive cyberpunk CRT login screen with scanline atmospheric overlays
  • "DEFEAT DEADLINES BEFORE THEY DEFEAT YOU" β€” full-viewport typographic hero
  • Google OAuth boot sequence + Anonymous Sentinel demo mode
  • Developer sandbox bypass (email-based persistent session for restricted iframe environments)

2. Master Control Deck (Command Center)

  • Real-time system clock, active task density monitor, risk factor readout
  • Inline natural-language console β€” type /plan_day, /breakdown, /start_focus
  • 5-Agent sentinel grid status panel
  • XP progress, streak multiplier, and level system visible at all times

3. Deadlines Checklist (Task Matrix)

  • Urgency partitioning: CRITICAL (< 24h), URGENT (< 3d), NORMAL
  • AI Autocut: 1-click Gemini subtask generation with completion tracking
  • Crisis Triage mode: Toggle to unlock per-card diagnostic suite
  • Priority dot system with urgency pulse ring on critical items
  • Inline extension email drafting + Gmail draft push
  • Google Calendar sync per task

4. Autopilot Timeline (Scheduler)

  • Visual timeline with conflict detection
  • Gemini-powered auto-realignment with explanation
  • 1-click sync to Google Calendar

5. Pomodoro Focus (Rescue Mode)

  • SVG radial timer with color-coded session states (focus / short break / long break)
  • AI coach quotes cycling every session
  • Ambient noise synthesizer (Rain, Cosmic Static, Cyber-Cafe, Synth-Wave)
  • Guided breathing loop visualization during breaks
  • XP awarded on session completion

6. Sentinel AI Chat (Terminal Interface)

  • Retro terminal CLI feel β€” $ CMD > input, monospace agent responses
  • 5 selectable agent personas (Rogue, Guardian, Strategist, Auditor, Saviour)
  • Suggested action pills that trigger real in-app state changes (not just text)
  • Web Speech API voice input β€” dictate commands hands-free
  • Typing indicator with 3-dot animation while Gemini generates

7. Habit Recurrence (Gamification Engine)

  • GitHub-style 30-day activity heatmap
  • XP + Level system (1–100), streak multipliers
  • Unlockable operational badges (Procrastination Slayer, Crisis Commander)
  • Goal frequency tracking (daily / weekly / monthly)

8. Operations Stats (Analytics Panel)

  • recharts + d3 real-time telemetry: completed vs outstanding, XP velocity, focus block metrics
  • On-time completion rate, streak analytics

9. Google Workspace Connector

  • Standard OAuth + Developer Bypass dual-mode authentication
  • Calendar event creation from tasks
  • Gmail draft composition from AI-generated mitigation emails
  • Nodemailer HTML "rescue checklist" transactional emails with simulated-send fallback

Google Technologies Used

Technology How It's Used
Gemini 2.5 Flash (@google/genai SDK) Powers all 5 reasoning agents server-side with structured JSON-schema responses via responseMimeType + responseSchema
Google Calendar API calendar.events scope β€” syncs task deadlines and recovery sessions to the user's real Google Calendar
Gmail API gmail.compose scope β€” agent-generated extension requests and crisis emails as real Gmail drafts
Google OAuth 2.0 openid / profile / email scopes via Firebase's Google provider; dual-mode with Developer Bypass for sandbox environments
Google Cloud Run Production deployment via gcloud run deploy --source . β€” containerized Express + Vite static serving
Google AI Studio Build and deploy pipeline; app generated and deployed using the AI Studio repository template
Firebase Authentication Google OAuth sign-in, session management, per-user data isolation
Firebase Firestore Real-time persistence for tasks, goals, habits, badges, notifications, sync state

Technical Stack

Frontend

  • React 19 + Vite β€” zero-latency local dev, optimized production build
  • TypeScript (strict mode, tsc --noEmit gate on all PRs)
  • Tailwind CSS v4 β€” cyberpunk green-on-black design system with custom @theme tokens
  • motion/react (Framer Motion v12) β€” page transitions, stagger animations, layout animations
  • recharts + d3 β€” analytics telemetry charts
  • lucide-react β€” icon system

Backend

  • Node.js + Express β€” API proxy architecture keeping all secrets server-side
  • @google/genai SDK β€” Gemini structured output with responseSchema + Type
  • Nodemailer β€” HTML transactional email (SMTP / simulated-send fallback)
  • esbuild β€” bundles server.ts β†’ dist/server.cjs for Cloud Run cold-start optimization
  • tsx β€” TypeScript dev runtime

Data & Auth

  • Firebase Authentication β€” Google OAuth identity
  • Firebase Firestore β€” real-time NoSQL persistence

Module Breakdown

src/
β”œβ”€β”€ App.tsx                    # Root orchestrator β€” auth, routing, state sync
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ MasterControlDeck.tsx  # Command center HUD + system console
β”‚   β”œβ”€β”€ TaskBoard.tsx          # Urgency-sliced task matrix + AI autocut
β”‚   β”œβ”€β”€ SchedulerView.tsx      # Timeline conflict scanner + auto-aligner
β”‚   β”œβ”€β”€ AIAgentCompanion.tsx   # 5-agent terminal chat + voice input
β”‚   β”œβ”€β”€ PomodoroRescue.tsx     # Focus timer + ambient sound + breathing loop
β”‚   β”œβ”€β”€ HabitGoalTracker.tsx   # Gamification engine + activity heatmap
β”‚   β”œβ”€β”€ AnalyticsPanel.tsx     # Recharts telemetry dashboard
β”‚   β”œβ”€β”€ WorkspaceConnector.tsx # Google OAuth + Calendar/Gmail integration
β”‚   β”œβ”€β”€ NotificationCenter.tsx # Alert panel with AI intervention log
β”‚   └── ui/
β”‚       β”œβ”€β”€ BentoGrid.tsx      # Stagger-animated bento card layout
β”‚       β”œβ”€β”€ CTAButton.tsx      # Design-system button (primary/secondary/ghost/danger)
β”‚       β”œβ”€β”€ PillBadge.tsx      # Contextual status badges
β”‚       └── ListRow.tsx        # Reusable task list row
server.ts                      # Express API proxy (5 Gemini endpoints + email)

Google Workspace Integration

Saviour AI uses a dual-mode authentication architecture designed to work in all environments β€” local dev, restricted cloud sandboxes, and production.

Mode A β€” Standard Google OAuth

Scopes: openid profile email
        https://www.googleapis.com/auth/calendar.events
        https://www.googleapis.com/auth/gmail.compose

Firebase Google provider initiates the OAuth popup flow and attaches workspace credentials.

Mode B β€” Developer Bypass (for restricted sandbox iframes)

  1. Go to Google OAuth Playground
  2. Authorize calendar.events + gmail.compose scopes
  3. Exchange for Access Token (ya29. prefix)
  4. Paste into the Developer Bypass panel inside Saviour AI
  5. Instant credential channel β€” no redirect required

πŸš€ Local Setup

# 1. Clone the repository
git clone https://github.com/manishpatel00/Saviour-AI-The-Last-Minute-Life-Saver.git
cd Saviour-AI-The-Last-Minute-Life-Saver

# 2. Install dependencies
npm install

# 3. Configure environment
cp .env.example .env
# Edit .env β€” add your GEMINI_API_KEY at minimum

# 4. Start full-stack dev server (Express + Vite HMR)
npm run dev
# β†’ Open http://localhost:3000

Environment Variables (.env)

# Required β€” Gemini AI API key (server-side only, never VITE_ prefix)
GEMINI_API_KEY=your_gemini_api_key_here

# Optional β€” SMTP email (falls back to simulated-send if empty)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASS=your_app_password_here

# App base URL
APP_URL=http://localhost:3000
# Type check
npm run lint

# Production build (Vite static + esbuild server bundle)
npm run build

# Start production server
npm run start

☁️ Cloud Deployment

# Authenticate GCloud CLI
gcloud auth login
gcloud config set project YOUR_PROJECT_ID

# Enable required services
gcloud services enable run.googleapis.com \
                       containerregistry.googleapis.com \
                       firestore.googleapis.com

# Deploy to Cloud Run (source-based β€” no Dockerfile needed)
gcloud run deploy saviour-os \
  --source . \
  --port 3000 \
  --env-vars-file .env \
  --allow-unauthenticated \
  --region us-central1

Live instance: https://saviour-ai-260245018870.us-west1.run.app/


πŸ† Evaluation Grid Alignment

Criteria Weight How Saviour AI Achieves
Problem Solving & Impact 20% Transforms passive reminder fatigue into an active 5-agent recovery OS. Handles the full lifecycle: planning β†’ crisis β†’ recovery. Zero passive-only features.
Agentic Depth 20% 5 separate Gemini endpoint agents (breakdown, mitigate, chat, schedule, triage). Each returns structured JSON that maps directly onto UI state changes β€” not just text responses.
Innovation & Creativity 20% Cyberpunk CRT terminal HUD, real-time ambient sound synthesizer, guided breathing loops, GitHub-style habit heatmap, voice command input, Developer Bypass auth for sandbox environments.
Usage of Google Technologies 15% Gemini 2.5 Flash (structured output), Google Calendar API, Gmail Compose API, Firebase Auth + Firestore, Google Cloud Run deployment, Google OAuth 2.0, AI Studio build pipeline.
Product Experience & Design 10% Full-viewport immersive boot loader, SAVIOUR.OS terminal theme, Framer Motion stagger animations, 44px+ touch targets, responsive bento grid, skeleton loaders, empty states.
Technical Implementation 10% 100% TypeScript strict mode (0 lint errors). esbuild pipeline for CJS server bundling. Structured Gemini JSON schema responses. Firebase real-time sync. Dual-auth security architecture.
Completeness & Usability 5% Every feature is functional β€” no mock endpoints. Anonymous demo mode. Developer bypass for evaluators. Nodemailer fallback. Working Calendar + Gmail integration with token bypass.

🎨 Visual Design System

SAVIOUR.OS uses a custom cyberpunk design system defined in src/index.css:

  • Primary accent: #00ff41 β€” matrix green, used for active states, CTAs, and agent outputs
  • Background: #0a0a0a β€” near-black canvas with scanline atmospheric overlay
  • Terminal font: JetBrains Mono β€” all agent text, timestamps, CLI prompts
  • Display font: Space Grotesk β€” system headers and section titles
  • Scanlines: CSS repeating-linear-gradient overlay for CRT authenticity
  • Glow effects: box-shadow with green tint on active cards and selected nav items
  • 44px minimum touch targets β€” accessibility-compliant on all interactive elements

SAVIOUR.OS β€” Dismantling procrastination. Automating crisis recovery. Protecting developer momentum.

Made with ⚑ by Manish Kumar for Vibe2Ship Hackathon 2026

Live Demo

About

The Last-Minute Life Saver

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages