Skip to content

optimizing daily life and supporting users navigate mental health through mindful structure and AI assistance

Notifications You must be signed in to change notification settings

willofcode/flowmind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

42 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FlowMind - AI-Powered Neurodivergent Planning App

Built for SBU Hack25' - Optimizing daily life through mindful structure and AI assistance

Designed for ADHD, autistic, dyslexic, and neurodivergent users
Lower cognitive load โ€ข Voice-first interface โ€ข Intelligent scheduling โ€ข Compassionate support

FlowMind is a therapeutic planning companion that uses AI-driven conversation and schedule intelligence to help neurodivergent users manage their day with less stress. Powered by IBM NeuralSeek's mAIstro for sentiment analysis and OpenAI Whisper for voice transcription.

๐ŸŽฌ Video Demo

FlowMind Demo

Watch the full demo: https://www.youtube.com/watch?v=4L5e3T1ukhQ


๐Ÿง  Key Features

Voice-First Conversational AI

  • ๐ŸŽ™๏ธ Voice Mood Check-ins: Speak naturally about how you're feeling
  • ๐Ÿค– AI Sentiment Analysis: mAIstro analyzes mood with schedule correlation
  • ๐Ÿ”Š TTS Responses: ElevenLabs generates empathetic voice responses
  • ๐Ÿ“Š Mood Tracking: Continuous mood patterns with schedule impact analysis
  • ๐Ÿ’ฌ Multi-turn Conversations: Natural dialogue that remembers context

Intelligent Calendar Integration

  • ๐Ÿ“… Google Calendar Sync: Automatic schedule analysis
  • โฐ Schedule Intensity Detection: High/medium/low workload calculation
  • ๐ŸŽฏ Agentic Activity Generation: AI fills gaps with workouts, meals, breathing breaks
  • ๐Ÿ”„ Real-time Updates: Webhook-based calendar monitoring
  • ๐Ÿ“ˆ Pattern Discovery: AI learns optimal activity timing from your habits

Intelligent Schedule

Neurodivergent-First Design

  • Calm UI Mode: Reduced motion, high contrast (WCAG AAA), larger touch targets
  • Micro-Steps: Every task broken into 3-5 concrete actions
  • Choice Architecture: Max 2 options to reduce decision fatigue
  • Predictable Timing: 10-3-1 minute nudges (gentle haptics)
  • Energy-Aware: Activities only during your peak energy windows
  • No Guilt Design: Skip buttons always visible, no streak shaming

Privacy & Data Security

  • Local-First: Profile stored securely on device (expo-secure-store)
  • Supabase Backend: Optional cloud sync with row-level security
  • OAuth 2.0: Secure Google Calendar integration via Auth0
  • Encrypted Storage: All sensitive data encrypted at rest

Agentic Flow - AI Activity Generation


๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                  iOS App (Expo/React Native)             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚
โ”‚  โ”‚  Today   โ”‚  โ”‚ Explore  โ”‚  โ”‚  Mood    โ”‚  โ”‚ Profile  โ”‚โ”‚
โ”‚  โ”‚  View    โ”‚  โ”‚   Tab    โ”‚  โ”‚ Check-in โ”‚  โ”‚ Settings โ”‚โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”‚
โ”‚        โ†“             โ†“             โ†“             โ†“       โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚  Voice Recording (expo-av) + Secure Storage       โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                         โ”‚ HTTPS/REST API
                         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              Node.js Backend (Express)                   โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”              โ”‚
โ”‚  โ”‚  API Routes     โ”‚  โ”‚  Services       โ”‚              โ”‚
โ”‚  โ”‚  โ€ข Users        โ”‚  โ”‚  โ€ข Conversationalโ”‚             โ”‚
โ”‚  โ”‚  โ€ข Conversation โ”‚  โ”‚    Agent        โ”‚             โ”‚
โ”‚  โ”‚  โ€ข Calendar     โ”‚  โ”‚  โ€ข Calendar Syncโ”‚             โ”‚
โ”‚  โ”‚  โ€ข Mood         โ”‚  โ”‚  โ€ข Agentic      โ”‚             โ”‚
โ”‚  โ”‚  โ€ข Orchestrationโ”‚  โ”‚  โ€ข Health       โ”‚             โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜              โ”‚
โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
     โ”‚        โ”‚          โ”‚         โ”‚
     โ–ผ        โ–ผ          โ–ผ         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚Supabase โ”‚ โ”‚NeuralSeekโ”‚ โ”‚ OpenAI  โ”‚ โ”‚  ElevenLabs     โ”‚
โ”‚PostgreSQLโ”‚ โ”‚ mAIstro  โ”‚ โ”‚ Whisper โ”‚ โ”‚  TTS (Rachel)  โ”‚
โ”‚         โ”‚ โ”‚          โ”‚ โ”‚         โ”‚ โ”‚                 โ”‚
โ”‚ โ€ข Users โ”‚ โ”‚ โ€ข Sentimentโ”‚ โ”‚ โ€ข Voice โ”‚ โ”‚ โ€ข Voice Responseโ”‚
โ”‚ โ€ข Moods โ”‚ โ”‚   Analysisโ”‚ โ”‚  Transcrโ”‚ โ”‚ โ€ข Calm tone    โ”‚
โ”‚ โ€ข Plans โ”‚ โ”‚ โ€ข Scheduleโ”‚ โ”‚  iption โ”‚ โ”‚ โ€ข Empathetic   โ”‚
โ”‚ โ€ข Eventsโ”‚ โ”‚  Correlationโ”‚ โ”‚       โ”‚ โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚    Google Calendar API           โ”‚
โ”‚  โ€ข OAuth 2.0 via Auth0          โ”‚
โ”‚  โ€ข Webhook subscriptions        โ”‚
โ”‚  โ€ข FreeBusy queries             โ”‚
โ”‚  โ€ข Event creation               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“ฑ Tech Stack

Client (iOS - Expo/React Native)

  • Expo SDK 52 - Cross-platform mobile framework
  • TypeScript - Type safety and developer experience
  • expo-av - Audio recording for voice input
  • expo-haptics - Sensory-friendly tactile feedback
  • expo-secure-store - Encrypted local profile storage
  • @react-native-google-signin/google-signin - Google OAuth
  • @supabase/supabase-js - Cloud database client

Server (Node.js/Express)

  • Express 4.x - REST API framework
  • ES Modules - Modern JavaScript syntax
  • Supabase Client - PostgreSQL database access
  • node-fetch - HTTP client for external APIs
  • Webhook System - Google Calendar real-time updates

External APIs & Services

  • IBM NeuralSeek mAIstro - Agentic Framework Orchestration to extract AI sentiment analysis & conversational responses
  • OpenAI Whisper - Voice-to-text transcription ($0.006/min)
  • ElevenLabs TTS - Text-to-speech with Rachel voice (10k chars/month free)
  • Google Calendar API - Schedule synchronization & event management
  • Supabase - PostgreSQL database with real-time subscriptions
  • Auth0 - OAuth 2.0 authentication provider

Database (Supabase/PostgreSQL)

Core Tables:

-- User management (email-based, Auth0 optional)
users (id UUID, email, name, auth0_sub, created_at)

-- Neurodivergent preferences & personality
user_profiles (user_id, neuro_preferences JSONB, personality_traits JSONB)

-- Voice mood check-ins with AI analysis
mood_check_ins (id, user_id, transcription, mood_score, ai_analysis JSONB)

-- Weekly schedule context
weekly_schedules (id, user_id, avg_daily_density, daily_breakdown JSONB)

-- AI-discovered patterns
mood_patterns (id, user_id, pattern_type, confidence_score, recommendations JSONB)

-- Conversation history for mAIstro context
conversations (id, user_id, role, message, mood_score, created_at)

-- Calendar sync events
calendar_sync_events (id, user_id, event_id, start_time, end_time, title)

-- AI-generated activities
agentic_activities (id, user_id, activity_type, title, start_time, duration_sec)


๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+ and npm
  • Xcode 14+ (for iOS development)
  • Expo CLI (npm install -g expo-cli)
  • Accounts Required:

1. Clone & Install

git clone https://github.com/willofcode/flowmind.git
cd flowmind

# Install server dependencies
cd server
npm install

# Install client dependencies
cd ../client
npm install

2. Set Up Database

  1. Create a Supabase project
  2. Run the complete schema:
    # Copy SQL from supabase-schema.sql in root directory
    # Paste into Supabase SQL Editor and execute
  3. Copy your project URL and anon key

3. Google Calendar Setup

Follow detailed guides in:

  • Guide/GOOGLE_CALENDAR_INTEGRATION_COMPLETE.md - Complete OAuth setup
  • Guide/QUICK_TEST_GUIDE.md - Testing checklist

Quick Steps:

  1. Enable Calendar API in Google Cloud Console
  2. Create OAuth 2.0 credentials (iOS + Web app)
  3. Add authorized redirect URIs:
    • https://dev-YOUR_TENANT.us.auth0.com/login/callback
    • com.googleusercontent.apps.YOUR_CLIENT_ID:/oauth2redirect/google
  4. Download GoogleService-Info.plist โ†’ client/ folder
  5. Set up ngrok tunnel for webhooks:
    ngrok http 3001
    # Copy HTTPS URL to GOOGLE_CALENDAR_WEBHOOK_URL

4. Voice Transcription Setup

See Guide/VOICE_TRANSCRIPTION_ELEVENLABS_SETUP.md for complete guide.

Quick OpenAI Whisper Setup:

  1. Get API key from OpenAI Platform
  2. Add to client/.env:
    EXPO_PUBLIC_OPENAI_API_KEY=sk-your_key_here
  3. Cost: $0.006 per minute ($5 credit = ~833 minutes)

ElevenLabs TTS Setup:

  1. Get API key from ElevenLabs
  2. Add to server/.env:
    ELEVENLABS_API_KEY=sk_your_key_here
  3. Free tier: 10,000 characters/month (~20-30 conversations)

5. Run the App

Terminal 1 - Backend Server:

cd server
npm start

# Should see:
# โœ… Database connected
# โœ… NeuralSeek connected
# ๐ŸŽ‰ FlowMind API Server running on http://localhost:3001

Terminal 2 - iOS Client:

cd client
npx expo prebuild  # First time only - generates native iOS folder
npm run ios        # Opens Xcode simulator

6. Test Voice Features

  1. Mood Check-in with Voice:

    • Open app โ†’ Explore tab
    • Tap conversation bubble icon
    • Tap microphone ๐ŸŽค
    • Speak: "I'm feeling great today!"
    • Watch AI analyze sentiment + play TTS response
  2. Calendar Sync:

    • Sign in with Google
    • App automatically fetches schedule
    • AI generates activities based on free time
  3. Breathing Sessions:

    • Navigate to calm session screen
    • Choose 5/10/15 minute session
    • Listen to guided TTS breathing exercise

๐Ÿ“– Usage Guide

First Launch: Create Your Neuro Profile

  1. Open app โ†’ Profile tab
  2. Answer questions about:
    • Activities: Preferred workouts (walks, yoga, weights...)
    • Energy Windows: When you have focus/energy (e.g., 10am-12pm, 4pm-6pm)
    • Focus Limits: Maximum focus block length (e.g., 25 minutes)
    • Sensory Preferences:
      • Reduced motion animations
      • Haptics-only feedback (no sounds)
      • High contrast mode
      • Silent mode schedule
    • Diet: Style (Mediterranean, vegan...) & restrictions
    • Sleep: Usual bedtime & wake time
    • Buffer Policy: Pre/post activity padding (default: 10 min)

Voice Mood Check-in (Main Feature)

  1. Explore Tab โ†’ Tap floating conversation icon
  2. Record Voice Message:
    • Tap microphone ๐ŸŽค
    • Speak naturally: "I'm feeling overwhelmed with today's schedule"
    • Tap stop when done
  3. AI Analysis:
    • OpenAI Whisper transcribes your voice
    • mAIstro analyzes sentiment + correlates with calendar
    • Mood score calculated (1-10)
    • Schedule impact assessed (high/medium/low intensity)
  4. Empathetic Response:
    • AI generates supportive response
    • ElevenLabs TTS plays voice response (Rachel voice)
    • Recommendations displayed
  5. Continue Conversation:
    • Multi-turn dialogue supported
    • AI remembers context from previous turns
    • Can type text or use voice

Today View - What to Do Now

  1. Today tab shows your next scheduled activity
  2. See 3 micro-steps with concrete actions:
    • โœ… "Fill water bottle"
    • โœ… "Put on sneakers"
    • โœ… "Go outside for 5-minute walk"
  3. Tap "Start" when ready
  4. Get 10-3-1 minute nudges (gentle haptic feedback)
  5. Complete micro-steps one by one
  6. Tap "Complete" when done
  7. Options:
    • Swap Alternative: Quick A/B alternative activity
    • Skip: No guilt, always available

Calendar-Based Activity Generation

  1. Google Calendar Sync:
    • App fetches your schedule every 10 seconds
    • Calculates schedule intensity:
      • High (>70% busy): Insert 5-10 min breathing breaks only
      • Medium (40-70%): Add movement snacks + meals
      • Low (<40%): Full workouts + meal prep + optional activities
  2. Automatic Gap Filling:
    • AI detects free time windows
    • Generates appropriate activities
    • Respects energy windows from profile
    • Applies buffer rules (10 min before/after)
  3. Activity Types:
    • ๐Ÿƒ Workouts (15-60 min)
    • ๐Ÿฝ๏ธ Meals (30-45 min)
    • ๐Ÿง˜ Breathing sessions (5-15 min)
    • ๐Ÿšถ Movement snacks (10 min)

Breathing Sessions with TTS

  1. Navigate to Calm Session screen
  2. Choose duration: 5 / 10 / 15 minutes
  3. AI generates personalized breathing script
  4. ElevenLabs creates soothing audio guidance
  5. Play session:
    • Calm voice (Rachel)
    • Gentle pacing
    • Grounding techniques
    • Can pause/resume
  6. Sessions cached for reuse (saves API costs)

๐Ÿงฉ Project Structure

flowmind/
โ”œโ”€โ”€ client/                          # Expo/React Native iOS app
โ”‚   โ”œโ”€โ”€ app/                         # App screens (Expo Router)
โ”‚   โ”‚   โ”œโ”€โ”€ (tabs)/                  # Tab navigation
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ index.tsx            # Today View - next activity
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ explore.tsx          # Browse + conversation mode
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ mood-insights.tsx    # Mood tracking history
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ profile.tsx          # Settings & preferences
โ”‚   โ”‚   โ”œโ”€โ”€ welcome.tsx              # Conversation mode (voice/text)
โ”‚   โ”‚   โ”œโ”€โ”€ mood-checkin.tsx         # Voice mood check-in
โ”‚   โ”‚   โ”œโ”€โ”€ calm-session.tsx         # Breathing/meditation TTS
โ”‚   โ”‚   โ”œโ”€โ”€ sign-in.tsx              # Google OAuth login
โ”‚   โ”‚   โ””โ”€โ”€ _layout.tsx              # App navigation structure
โ”‚   โ”œโ”€โ”€ components/                  # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ today-view.tsx           # Main focus card with micro-steps
โ”‚   โ”‚   โ”œโ”€โ”€ task-bubble.tsx          # Activity cards with shapes
โ”‚   โ”‚   โ”œโ”€โ”€ mood-checkin-stt.tsx     # Voice recording component
โ”‚   โ”‚   โ”œโ”€โ”€ conversational-mood-checkin.tsx # Multi-turn conversation
โ”‚   โ”‚   โ””โ”€โ”€ ui/                      # Base components (button, card, etc.)
โ”‚   โ”œโ”€โ”€ lib/                         # Client-side logic
โ”‚   โ”‚   โ”œโ”€โ”€ api-client.ts            # Backend API wrapper
โ”‚   โ”‚   โ”œโ”€โ”€ profile-store.ts         # Encrypted local storage
โ”‚   โ”‚   โ”œโ”€โ”€ google-auth.ts           # Google OAuth client
โ”‚   โ”‚   โ”œโ”€โ”€ voice-transcription.ts   # OpenAI Whisper integration
โ”‚   โ”‚   โ””โ”€โ”€ notification-manager.ts  # 10-3-1 nudge system
โ”‚   โ”œโ”€โ”€ types/                       # TypeScript definitions
โ”‚   โ”‚   โ””โ”€โ”€ neuro-profile.ts         # Core data types
โ”‚   โ”œโ”€โ”€ constants/                   # Design tokens
โ”‚   โ”‚   โ”œโ”€โ”€ calm-theme.ts            # Neurodivergent-friendly design
โ”‚   โ”‚   โ””โ”€โ”€ theme.ts                 # Original theme
โ”‚   โ”œโ”€โ”€ GoogleService-Info.plist     # Google OAuth config (iOS)
โ”‚   โ””โ”€โ”€ app.json                     # Expo configuration
โ”œโ”€โ”€ server/                          # Node.js/Express backend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ routes/                  # API endpoints
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ conversation.routes.js   # Voice mood analysis
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ calendar-sync.routes.js  # Google Calendar webhooks
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ agentic.routes.js        # AI activity generation
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ mood.routes.js           # Mood tracking
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ users.routes.js          # User management
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ schedules.routes.js      # Weekly schedules
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ orchestration.routes.js  # AI orchestration
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ health.routes.js         # Health check
โ”‚   โ”‚   โ”œโ”€โ”€ services/                # Business logic
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ conversational-agent.service.js  # mAIstro + TTS
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ calendar-sync.service.js         # Google Calendar
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ agentic-activities.service.js    # Activity generation
โ”‚   โ”‚   โ”œโ”€โ”€ config/                  # Configuration
โ”‚   โ”‚   โ”œโ”€โ”€ middleware/              # Express middleware
โ”‚   โ”‚   โ””โ”€โ”€ utils/                   # Helper functions
โ”‚   โ”œโ”€โ”€ index.js                     # Server entry point
โ”‚   โ”œโ”€โ”€ .env.example                 # Environment variable template
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ Guide/                           # Implementation documentation
โ”‚   โ”œโ”€โ”€ CONVERSATION_INTEGRATION_COMPLETE.md  # Voice conversation guide
โ”‚   โ”œโ”€โ”€ GOOGLE_CALENDAR_INTEGRATION_COMPLETE.md  # OAuth setup
โ”‚   โ”œโ”€โ”€ VOICE_TRANSCRIPTION_ELEVENLABS_SETUP.md  # STT/TTS guide
โ”‚   โ”œโ”€โ”€ CALENDAR_OPTIMIZER_ARCHITECTURE.md  # AI scheduling logic
โ”‚   โ”œโ”€โ”€ DESIGN_PATTERNS.md           # UX principles
โ”‚   โ””โ”€โ”€ *.md                         # Additional guides
โ”œโ”€โ”€ supabase-schema.sql              # Complete database schema
โ”œโ”€โ”€ README.md                        # This file
โ””โ”€โ”€ .gitignore                       # Excluded files

๐ŸŽจ Design Principles

Cognitive Load Reduction

  • One thing at a time - Today view shows ONLY next block
  • Minimal choices - Max 2 options (A/B)
  • Clear hierarchy - Large titles, obvious CTAs

Sensory Considerations

  • High contrast - AAA WCAG compliance
  • Reduced motion - Optional animations
  • Haptics over sound - Non-intrusive feedback
  • Larger touch targets - 48-56px minimum

Predictability & Routine

  • Consistent timing - Same windows daily
  • Buffers - Always 10 min before/after
  • Fallbacks - Never "no plan" - always micro-option

Compassionate Design

  • No guilt - Skip button always visible
  • Gentle nudges - "Put on shoes" not "WORKOUT NOW!"
  • Energy-aware - Never push when you're depleted

๐Ÿ”ฎ Roadmap

v1.1 - Voice & Speech

  • Expo Speech (TTS) for micro-step narration
  • Voice commands via Whisper API
  • Hands-free mode toggle

v1.2 - Enhanced Notifications

  • Adaptive nudge timing based on response patterns
  • Custom nudge messages per user
  • Silent mode schedule (e.g., silent after 9pm)

v1.3 - Advanced Voice Features

  • Real-time STT (no stop button needed)
  • Emotion detection from voice tone
  • Multi-language support (Spanish, French, German)
  • Offline voice processing (on-device ML)
  • Voice-only mode (fully hands-free)

v2.0 - Multi-Platform

  • Android version (React Native)
  • Web dashboard (insights & history)
  • Apple Watch complications
  • Siri shortcuts integration
  • Calendar widget for iOS home screen

๐Ÿงช Testing

Manual Testing Checklist

Voice Features:

  • Record voice mood check-in (Explore tab โ†’ mic button)
  • Verify Whisper transcription accuracy
  • Check mAIstro sentiment analysis in console logs
  • Confirm TTS audio plays with Rachel voice
  • Test multi-turn conversation (follow-up questions)
  • Verify mood score calculation (1-10 scale)

Calendar Integration:

  • Sign in with Google account
  • Confirm calendar events appear in app
  • Verify schedule intensity calculation
  • Check AI-generated activities in gaps
  • Test webhook updates (real-time sync)

UI/UX:

  • Toggle reduced motion (Profile โ†’ Sensory)
  • Test haptic feedback on all buttons
  • Verify high contrast mode
  • Check touch target sizes (โ‰ฅ48px)
  • Test micro-steps display (3-5 items)

Backend Health:

curl http://localhost:3001/health

# Expected response:
{
  "status": "healthy",
  "database": "connected",
  "neuralseek": "connected",
  "elevenlabs": "configured"
}

๐Ÿค Contributing

We welcome contributions, especially from neurodivergent developers!

Getting Started

  1. Read Guide/DESIGN_PATTERNS.md for UX principles
  2. Check GitHub Issues for tasks
  3. Fork the repo and create a feature branch
  4. Follow existing code style (TypeScript, ESLint)
  5. Test on real iOS devices when possible
  6. Submit PR with clear description

Priority Areas

  • Android support (React Native)
  • Offline mode improvements
  • Voice command expansion
  • Localization (i18n)
  • Performance optimization
  • Accessibility improvements

๐Ÿ“„ License

MIT License - See LICENSE file

Copyright (c) 2025 FlowMind Team


๐Ÿ’™ Acknowledgments

Built with love for the neurodivergent community at SBU Hack25'.

Special Thanks:

  • ADHD & autistic beta testers who provided invaluable feedback
  • Accessibility advocates who reviewed our design principles
  • IBM NeuralSeek team for mAIstro support
  • ElevenLabs for calming TTS voices
  • OpenAI for Whisper transcription accuracy
  • Neurodivergent design experts and consultants

Inspiration:
This app was built by someone with ADHD, for people who think differently. Every feature is designed to reduce friction, not add it.


๐Ÿ“ž Support & Community

Quick Links


Made with ๐Ÿง  for minds that flow differently

"The world wasn't built for us. So we built our own tool."

About

optimizing daily life and supporting users navigate mental health through mindful structure and AI assistance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published