$ show spacedriveapp/spacedrive
Spacedrive is a cross-platform file manager and virtual distributed file system (VDFS) that unifies files across devices and cloud storage into a single, searchable library. The core engine is written in Rust and provides indexing, media processing (thumbnails, OCR, speech-to-text), P2P sync with conflict resolution, volume detection, file operations, and an extensible WASM plugin system. The codebase is a large monorepo with multiple frontends: a Tauri desktop app, React Native mobile app, CLI, and web interface, all communicating with a daemon process via a typed RPC protocol. The architecture follows CQRS/DDD patterns with auto-generated TypeScript types and a job/task system for background work.
The LLM identified 3 files worth highlighting for reuse:
Implements a reusable actor-based task execution system with work-stealing, pause/resume, cancellation, and error handling. The `Message` enum drives state transitions (Abort, Pause, Resume, Cancel) and workers dynamically pick tasks from a shared queue. Isolated as a standalone crate with minimal dependencies, suitable for any Rust project needing parallel background job execution.
Parses Open Location Code (Plus Codes) from EXIF metadata, providing latitude/longitude bounds in an optimized way. Demonstrates non-trivial string processing and coordinate math. The module is self-contained within the `media-metadata` crate, which is a focused metadata extraction library that could be reused in other media-related projects.
Provides constant-time comparison and memory operations (CTEq, CTCopy) to prevent timing side-channel attacks. The `Protected<T>` wrapper ensures zeroization on drop, and the module integrates with `secrecy` crate for sensitive data. This crate is fully independent and exemplifies careful cryptographic engineering, suitable for any Rust project requiring secure memory handling.