A Flutter app that provides mindful reflection when attempting to open distracting apps, powered by AI conversation and text-to-speech technology.
BrainFreeze intercepts iOS app launches and provides AI-powered mindful reflection through voice conversations. When you try to open apps like Instagram, TikTok, or other potentially distracting applications, BrainFreeze pauses the launch and engages you in a thoughtful conversation about your intentions.
- App Interception: Seamlessly intercepts iOS app launches using Shortcuts automation
- AI-Powered Conversations: Google Gemini AI provides personalized reflection questions
- Text-to-Speech: ElevenLabs TTS speaks AI responses for hands-free interaction
- Voice Recognition: Speech-to-text for natural conversation flow
- Mindful Design: Icy blue theme with snowflake branding to promote calm reflection
- Smart Loop Prevention: Prevents automation loops when AI approves app access
- Flutter: Cross-platform mobile development framework
- Provider: State management pattern for reactive UI updates
- Swift: Native iOS integration for Shortcuts and App Intents
- Google Gemini AI: Conversational AI for generating reflection questions and responses
- ElevenLabs: High-quality text-to-speech API for AI voice output
- Speech-to-Text: Flutter's built-in speech recognition for user input
- iOS Shortcuts: Automation system for app interception
- App Intents: Swift framework for deep system integration
- URL Schemes: Custom app launching and inter-app communication
- AudioPlayers: Flutter package for audio playback management
- AVAudioSession: iOS audio session configuration for reliable speech output
- Camera: Real-time camera preview for immersive experience
- SharedPreferences: Local storage for user settings and loop prevention
- HTTP & Dio: Network clients for API communication
- Permission Handler: Runtime permission management
- Cursor IDE: AI-powered code editor used for development
- Claude Code: AI assistant for code generation and debugging
- Xcode: iOS development environment for Swift components
The app follows a clean architecture pattern with:
- Views: Flutter UI components with camera overlay and chat interface
- Services: AI chatbot service, TTS service, and URL scheme handlers
- Models: App state management and settings persistence
- ViewModels: Business logic for speech recognition and reflection flow
- Maulik Verma - Lead Developer
- Ian Suh - iOS Integration Specialist
- Faris Faizal - AI & Speech Technology Integration
- Flutter SDK (3.7.2 or higher)
- iOS development environment (Xcode 15+)
- ElevenLabs API key for text-to-speech functionality
- Google Gemini API key for AI conversations
- Clone the repository
- Install Flutter dependencies:
flutter pub get
- Configure API keys in the app settings
- Build and run on iOS device:
flutter run
- Install the companion Swift app for BrainFreeze intent functionality
- Set up Shortcuts automation to trigger BrainFreeze when opening target apps
- Grant necessary permissions for camera, microphone, and speech recognition
- Configure target apps in the settings
- When you attempt to open a configured app, BrainFreeze will intercept the launch
- Engage in voice conversation with the AI assistant
- Reflect on your intentions and decide mindfully whether to proceed
- The AI may approve immediate access based on your responses
- Real-time Audio Processing: Custom AudioPlayer management with session configuration
- iOS System Integration: Deep integration with iOS Shortcuts and automation
- AI Conversation Flow: Context-aware dialogue that adapts to user responses
- Robust Error Handling: Comprehensive error management for audio and network operations
- Performance Optimization: Efficient state management and memory handling
Built with ❄️ by the BrainFreeze team using cutting-edge AI and mobile technologies.