How ytani01/ytsched works
YtSched is a single-user personal scheduler: a browser user views and edits weekly schedules, while a CLI user can run utility commands such as holiday import, migration, and text notifications. The web request handler coordinates schedule loading, display construction, updates, settings, attachments, and trash; the browser provides week navigation and schedule controls. The README documents additional features whose detailed wiring was not sampled, so those links are marked unverified rather than inferred from module names.
Main entry points: main_handler.py Main request handler · ytsched.py Schedule data and JSONL · trash_handler.py Trash handler · webapp.py Web server
Components 22
Web experience
- Web server
src/ytsched/webapp.py - Main request handler
src/ytsched/main_handler.py - Edit handler
src/ytsched/edit_handler.py - Trash handler
src/ytsched/trash_handler.py - Weekly schedule UI
src/ytsched/webroot/static/js/week.js - Schedule controls
src/ytsched/webroot/static/js/main-page.js - Week navigation
src/ytsched/webroot/static/js/nav.js - Date gauge
src/ytsched/webroot/static/js/gauge.js - Swipe navigation
src/ytsched/webroot/static/js/swipe.js
Schedule core
- Display and settings binder
src/ytsched/main_binder.py - Schedule view builder
src/ytsched/main_view.py - Schedule loader
src/ytsched/sched_load.py - Schedule updater
src/ytsched/sched_update.py - Schedule data and JSONL
src/ytsched/ytsched.py
Records and recovery
- Attachment store
src/ytsched/attach.py - Trash archive
src/ytsched/trash.py - Configuration
src/ytsched/conf.py
CLI commands
- Holiday registration
src/ytsched/holiday.py - Text notifications
src/ytsched/notify.py - Legacy migration
src/ytsched/migrate.py
Other components
- Browser user
- CLI user
Connections 20
- Browser user → Web server: requests pages
README.md - Web server → Main request handler: routes requests
- Main request handler → Display and settings binder: updates settings
src/ytsched/main_handler.py - Main request handler → Display and settings binder: gets display arguments
src/ytsched/main_handler.py - Main request handler → Schedule view builder: builds display
src/ytsched/main_handler.py - Main request handler → Schedule updater: initializes updater
src/ytsched/main_handler.py - Main request handler → Schedule loader: initializes loader
src/ytsched/main_handler.py - Main request handler → Trash archive: counts entries
src/ytsched/main_handler.py - Main request handler → Schedule data and JSONL: reads cache size
src/ytsched/main_handler.py - Edit handler → Schedule data and JSONL: renders schedule entry
src/ytsched/edit_handler.py - Trash handler → Trash archive: reads and deletes
src/ytsched/trash_handler.py - Trash handler → Schedule data and JSONL: restores entry
src/ytsched/trash_handler.py - Weekly schedule UI → Main request handler: displays weekly schedule
README.md - Schedule controls → Main request handler: submits schedule actions
README.md - Week navigation → Main request handler: changes displayed week
README.md - Date gauge → Main request handler: jumps to week
README.md - Swipe navigation → Main request handler: changes displayed week
README.md - CLI user → Holiday registration: registers holidays
README.md - CLI user → Text notifications: requests notification text
README.md - CLI user → Legacy migration: converts legacy data
README.md