How qingbird1983/aimimd works
AimiMD is a native, local-first Markdown desktop reader and editor. Users open a file or folder, browse documents, and read, edit, search, or translate a document; edits remain local and preserve supported encodings and line endings. The map includes the documented library, reading, editing, settings, and translation capabilities, plus the document, workspace, session, and Markdown layers. README feature descriptions support several workflow links; source excerpts show the translation UI orchestration and image-viewer behavior, but most UI and storage calls were not sampled.
Main entry points: workspace.go Workspace operations · ui/translate.go Translation workflow · translate/translate.go Translation engines · index.go Markdown index
Components 23
Desktop experience
- Native shell
ui/shell.go - Settings
ui/settings.go
Local library
- Library grid
ui/library.go - Folder sidebar
ui/sidebar.go - Workspace operations
internal/workspace/workspace.go - Workspace cache
internal/workspace/cache.go
Reading and editing
- Reading preview
ui/preview.go - Editor pane
ui/editorpane.go - Heading outline
ui/outline.go - Find and replace
ui/find.go - Image lightbox
ui/imageviewer.go
Translation
- Translation workflow
ui/translate.go - Translation engines
internal/translate/translate.go - LLM client
internal/translate/client.go - Free providers
internal/translate/free.go - Translation cache
internal/translate/cache.go
Application core
- Session state
internal/session/store.go - Document I/O
internal/document/document.go - Document state
ui/state.go - Markdown index
internal/markdown/index.go
Other components
- User
- Local files
- Translation services
Connections 25
- User → Native shell: uses
README.md - User → Library grid: opens library
README.md - Library grid → Workspace operations: browses workspace
README.md - Folder sidebar → Workspace operations: browses tree
README.md - Workspace operations → Local files: scans and changes
README.md - Document I/O → Local files: reads and writes
README.md - User → Reading preview: reads document
README.md - User → Editor pane: edits document
README.md - Document I/O → Document state: preserves file format
README.md - Markdown index → Reading preview: provides parsed blocks
README.md - Markdown index → Heading outline: provides headings
README.md - Reading preview → Image lightbox: opens image
ui/preview.go - Document state → Markdown index: parses document
README.md - User → Find and replace: searches document
README.md - User → Translation workflow: requests translation
README.md - Translation workflow → Translation engines: runs translation
ui/translate.go - Translation workflow → Translation cache: checks and saves results
README.md - Translation engines → Free providers: uses free engine
README.md - Translation engines → LLM client: uses LLM engine
README.md - Free providers → Translation services: requests translation
README.md - LLM client → Translation services: sends API request
README.md - Settings → Translation workflow: configures providers
README.md - Settings → Session state: persists preferences
README.md - Session state → Workspace operations: remembers recent folders
README.md - Workspace operations → Workspace cache: uses cache