A calm, privacy-conscious productivity application for protecting attention, completing reliable focus sessions, and building sustainable work habits.
Deep Focus is being developed as a cross-platform mobile application for people who want to work with greater intention without turning productivity into constant pressure. It combines focused work, thoughtful recovery, progress insights, and optional AI assistance while keeping the user in control.
Deep Focus is currently in Phase 1 — Application Foundation.
- Phase 0 project-readiness work is complete.
- The initial React Native and Expo project foundation exists.
- Shared design tokens and the first accessible shared component are in place.
- Navigation, reusable components, services, persistence, and error-state foundations are being completed before dependent V1 features begin.
- Features listed below describe the approved V1 direction and must not be treated as implemented until they have been built and verified.
Deep Focus exists to help people regain control over their attention and develop a healthier relationship with productivity technology.
The project is guided by five principles:
- protect attention instead of competing for it;
- support sustainable productivity and appropriate recovery;
- keep users in control of their data and decisions;
- create a calm, simple, and accessible experience;
- use AI as optional guidance rather than an authority or core dependency.
The core V1 journey is designed around a reliable focus workflow:
Choose a task or goal
↓
Configure a focus session
↓
Start and remain focused
↓
Pause or resume where supported
↓
Complete or cancel safely
↓
Persist and recover session data
↓
Update verified progress and insights
Planned V1 capabilities include:
- authentication and user settings;
- reliable focus sessions with lifecycle recovery;
- tasks and goals;
- True Zen Break recovery experiences;
- session history and productivity analytics;
- Focus XP, levels, streaks, and approved achievements;
- notifications and accessibility settings;
- personal assessment and an assessment-based Productivity Profile;
- required V1
Plan My DayAI assistance; - conditional
Break Down This TaskandReview My Day LiteAI assistance when release guardrails are satisfied; - offline behavior, synchronization, and duplicate-processing protection.
Deep Focus does not use real-money rewards, gambling, or cash-based focus bets. Optional AI features must remain private, transparent, dismissible, and unable to block the core focus experience.
The current mobile foundation uses:
- TypeScript;
- React Native;
- React;
- Expo SDK 56;
- Expo Router;
- functional React components and React Hooks.
The exact installed versions are defined in package.json and package-lock.json.
Backend, database, authentication-provider, state-management, and AI-provider choices must not be treated as approved commitments until an implementation requirement and the project documentation explicitly approve them.
Deep Focus follows a modular, maintainable architecture with clear separation between:
- route and presentation composition;
- application and business logic;
- domain rules and types;
- data access and persistence;
- external services and infrastructure.
Implementation should reuse the approved design system and components, keep route files lightweight, protect user privacy, and build complete vertical feature slices rather than disconnected layers.
- Git;
- Node.js LTS;
- npm;
- an Android emulator, iOS simulator where supported, Expo Go, or a compatible physical device.
git clone https://github.com/randunukaushan/Deep-Focus.git
cd Deep-Focus
npm install
npx expo startNever commit real secrets, private credentials, access tokens, or API keys. Environment configuration must follow docs/SECURITY.md.
Run the checks applicable to the current project state:
npx expo-doctor
npx tsc --noEmit
npm run lintDo not describe the application or a feature as tested unless the relevant checks and manual verification were actually completed.
| Command | Purpose |
|---|---|
npm start |
Start the Expo development server |
npm run android |
Start Expo and open the Android development target |
npm run ios |
Start Expo and open the iOS development target where supported |
npm run web |
Start the web development target |
npm run lint |
Run the configured Expo lint checks |
Development follows the dependency order defined in docs/V1_IMPLEMENTATION_PLAN.md:
- Phase 0 — Project Readiness
- Phase 1 — Application Foundation (in progress)
- Phase 2 — Authentication and User Foundation
- Phase 3 — Core Focus Session System
- Phase 4 — Tasks and Goals
- Phase 5 — Streaks, Rewards, and Analytics
- Phase 6 — Settings, Notifications, and Accessibility
- Phase 7 — Assessment and approved AI Features
- Phase 8 — Synchronization and Recovery Hardening
- Phase 9 — Testing and Release Hardening
- Phase 10 — V1 Release
The reliable core focus-session system remains the highest implementation priority. Secondary features should not bypass incomplete foundations.
The documents in docs/ are the primary implementation reference.
PROJECT_VISION.md— mission, long-term vision, and values;BLUEPRINT.md— product behavior, features, navigation, and roadmap;V1_FEATURE_SCOPE.md— canonical V1 user-facing feature list and release guardrails;V1_SCREEN_MAP.md— canonical V1 route, navigation, and route-versus-state map;POST_V1_FEATURE_SCOPE.md— deferred V1.1 and longer-term feature directions;V1_IMPLEMENTATION_PLAN.md— approved V1 sequence, completion criteria, and scope control.
UI_UX_DESIGN_SPECIFICATION.md— interface and interaction requirements;COMPONENT_LIBRARY.md— approved reusable UI patterns;ARCHITECTURE.md— layers, data flow, navigation, security, and technology direction.
DATA_MODEL.md— domain entities, relationships, and lifecycle rules;DATABASE_SCHEMA.md— schema, constraints, and database responsibilities;API_SPEC.md— API contracts and endpoint behavior;SECURITY.md— authentication, authorization, privacy, secrets, and secure-development requirements.
AGENTS.md— repository-wide instructions for AI assistants and contributors;AI_RULES.md— mandatory AI and project-development rules;DEVELOPMENT_GUIDE.md— setup, coding standards, Git workflow, and engineering practices;TESTING_STRATEGY.md— testing levels and verification expectations;CONTRIBUTING.md— contribution and review workflow;CHANGELOG.md— documented project changes.
Before making a change, read AGENTS.md, read docs/AI_RULES.md completely, and review every document relevant to the work.
Contributions should:
- stay within the approved V1 scope and current phase;
- remain small, focused, and reviewable;
- use established architecture, design tokens, and components;
- include appropriate testing and self-review;
- update affected documentation when behavior changes;
- use Conventional Commits such as
feat:,fix:,docs:,refactor:,test:, orchore:.
See docs/CONTRIBUTING.md for the complete workflow.
Security and privacy requirements apply from the beginning of development. Report security concerns responsibly and avoid placing sensitive details in public issues. See docs/SECURITY.md for the approved project requirements.
Created by Randunu Kaushan while learning in public and building Deep Focus through documented, testable development stages.