How white-devil-007/obsession-matrix works
Obsession Matrix is a desktop learning-management terminal for organizing hierarchical interests, tasks, progress logs, focus status, and settings. The primary workflow is a user entering commands in the terminal UI; the JavaScript bridge sends them to the Python API, which delegates command interpretation and domain operations to the parser and services, with records persisted in SQLite. The README documents dashboard, hierarchy navigation, settings, and recall features. The graph reflects shown calls and documented capabilities; unsampled frontend shell details are limited to the paths and roles stated in the README.
Main entry points: services.py Domain services · app.js Terminal controller · app_api.py JavaScript API bridge · notification_service.py Notification daemon
Components 18
Desktop interface
- Terminal controller
frontend/app.js - Desktop window
frontend/index.html - CRT themes
frontend/styles.css
Application logic
- JavaScript API bridge
backend/app_api.py - Command navigation
backend/command_parser.py
Learning domains
- Domain services
backend/services.py - Interest hierarchy
backend/services.py - Task lifecycle
backend/services.py - Progress history
backend/services.py - Dashboard summary
backend/services.py - Application settings
backend/services.py - Domain models
backend/models.py
Persistence and notifications
- SQLite database
backend/database.py - Runtime configuration
backend/config.py - Notification daemon
backend/notification_service.py
Other components
- Learner
- Desktop toast service
- Desktop runtime
Connections 20
- Learner → Terminal controller: enters commands
README.md - Terminal controller → JavaScript API bridge: calls bridge
frontend/app.js - Desktop runtime → Desktop window: opens window
- Desktop window → Terminal controller: hosts interface
README.md - Terminal controller → CRT themes: applies themes
README.md - JavaScript API bridge → Command navigation: executes commands
backend/app_api.py - Command navigation → Domain services: delegates operations
backend/command_parser.py - JavaScript API bridge → Domain services: fetches and mutates
backend/app_api.py - Domain services → SQLite database: queries and updates
backend/services.py - Domain services → Domain models: uses models
backend/services.py - Domain services → Runtime configuration: loads defaults
backend/services.py - SQLite database → Runtime configuration: uses database path
backend/database.py - Domain services → Interest hierarchy: manages interests
README.md - Domain services → Task lifecycle: manages tasks
README.md - Domain services → Progress history: records commits
README.md - Domain services → Dashboard summary: summarizes activity
README.md - Domain services → Application settings: reads settings
backend/services.py - Desktop runtime → Notification daemon: starts daemon
- Notification daemon → Domain services: reads focus summary
backend/notification_service.py - Notification daemon → Desktop toast service: sends toast
backend/notification_service.py