How volkanto/rook-lite works
Rook Lite is a browser-only, local-first daily notes and summaries app. The main workflow is navigating dated notes, editing and organizing them, then searching or generating period summaries; data persists in IndexedDB, with backup and export available. The graph includes the documented Ollama option and command-palette capabilities. Relationships use the supplied excerpts or README; unsampled route internals are represented by the main application node rather than inferred call chains.
Main entry points: main.ts App shell and views · commandPalette.ts Command palette · summaries.ts Summary engines · services.ts Note and category services
Components 18
Application experience
- App shell and views
src/main.ts - Client router
src/routing.ts - Command palette
src/command-palette/commandPalette.ts - Command registry
src/command-palette/commandRegistry.ts - Palette search
src/command-palette/commandSearch.ts - Search parser
src/command-palette/searchParser.ts - Command history
src/command-palette/commandHistory.ts - Tag autocomplete
src/tag-autocomplete.ts
Notes and storage
- Note and category services
src/services.ts - Markdown processing
src/markdown.ts - IndexedDB repositories
src/db.ts - Domain models
src/models.ts
Summaries
- Summary engines
src/summaries.ts
Portability and language
- Backup and exports
src/data.ts - Localization
src/i18n.ts
Other components
- User
- Local Ollama
- Browser IndexedDB
Connections 23
- User → App shell and views: uses
README.md - App shell and views → Client router: routes via
src/main.ts - App shell and views → Command palette: opens
src/main.ts - Command palette → Command registry: builds from
src/command-palette/commandPalette.ts - Command palette → Palette search: searches with
src/command-palette/commandPalette.ts - Command palette → Search parser: parses filters
src/command-palette/commandPalette.ts - Command palette → Command history: reads history
src/command-palette/commandPalette.ts - Palette search → Search parser: parses queries
src/command-palette/commandSearch.ts - Palette search → Note and category services: normalizes with
src/command-palette/commandSearch.ts - App shell and views → Note and category services: uses
src/main.ts - App shell and views → Backup and exports: invokes exports
src/main.ts - App shell and views → Localization: reads strings
src/main.ts - App shell and views → Markdown processing: escapes errors
src/main.ts - App shell and views → Tag autocomplete: uses
src/main.ts - Note and category services → IndexedDB repositories: persists notes
src/services.ts - Note and category services → Markdown processing: derives note text
src/services.ts - IndexedDB repositories → Browser IndexedDB: stores records
README.md - Backup and exports → IndexedDB repositories: snapshots data
src/data.ts - Backup and exports → Summary engines: uses prompt
src/data.ts - Summary engines → IndexedDB repositories: stores summaries
src/summaries.ts - Summary engines → Markdown processing: extracts text
src/summaries.ts - Summary engines → Localization: reads locale
src/summaries.ts - Summary engines → Local Ollama: requests summaries
src/summaries.ts