FocusShield-AI-Distraction-Interceptor

Stars
6
Language
Objective-C
Updated

FocusShield - AI Distraction Interceptor

An iOS app in Objective-C that uses on-device behavioral pattern detection to identify distraction loops and intervenes in real time with intelligent friction.

Features

  • Distraction Detection: Uses Screen Time APIs to monitor app usage and detect patterns.
  • Intelligent Interventions: Triggers breathing animations, prompts, or app shields based on distraction level.
  • Focus Score: Calculates daily focus score based on distraction and deep work.
  • Privacy-First: All processing is done locally on-device.

Architecture

  • Frontend: UIKit-based dashboard.
  • Intelligence Layer: Core ML for classification.
  • Data Layer: Core Data for logging.
  • Managers: DistractionEngineManager, FocusScoreManager, InterventionManager, UsageMonitorManager.

Requirements

  • iOS 15+
  • Xcode 13+
  • Frameworks: UIKit, Core Data, Core ML, DeviceActivity, FamilyControls, ManagedSettings.

Building

Open the project in Xcode and build.

For VS Code, use xcodebuild.

Monetization

  • Free tier: Basic tracking and 3 interventions/day.
  • Pro: Unlimited interventions, AI personalization, insights.