How andreaunali/notesflow works
Notesflow is a workspace for writing LaTeX notes, compiling and viewing PDFs, tracking TODOs and roadmap milestones, and exploring links between concepts. The principal flow starts in the CLI, which launches the persistent terminal workspace; workspace files are indexed and projected into a graph that the interface presents alongside editing, TODO, roadmap, and PDF views. Separate capabilities include semantic links and summaries, browser-based graph browsing, shell commands, and optional OpenCode integration. Edges are limited to documented behavior or visible wiring; unsampled subsystem internals are represented by their existing directories.
Main entry points: model.go Terminal workspace · main.go CLI runtime · store.go Source graph store · server.go Browser graph server
Components 26
Entry and workspace
- CLI runtime
cmd/notesflow/main.go - Workspace config
internal/config/config.go - File watcher
internal/watcher/watcher.go
Notes and graph
- Note parser
internal/parser/parser.go - Roadmap parser
internal/parser/roadmap.go - Source graph store
internal/graph/store.go - Graph projection
internal/graph/projection.go - Concept links
internal/graph/concepts.go - Roadmap checks
internal/graph/roadmap.go - JSON persistence
internal/storage/json.go
Workspace views
- Terminal workspace
internal/tui/model.go - Graph view
internal/tui/graph.go - Pixel graph view
internal/tui/graph_pixels.go - PDF panel
internal/tui/pdf.go - Embedded editor
internal/editor/editor.go - Browser graph server
internal/web/server.go - Canvas client
internal/web/assets/graph.js
Tools and services
- Compile and tools
internal/workflow/tools.go - PDF operations
internal/workflow/pdf.go - Inference manager
internal/providers/manager.go - Semantic inference
internal/providers/inference.go - Provider backend
internal/providers/backend.go - LaTeX toolchain
- OpenCode
Other components
- Course author
- Browser user
Connections 24
- Course author → CLI runtime: starts
README.md - CLI runtime → Workspace config: loads settings
cmd/notesflow/main.go - CLI runtime → Terminal workspace: launches workspace
cmd/notesflow/main.go - CLI runtime → File watcher: starts watching
cmd/notesflow/main.go - File watcher → Source graph store: reconciles files
internal/watcher/watcher.go - Source graph store → Note parser: indexes notes
internal/graph/store.go - Source graph store → JSON persistence: persists state
internal/graph/store.go - Terminal workspace → Embedded editor: embeds editing
README.md - Terminal workspace → Graph view: shows graph
README.md - Terminal workspace → PDF panel: shows PDF
README.md - Terminal workspace → Roadmap checks: shows milestones
README.md - Terminal workspace → Inference manager: requests summaries
README.md - Terminal workspace → Compile and tools: offers tool actions
README.md - Graph view → Pixel graph view: renders graph
internal/tui/graph.go - CLI runtime → Compile and tools: runs commands
cmd/notesflow/main.go - Compile and tools → LaTeX toolchain: compiles documents
README.md - CLI runtime → Browser graph server: serves canvas
README.md - Browser user → Browser graph server: opens canvas
README.md - Browser graph server → Canvas client: serves client
internal/web/server.go - Browser graph server → Source graph store: reads graph
internal/web/server.go - File watcher → Semantic inference: analyzes changes
- Semantic inference → Inference manager: uses profiles
internal/providers/inference.go - Inference manager → Provider backend: selects backend
- Terminal workspace → OpenCode: can launch
README.md