How stack-42/peeko works
Peeko is a local-first Mac and Windows task list that watches computer activity and automatically completes tasks when configured evidence matches. Users choose presets or add manual/custom tasks, Peeko samples activity and evaluates checks, then saves daily progress for Today and History. The graph covers the documented product branches and both platform implementations; source excerpts show key scheduler and persistence behavior, while some UI and verifier connections are supported only by README documentation.
Main entry points: AppModel.swift App coordinator · Scheduler.swift Task scheduler · Store.swift Mac JSON store · Scheduler.cs Windows scheduler
Components 25
Task experience
- Mac menu UI
Sources/PeekoApp/Views/RootView.swift - Task catalog
Sources/PeekoApp/Views/CatalogGridView.swift - Today & settings
Sources/PeekoApp/Views/TodayView.swift - History view
Sources/PeekoApp/Views/HistoryView.swift - Windows tray UI
windows/src/Peeko.Windows/PeekoView.cs
Mac runtime
- App coordinator
Sources/PeekoApp/AppModel.swift - Task scheduler
Sources/PeekoCore/Scheduler/Scheduler.swift - Activity tracking
Sources/PeekoCore/Scheduler/ActivityTracker.swift - Task verifiers
Sources/PeekoCore/Verifiers - Break reminders
Sources/PeekoCore/Scheduler/BreakTracker.swift - History analysis
Sources/PeekoCore/History/History.swift - Notifications
Sources/PeekoApp/Notifier.swift
Windows runtime
- Windows scheduler
windows/src/Peeko.Core/Scheduler.cs - Windows activity
windows/src/Peeko.Core/ActivityTracker.cs - Windows verifiers
windows/src/Peeko.Core/Verifiers.cs - Online checks
windows/src/Peeko.Core/OnlineChecks.cs - Windows history
windows/src/Peeko.Core/History.cs
Local state
- Mac JSON store
Sources/PeekoCore/Store/Store.swift - Windows JSON store
windows/src/Peeko.Core/Store.cs - Task definitions
Sources/PeekoCore/Models/TaskDefinition.swift - Daily records
Sources/PeekoCore/Models/DayRecord.swift - App settings
Sources/PeekoCore/Models/AppSettings.swift
Other components
- User
- GitHub API
- External check services
Connections 29
- User → Mac menu UI: opens
- User → Windows tray UI: opens
- Mac menu UI → App coordinator: interacts
- Task catalog → App coordinator: configures tasks
Sources/PeekoApp/Views/CatalogGridView.swift - Today & settings → App coordinator: reads progress
Sources/PeekoApp/Views/TodayView.swift - History view → App coordinator: requests history
- Windows tray UI → Windows scheduler: starts runtime
windows/src/Peeko.Windows/Program.cs - App coordinator → Task scheduler: controls tasks
Sources/PeekoApp/AppModel.swift - App coordinator → Mac JSON store: loads settings
Sources/PeekoApp/AppModel.swift - App coordinator → Notifications: posts notices
Sources/PeekoApp/AppModel.swift - Task scheduler → Activity tracking: records samples
Sources/PeekoCore/Scheduler/Scheduler.swift - Task scheduler → Task verifiers: evaluates tasks
Sources/PeekoCore/Scheduler/Scheduler.swift - Task scheduler → Mac JSON store: saves progress
Sources/PeekoCore/Scheduler/Scheduler.swift - Task scheduler → Break reminders: tracks breaks
Sources/PeekoCore/Scheduler/Scheduler.swift - Task scheduler → Daily records: updates record
Sources/PeekoCore/Scheduler/Scheduler.swift - History analysis → Mac JSON store: reads day files
Sources/PeekoCore/History/History.swift - Task verifiers → GitHub API: checks public activity
- Task verifiers → External check services: queries services
- Windows scheduler → Windows activity: records samples
windows/src/Peeko.Core/Scheduler.cs - Windows scheduler → Windows verifiers: evaluates tasks
windows/src/Peeko.Core/Scheduler.cs - Windows scheduler → Online checks: runs online checks
windows/src/Peeko.Core/Scheduler.cs - Windows scheduler → Windows JSON store: saves progress
windows/src/Peeko.Core/Scheduler.cs - Windows history → Windows JSON store: reads day files
- Online checks → GitHub API: fetches public activity
- Online checks → External check services: queries services
- Mac JSON store → Task definitions: persists tasks
Sources/PeekoCore/Store/Store.swift - Mac JSON store → Daily records: persists days
Sources/PeekoCore/Store/Store.swift - Mac JSON store → App settings: persists settings
Sources/PeekoCore/Store/Store.swift - Windows JSON store → App settings: persists settings