How sampozo/deep-focus works
DeepFocus is a zero-backend mobile deep-work timer. The user runs a session of three 90-minute work blocks and two breaks; transition audio and haptics signal changes, while wake lock keeps the screen on during the session. The README identifies HTML/CSS/vanilla JS and Capacitor, but the app’s implementation in index.html was not excerpted, so the internal split and runtime calls cannot be verified. The graph preserves the documented capabilities and marks only documented relationships; MainActivity is a Capacitor bridge entry point.
Main entry points: index.html DeepFocus app
Components 9
Session experience
- DeepFocus app
index.html - Work-break timer
index.html - Session transitions
index.html - Responsive design
index.html
Session signals
- Transition audio
index.html - Haptic alarms
index.html - Wake lock
index.html
Mobile shell
- Capacitor bridge
android/app/src/main/java/com/sping/deepfocus/MainActivity.java
Other components
- User
Connections 7
- User → DeepFocus app: uses
README.md - DeepFocus app → Work-break timer: runs
README.md - Work-break timer → Session transitions: alternates blocks
README.md - DeepFocus app → Responsive design: presents
README.md - Session transitions → Transition audio: plays tones
README.md - Session transitions → Haptic alarms: signals alarms
README.md - Work-break timer → Wake lock: keeps screen awake
README.md