How affanshz/noktah works
Noktah is a native Windows desktop notch: approaching the screen edge reveals a panel for music, tasks, focus, system status, agent approvals, and AI chat; moving away returns it to a compact pill. The graph follows the documented UI and integration capabilities, with application state, background synchronization, and platform adapters as internal layers. README statements support the user-facing flows and integrations; source-index references support selected internal links. Some feature implementations were not sampled, so their connections are shown only where documented.
Main entry points: frame.rs Notch and viewport shell · app.rs Application state · sync.rs Background synchronization · ipc.rs Agent and tile IPC
Components 25
Notch interface
- Notch and viewport shell
native/app/src/presentation/shell/frame.rs - Feature pages
native/app/src/presentation/pages - Minimized pill
native/app/src/presentation/mini.rs - Noki mascot
native/app/src/presentation/mascot.rs - Settings viewport
native/app/src/presentation/pages/settings.rs
Application and domain
- Application state
native/app/src/app.rs - Background synchronization
native/app/src/presentation/shell/sync.rs - Settings model
native/core/src/settings.rs - Calendar parsing
native/core/src/calendar.rs - Status tile model
native/core/src/tile.rs
System integrations
- SMTC music adapter
native/app/src/infrastructure/music.rs - Lyrics lookup
native/app/src/infrastructure/lyrics_client.rs - AI chat adapter
native/app/src/infrastructure/ai.rs - Agent and tile IPC
native/app/src/infrastructure/ipc.rs - Tray and hotkey controls
native/app/src/infrastructure/os.rs - Calendar file worker
native/app/src/infrastructure/calendar_worker.rs - Background disk and OS I/O
native/app/src/infrastructure/bg_io.rs - noktah-hook CLI
native/hook/src/main.rs
Local data
- Local settings and cache
native/app/src/infrastructure/store.rs
Other components
- Desktop user
- Windows platform
- Media apps
- Claude Code
- AI providers
- Lyrics providers
Connections 26
- Desktop user → Notch and viewport shell: approaches edge
- Desktop user → Notch and viewport shell: uses hotkey
- Notch and viewport shell → Minimized pill: minimizes to
- Notch and viewport shell → Feature pages: shows pages
- Minimized pill → Noki mascot: renders mascot
native/app/src/presentation/mini.rs - Desktop user → Settings viewport: opens settings
- Settings viewport → Settings model: configures
native/app/src/presentation/pages/settings.rs - Application state → Notch and viewport shell: drives lifecycle
native/app/src/app.rs - Notch and viewport shell → Background synchronization: polls workers
native/app/src/presentation/shell/sync.rs - Background synchronization → SMTC music adapter: polls media
native/app/src/presentation/shell/sync.rs - SMTC music adapter → Media apps: reads SMTC
- Background synchronization → Lyrics lookup: requests lyrics
native/app/src/presentation/shell/sync.rs - Lyrics lookup → Lyrics providers: queries providers
native/app/src/infrastructure/lyrics_client.rs - Background synchronization → AI chat adapter: dispatches chat
native/app/src/presentation/shell/sync.rs - AI chat adapter → AI providers: sends requests
- Desktop user → noktah-hook CLI: submits commands
- noktah-hook CLI → Agent and tile IPC: forwards events
- Agent and tile IPC → Application state: delivers approvals
native/app/src/app.rs - Agent and tile IPC → Status tile model: delivers tile data
- Desktop user → Tray and hotkey controls: uses tray controls
- Tray and hotkey controls → Windows platform: registers hotkey
native/app/src/infrastructure/os.rs - Calendar file worker → Calendar parsing: parses calendar
native/app/src/infrastructure/calendar_worker.rs - Calendar file worker → Local settings and cache: resolves data path
native/app/src/infrastructure/calendar_worker.rs - Background disk and OS I/O → Local settings and cache: reads and writes
native/app/src/infrastructure/bg_io.rs - Application state → Background disk and OS I/O: queues persistence
native/app/src/app.rs - Application state → Settings model: holds configuration