CalmAI — AI-Powered Mental Health & Wellness Companion
CalmAI is a complete Flutter source code for a mental wellness app (Android + iOS + Web Admin Panel). It combines an AI therapy chatbot, mood tracking, guided journaling, CBT thought records, breathing exercises, a gratitude journal, mood analytics, and weekly AI-generated wellness reports — all in a Living Sanctuary design (forest green palette, Newsreader + Manrope typography) with full dark mode support.
Includes a web-based admin panel with dashboard, user management, crisis conversation moderation, analytics, configuration editor, reports with CSV export, and audit log.
Built for developers who want to launch a mental health app quickly — everything is wired, tested, and ready to publish.
Try Before You Buy
Download Demo APK (Android):
Download CalmAI Demo APK from Google Drive
Note: Enable “Install from unknown sources” in your Android settings to run the demo.
️ Live Admin Panel Demo (Web):
https://calmai-fd671.web.app
Test Account: Email: admin@calmai.com / Password: 123456
✨ Key Features
- AI Therapy Chat — GPT-4o or Gemini-powered chatbot with CBT-based responses, conversation history, and conversation starters
- Mood Logging — 8 mood types, 1–5 intensity slider, trigger tags, and instant AI mood acknowledgment
- Guided Journal — Free write, AI-prompted, and CBT thought record (6-step) with AI review
- 5 Breathing Exercises — Box breathing, 4-7-8, deep calm, energize, sleep wind-down — fully animated, 100% offline
- Gratitude Journal — Daily 3-item entry, streak tracking, and a scrollable gratitude jar
- Voice Input & Text-to-Speech — Speak to CalmAI instead of typing; toggle voice mode to have AI responses read aloud
- Mood Analytics — Day streak counter, color-coded pattern insights, top mood triggers chart, and wellness score (fl_chart)
- White-Label Branding — Set app name, support email, privacy policy URL, and terms URL from the admin panel — no code changes needed
- Weekly AI Wellness Report — Personalized summary of wins, insights, and next-week intention (premium)
- Morning Affirmation — Personalized AI affirmation on the home dashboard
- Crisis Safety System — Client-side keyword detection, offline crisis resources (US/UK/AU/CA/International), always-visible professional help link
- Premium IAP — RevenueCat monthly + annual subscriptions, paywall screen
- AdMob Ads — Banner + interstitial, fully optional (disable via Remote Config)
- Dark Mode — Full dark theme with persisted user preference
- Firebase Auth — Email/password, Google Sign-In, Anonymous (guest mode)
- Push Notifications — Daily check-in reminders, streak alerts, weekly report
- GDPR-Ready — Full data export + one-tap account & data deletion
- Web Admin Panel — Dashboard with KPIs, user management (search, toggle premium, GDPR delete), crisis conversation moderation, mood analytics with charts, runtime configuration editor, weekly reports with CSV export, and immutable audit log
- Firebase Hosting — One-command deployment for the admin panel
- 160+ Unit Tests — Crisis detection, mood patterns, validators, all enums
Tech Stack
- Flutter 3.41 / Dart 3.11 — Android + iOS + Web Admin
- State Management: Riverpod 2.x
- Navigation: GoRouter 14.x
- Backend: Firebase (Auth, Firestore, Remote Config, FCM)
- AI: OpenAI GPT-4o + Google Gemini 1.5 Pro (switchable via Remote Config)
- IAP: RevenueCat
- Ads: Google AdMob
- Data Models: Freezed + JSON serializable
- Charts: fl_chart 0.69
- Voice: speech_to_text 7.x + flutter_tts 4.x
What’s Included
- Full Flutter source code — 25 mobile screens + 11 admin screens, clean architecture
- Web admin panel with dashboard, user management, moderation, analytics, config, reports, audit log
- All 5 breathing exercise animations (offline, no API)
- Offline crisis resource database (5 regions)
- Complete Firebase Firestore security rules
- Firebase Hosting config for admin panel deployment
- 160+ unit tests
- Offline HTML documentation + Quick Start Guide
⚙️ Requirements
- Flutter 3.41.x (stable channel)
- Firebase project (free Spark plan works for development)
- OpenAI API key or Google Gemini API key
- RevenueCat account (free tier available)
- AdMob account (optional — leave empty to disable all ads)
Changelog
Version 1.2.0 — April 2026 (Voice, Insights & White-Label Update)
- NEW: Voice input — tap the mic button in chat to speak your message; speech is transcribed and auto-populated in the text field
- NEW: Text-to-speech — toggle voice mode in chat to have CalmAI’s responses read aloud
- NEW: Day streak counter on the Analytics screen, pulling from the user profile’s live streak data
- NEW: Top Mood Triggers section on Analytics — horizontal bar chart showing the user’s top 5 recurring triggers with frequency counts
- NEW: Color-coded insight cards — each insight type (positive, downward trend, trigger, pattern) has a distinct icon and accent color
- NEW: White-label branding panel in Admin Config — set app name, support email, privacy policy URL, and terms URL at runtime from Firestore, no redeployment needed
- UPDATED: Admin Config screen pre-loads existing values from Firestore on open; all branding changes are audit-logged
Version 1.1.0 — April 2026 (Admin Panel Update)
- NEW: Web admin panel — dashboard with KPIs, user management, crisis conversation moderation, mood analytics, configuration editor, weekly reports with CSV export, immutable audit log
- NEW: Admin authentication with role-based access (superAdmin, admin, viewer)
- NEW: Audit trail — all admin actions logged with timestamp, admin identity, and details
- NEW: CSV export for reports, audit logs, and per-user mood logs/journal entries
- NEW: Crisis keyword and resource management via admin panel
- NEW: Firebase Hosting deployment for admin panel
- NEW: 160+ unit tests
- UPDATED: Design system — Living Sanctuary theme (forest green, Newsreader + Manrope typography)
- UPDATED: Flutter 3.41 / Dart 3.11
Version 1.0.0 — March 2026 (Initial Release)
- AI Therapy Chat with GPT-4o and Google Gemini 1.5 Pro (switchable via Remote Config)
- Mood logging — 8 mood types, intensity slider, trigger tags, AI acknowledgment
- Guided journal — free write, AI-prompted, and CBT thought record with AI review
- 5 guided breathing exercises — Box Breathing, 4-7-8, Deep Calm, Energize, Sleep Wind-Down
- Gratitude journal — daily entry, streak tracking, gratitude jar
- Mood analytics — trend charts, pattern insights, weekly wellness score
- Weekly AI wellness report — personalized summary, wins, insights (premium)
- Morning affirmation — personalized AI affirmation on home dashboard
- Firebase Auth — email/password, Google Sign-In, anonymous guest mode
- RevenueCat IAP — monthly and annual premium subscriptions, paywall screen
- AdMob — banner and interstitial ads (fully optional via Remote Config)
- Push notifications — daily reminders, streak alerts, weekly report notification
- Dark mode — full dark theme with persisted preference
- Crisis safety system — offline keyword detection, 5-region crisis resource database
- GDPR-ready — full data export and one-tap account deletion
Support
We’re here to help you get the app running and published.
Typical response time: within 24 hours on business days. Please include your CodeCanyon purchase code when reaching out.