ββββββββ ββββββ βββ ββββββ βββββββ βββ ββββββββββ βββββββ ββββββββ
βββββββββββββββββββ ββββββββββββββββββ βββββββββββ βββββββββββββββββ
βββββββββββββββββββ βββββββββ ββββββ βββββββββββ βββ βββββββββββ
ββββββββββββββββββββ ββββββββββ ββββββ βββββββββββ βββ βββββββββββ
βββββββββββ βββ βββββββ ββββββββββββββββββββββββ βββ βββββββββββββββββ
βββββββββββ βββ βββββ βββ βββββββ βββββββ βββ βββ βββββββ ββββββββ
"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."
| 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 |
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
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.
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
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.
- 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)
- 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
- 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
- Visual timeline with conflict detection
- Gemini-powered auto-realignment with explanation
- 1-click sync to Google Calendar
- 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
- 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
- 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)
recharts+d3real-time telemetry: completed vs outstanding, XP velocity, focus block metrics- On-time completion rate, streak analytics
- 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
| 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 |
- React 19 + Vite β zero-latency local dev, optimized production build
- TypeScript (strict mode,
tsc --noEmitgate on all PRs) - Tailwind CSS v4 β cyberpunk green-on-black design system with custom
@themetokens motion/react(Framer Motion v12) β page transitions, stagger animations, layout animationsrecharts+d3β analytics telemetry chartslucide-reactβ icon system
- Node.js + Express β API proxy architecture keeping all secrets server-side
@google/genaiSDK β Gemini structured output withresponseSchema+Type- Nodemailer β HTML transactional email (SMTP / simulated-send fallback)
esbuildβ bundlesserver.tsβdist/server.cjsfor Cloud Run cold-start optimizationtsxβ TypeScript dev runtime
- Firebase Authentication β Google OAuth identity
- Firebase Firestore β real-time NoSQL persistence
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)
Saviour AI uses a dual-mode authentication architecture designed to work in all environments β local dev, restricted cloud sandboxes, and production.
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.
- Go to Google OAuth Playground
- Authorize
calendar.events+gmail.composescopes - Exchange for Access Token (
ya29.prefix) - Paste into the Developer Bypass panel inside Saviour AI
- Instant credential channel β no redirect required
# 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# 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# 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-central1Live instance: https://saviour-ai-260245018870.us-west1.run.app/
| 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. |
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-gradientoverlay for CRT authenticity - Glow effects:
box-shadowwith 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