How nadeemtsf/texloom works
Texloom is a Windows LaTeX editor whose main workflow is opening a project, editing source or supported PDF text, compiling locally, and reviewing the resulting PDF. The Rust desktop service coordinates document state, builds, source mapping, verification, saving, and recovery; the web UI provides Monaco and PDF-canvas interactions. The graph includes documented capabilities whose implementation was not sampled, using directory paths where the tree supports a subsystem but its internal call links are unverified.
Main entry points: service.rs Desktop backend · app.js Editor shell · engine.rs TeX compiler · canvas-controller.js PDF canvas
Components 29
Editor interface
- Editor shell
web/app.js - PDF canvas
web/core/canvas-controller.js - Text geometry
web/core/geometry.js - Inline text
web/core/inline-text.js - PDF search
web/core/pdf-search.js - PDF rendering
web/core/pdf-surface.js
IPC contracts
- Document client
web/core/document-client.js - Build protocol
web/core/build-protocol.js - Document protocol
web/core/document-protocol.js - Workspace protocol
web/core/workspace-protocol.js
Desktop service
- Tauri commands
src-tauri/src/lib.rs - Desktop backend
src-tauri/src/service.rs - Document authority
src-tauri/src/service/document.rs - Visual editing
src-tauri/src/service/visual.rs - Layout verification
src-tauri/src/service/layout_gate.rs - Source mapping
src-tauri/src/service/synctex.rs - Project workflows
src-tauri/src/service/project_workflows.rs
Document model
- Document history
crates/texloom-core/src/document.rs - Editable text flow
crates/texloom-core/src/inline_flow.rs - Document objects
crates/texloom-core/src/objects.rs - LaTeX adapters
crates/texloom-core/src/adapters.rs
Build and persistence
- TeX compiler
crates/texloom-build/src/engine.rs - Bibliography jobs
crates/texloom-build/src/bibliography.rs - PDF inspection
crates/texloom-build/src/inspection_worker.rs - PDFium worker
crates/texloom-build/src/bin/pdfium_worker/mod.rs - Save and recovery
crates/texloom-build/src/persistence.rs
Other components
- Editor user
- Local TeX distribution
- Compiled PDF
Connections 29
- Editor user → Editor shell: edits project
README.md - Editor shell → PDF canvas: handles gestures
web/app.js - PDF canvas → Text geometry: uses bounds
web/core/canvas-controller.js - PDF canvas → Inline text: measures carets
web/core/canvas-controller.js - Editor shell → PDF rendering: renders preview
web/app.js - Editor shell → Document client: creates client
web/app.js - Editor shell → Tauri commands: invokes commands
README.md - Document client → Build protocol: requests builds
web/core/document-client.js - Document client → Document protocol: validates replies
web/core/document-client.js - Tauri commands → Desktop backend: dispatches commands
src-tauri/src/lib.rs - Desktop backend → Document authority: delegates document
src-tauri/src/service.rs - Desktop backend → Visual editing: delegates edits
src-tauri/src/service.rs - Desktop backend → Layout verification: checks candidates
src-tauri/src/service.rs - Desktop backend → Source mapping: resolves mappings
src-tauri/src/service.rs - Desktop backend → Project workflows: handles projects
src-tauri/src/service.rs - Desktop backend → TeX compiler: runs compilation
README.md - Desktop backend → Save and recovery: saves projects
src-tauri/src/service.rs - Desktop backend → PDF inspection: checks candidate PDF
README.md - TeX compiler → Local TeX distribution: runs local engine
README.md - TeX compiler → Bibliography jobs: runs bibliography
crates/texloom-build/src/engine.rs - PDF inspection → PDFium worker: uses worker
- TeX compiler → Compiled PDF: produces PDF
README.md - Document history → Editable text flow: uses text flow
crates/texloom-core/src/document.rs - Editable text flow → Document objects: reads definitions
crates/texloom-core/src/inline_flow.rs - Editable text flow → LaTeX adapters: parses arguments
crates/texloom-core/src/inline_flow.rs - Document authority → Document history: maintains history
src-tauri/src/service/document.rs - Document authority → Save and recovery: supports recovery
- Project workflows → Save and recovery: saves and recovers
- Editor shell → PDF search: searches preview
web/app.js