How vastnext/glancemd-ultra works
GlanceMD Ultra is a native Markdown workspace editor. The principal workflow is opening a local folder, browsing and editing its files, then saving changes while the workspace provides file operations, search, watching, and recovery. The frontend also provides preview, outline, settings, keybindings, and translation features. Rust starts the WebView and dispatches frontend IPC into command handlers and workspace services. The graph preserves README-documented capabilities; some frontend wiring and unsampled subsystem links are shown only as unverified or omitted.
Main entry points: commands.rs Command handlers · ipc.rs IPC bridge · main.rs Native WebView app · editor.js Editor and tabs
Components 27
Application shell
- Native WebView app
src/main.rs - IPC bridge
src/ipc.rs - Command handlers
src/commands.rs
Editor frontend
- Editor and tabs
src/frontend/editor.js - Markdown preview
src/frontend/preview.js - Project tree UI
src/frontend/project-tree.js - Search panel
src/frontend/search-panel.js - Outline navigation
src/frontend/outline.js - Settings and keys
src/frontend/settings.js - Translation UI
src/frontend/translate.js
Workspace services
- Workspace core
src/workspace/mod.rs - File operations
src/workspace/operations.rs - Tree scanning
src/workspace/tree.rs - Project search
src/workspace/search.rs - Workspace session
src/workspace/session.rs - File watcher
src/workspace/watcher.rs - Crash recovery
src/workspace/recovery.rs - Settings storage
src/workspace/settings.rs - Text file codec
src/file_codec.rs - Atomic saving
src/atomic_save.rs
Translation
- Translation engines
src/translate.rs - Network utilities
src/net.rs - Translation providers
System integration
- Platform services
src/platform/mod.rs - Terminal opener
src/platform/terminal.rs - Document export
src/pandoc.rs
Other components
- Editor user
Connections 31
- Editor user → Native WebView app: opens workspace
README.md - Native WebView app → IPC bridge: routes IPC
src/main.rs - IPC bridge → Command handlers: dispatches commands
src/ipc.rs - Command handlers → Workspace core: opens workspace
src/commands.rs - Command handlers → File operations: runs operations
src/commands.rs - Command handlers → Tree scanning: requests tree
src/commands.rs - Command handlers → Project search: starts search
src/commands.rs - Command handlers → Workspace session: uses session
src/commands.rs - Command handlers → File watcher: uses watcher
src/commands.rs - Command handlers → Crash recovery: uses recovery
src/commands.rs - Command handlers → Settings storage: loads settings
src/commands.rs - Command handlers → Text file codec: reads and writes
src/commands.rs - Command handlers → Atomic saving: saves atomically
src/commands.rs - Command handlers → Translation engines: requests translation
src/commands.rs - Command handlers → Network utilities: uses network tools
src/commands.rs - Translation engines → Translation providers: sends translation requests
- Editor user → Editor and tabs: edits documents
README.md - Editor user → Project tree UI: browses files
README.md - Editor user → Markdown preview: reads preview
README.md - Editor user → Search panel: searches project
README.md - Editor user → Outline navigation: jumps headings
README.md - Editor user → Settings and keys: configures editor
README.md - Editor user → Translation UI: translates text
README.md - Editor and tabs → IPC bridge: sends commands
- Project tree UI → IPC bridge: sends commands
- Search panel → IPC bridge: sends commands
- Settings and keys → IPC bridge: sends commands
- Translation UI → IPC bridge: sends commands
- File operations → Platform services: uses platform operations
- Platform services → Terminal opener: selects terminal
src/platform/mod.rs - Native WebView app → Document export: supports export
src/main.rs