How netflate/luminecapture works
LumineCapture is a native Wayland screenshot tool. The main user workflow launches a capture, opens it in an editor for selection and annotation, then saves, copies, pins, or otherwise outputs the result. The graph also preserves documented OCR, color-picking, and Wayland capture capabilities. Internal links are limited to relationships shown by the README or SOURCE INDEX; several implementation details, especially capture dispatch and output actions, were not sampled.
Main entry points: app.rs Application workflow · input.rs Editor input · backend.rs Platform backend · actions.rs Save and copy
Components 21
Capture and output
- Application workflow
src/app.rs - Wayland capture
src/backend/wayland/capture - Platform backend
src/backend.rs - Save and copy
src/app/actions.rs - Screen pinning
src/backend/wayland/pin.rs
Editing and annotations
- Screenshot editor
src/editor.rs - Editor input
src/app/input.rs - Annotation tools
src/tools.rs - Annotation model
src/types/annotations.rs - Canvas renderer
src/renderer.rs - Color picker
src/app/panels/color.rs
OCR
- OCR tool
src/tools/ocr.rs - OCR engine
src/ocr.rs - OCR models
src/ocr/models.rs - Recognition backend
src/ocr/paddle_backend.rs - OCR daemon
src/ocr/daemon.rs
Shared services
- Configuration
src/config.rs - Notifications
src/backend/notify.rs - Wayland clipboard
src/backend/wayland/clipboard.rs
Other components
- User
- Wayland compositor
Connections 22
- User → Application workflow: launches
- Application workflow → Platform backend: requests capture
src/app.rs - Platform backend → Wayland capture: dispatches capture
src/backend.rs - Wayland capture → Wayland compositor: captures from
- Application workflow → Screenshot editor: opens editor
src/app.rs - Editor input → Screenshot editor: updates state
src/app/input.rs - Editor input → Annotation tools: dispatches input
src/app/input.rs - Annotation tools → Annotation model: creates annotations
src/tools.rs - Screenshot editor → Canvas renderer: renders frame
src/editor.rs - Canvas renderer → Annotation model: draws annotations
src/renderer.rs - Application workflow → Save and copy: handles results
src/app.rs - Save and copy → Wayland clipboard: copies image
- Save and copy → Screen pinning: pins image
- Application workflow → Notifications: reports outcomes
src/app.rs - Editor input → Color picker: handles panel input
src/app/input.rs - Annotation tools → OCR tool: dispatches OCR
src/tools.rs - OCR tool → OCR engine: requests recognition
src/tools/ocr.rs - OCR engine → Recognition backend: builds backend
src/ocr.rs - OCR engine → OCR models: uses model files
src/ocr.rs - OCR models → OCR daemon: supports daemon mode
- Application workflow → Configuration: reads settings
src/app.rs - Platform backend → Configuration: reads settings
src/backend.rs