How martinkoutecky/tine works
Tine is a local-first desktop outliner for Logseq-compatible Markdown graphs. The main workflow is opening a graph, editing pages in the frontend, and persisting changes through the native backend to graph files; search, queries, sheets, and publishing form related read-oriented workflows. The README documents major user-facing capabilities, while excerpts show frontend-to-backend calls, document saves, and query execution. Several subsystems are represented by their exact source paths but were not sampled, so their internal calls are not inferred.
Main entry points: App.tsx Application shell · backend.ts Backend bridge · store.rs Graph store · commands.rs Native commands
Components 20
Frontend experience
- Application shell
src/App.tsx - Page editor
src/document/index.ts - Save coordinator
src/document/save/engine.ts - Query workspace
src/components/QueryWorkspace.tsx - Query model
src/editor/queryIr.ts - Sheets
src/components/querySheetParts.tsx
Native application
- Backend bridge
src/backend.ts - Native commands
src-tauri/src/commands.rs
Graph services
- Graph store
crates/tine-store/src/store.rs - Graph model
crates/tine-store/src/model.rs - Query execution
crates/tine-store/src/query.rs - Search planning
crates/tine-store/src/query_plan.rs - Parsing and core
crates/tine-core/src/lib.rs
Product capabilities
- Conflict handling
crates/tine-graph-features/src/conflicts.rs - PDF features
crates/tine-graph-features/src/pdf.rs - Static publishing
crates/tine-graph-features/src/publish.rs - Plugin runtime
src/plugins/manager.ts - In-app guide
crates/tine-graph-features/src/guide.rs
Other components
- Graph user
- Markdown graph files
Connections 21
- Graph user → Application shell: uses
README.md - Application shell → Page editor: opens pages
src/App.tsx - Page editor → Save coordinator: persists edits
src/document/index.ts - Save coordinator → Backend bridge: saves pages
src/document/save/engine.ts - Backend bridge → Native commands: invokes commands
README.md - Native commands → Graph store: accesses graph
README.md - Graph store → Markdown graph files: reads and writes
README.md - Graph store → Graph model: maintains state
crates/tine-store/src/model.rs - Query workspace → Backend bridge: runs searches
src/components/QueryWorkspace.tsx - Query workspace → Query model: edits queries
src/components/QueryWorkspace.tsx - Backend bridge → Native commands: routes queries
README.md - Native commands → Query execution: evaluates queries
README.md - Query execution → Search planning: uses plans
crates/tine-store/src/query.rs - Query execution → Graph model: reads snapshot
crates/tine-store/src/query.rs - Sheets → Backend bridge: loads query data
src/components/querySheetParts.tsx - Graph store → Parsing and core: uses core types
- Application shell → Conflict handling: surfaces conflicts
- Application shell → PDF features: offers annotation
README.md - Graph user → Static publishing: exports graph
README.md - Application shell → Plugin runtime: manages plugins
src/App.tsx - Application shell → In-app guide: opens guide
README.md