Skip to content

Repository files navigation

Deep Focus

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.

Project Status

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.

Mission

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.

Planned V1 Experience

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 Day AI assistance;
  • conditional Break Down This Task and Review My Day Lite AI 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.

Technology Stack

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.

Architecture Direction

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.

Getting Started

Prerequisites

  • Git;
  • Node.js LTS;
  • npm;
  • an Android emulator, iOS simulator where supported, Expo Go, or a compatible physical device.

Install and start

git clone https://github.com/randunukaushan/Deep-Focus.git
cd Deep-Focus
npm install
npx expo start

Never commit real secrets, private credentials, access tokens, or API keys. Environment configuration must follow docs/SECURITY.md.

Baseline verification

Run the checks applicable to the current project state:

npx expo-doctor
npx tsc --noEmit
npm run lint

Do not describe the application or a feature as tested unless the relevant checks and manual verification were actually completed.

Available scripts

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

V1 Implementation Roadmap

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.

Project Documentation

The documents in docs/ are the primary implementation reference.

Product and scope

Design and architecture

Data, API, and security

  • 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.

Development and quality

Before making a change, read AGENTS.md, read docs/AI_RULES.md completely, and review every document relevant to the work.

Contributing

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:, or chore:.

See docs/CONTRIBUTING.md for the complete workflow.

Security and Privacy

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.

Author

Created by Randunu Kaushan while learning in public and building Deep Focus through documented, testable development stages.

About

Deep Focus — An AI-powered productivity app designed to help users focus, reduce distractions, and build healthier work habits.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages