How emoo-ai/data-sync-tool works
Emoo is a Tauri desktop client for syncing local files and folders into an Emoo AI knowledge base. Users configure API credentials and create per-task sync rules in the Vue interface; they can run tasks manually or on a schedule. The Rust backend scans and hashes local content, mirrors folder paths remotely, uploads changed documents, and records task state and logs. Major capabilities also include document permissions and optional launch-at-login. The sync engine excerpt is partial, so unsampled details are represented only where the README or source index supports them.
Main entry points: lib.rs Tauri commands · sync_engine.rs Sync orchestration · emoo.rs Emoo API client · App.vue Task and settings UI
Components 19
Desktop interface
- Task and settings UI
src/App.vue
Application backend
- Tauri commands
src-tauri/src/lib.rs - Task model
src-tauri/src/task.rs - Credentials and preferences
src-tauri/src/config.rs - Scheduled runs
src-tauri/src/scheduler.rs - Launch at login
src-tauri/src/autostart.rs - Shared app state
src-tauri/src/state.rs
Sync workflow
- Sync orchestration
src-tauri/src/sync_engine.rs - File scan and hashing
src-tauri/src/sync_engine.rs - Remote folder mapping
src-tauri/src/sync_engine.rs - Incremental document sync
src-tauri/src/sync_engine.rs - Document permissions
src-tauri/src/emoo.rs
Local persistence
- Task, file, and log storage
src-tauri/src/db.rs
External integrations
- Emoo API client
src-tauri/src/emoo.rs
Other components
- User
- Local files and folders
- Emoo knowledge base
- Object storage
- Operating system startup
Connections 27
- User → Task and settings UI: configures tasks
README.md - Task and settings UI → Tauri commands: invokes commands
src/App.vue - Tauri commands → Credentials and preferences: saves settings
src-tauri/src/lib.rs - Tauri commands → Task, file, and log storage: manages tasks
src-tauri/src/lib.rs - Tauri commands → Sync orchestration: starts manual sync
src-tauri/src/lib.rs - Scheduled runs → Task, file, and log storage: loads due tasks
src-tauri/src/scheduler.rs - Scheduled runs → Sync orchestration: starts scheduled sync
src-tauri/src/scheduler.rs - Tauri commands → Scheduled runs: starts loop
src-tauri/src/lib.rs - Tauri commands → Launch at login: registers commands
src-tauri/src/lib.rs - Launch at login → Operating system startup: sets startup
src-tauri/src/autostart.rs - Sync orchestration → File scan and hashing: scans and hashes
src-tauri/src/sync_engine.rs - Local files and folders → File scan and hashing: provides content
README.md - Sync orchestration → Remote folder mapping: resolves paths
src-tauri/src/sync_engine.rs - Remote folder mapping → Emoo API client: finds or creates folders
src-tauri/src/sync_engine.rs - Sync orchestration → Incremental document sync: syncs changed files
src-tauri/src/sync_engine.rs - Incremental document sync → Task, file, and log storage: reads and records state
src-tauri/src/sync_engine.rs - Incremental document sync → Emoo API client: uploads and replaces documents
src-tauri/src/sync_engine.rs - Emoo API client → Emoo knowledge base: calls knowledge API
src-tauri/src/emoo.rs - Emoo API client → Object storage: uploads file bytes
src-tauri/src/emoo.rs - Incremental document sync → Document permissions: applies task permissions
src-tauri/src/sync_engine.rs - Document permissions → Emoo knowledge base: sets document access
src-tauri/src/emoo.rs - Sync orchestration → Shared app state: uses shared state
src-tauri/src/sync_engine.rs - Shared app state → Emoo API client: holds client
src-tauri/src/state.rs - Tauri commands → Task model: accepts task data
src-tauri/src/lib.rs - Task, file, and log storage → Task model: stores task records
src-tauri/src/db.rs - Task and settings UI → Launch at login: toggles startup
src/App.vue - Task and settings UI → Emoo API client: browses folders and tests connection
README.md