# πŸš€ OxiCloud ![OxiCloud](static/oxicloud-logo.svg) ## The high-performance, Rust-powered file storage solution OxiCloud is a NextCloud-like file storage system built with Rust, designed from the ground up with **performance**, **security**, and **scalability** as its core principles. Perfect for self-hosting your own cloud storage or deploying in enterprise environments. ## ✨ Key Features - πŸ”₯ **Blazing Fast Performance**: Built with Rust and optimized for speed - πŸ“ **Advanced File Management**: Intuitive folder structure with powerful batch operations - πŸ”„ **Concurrent Processing**: Parallel file operations for large files and batch processing - πŸ” **Smart Caching**: Multi-layered caching system for metadata and file access - 🌐 **Internationalization**: Full i18n support (currently English and Spanish) - πŸ“± **Responsive Design**: Works seamlessly on desktop and mobile devices - πŸ”Œ **Extensible Architecture**: Clean, layered design following domain-driven principles ## πŸš€ Performance Optimizations OxiCloud incorporates multiple advanced performance optimizations: ### Concurrency and Parallelism - **Parallel File Processing**: Automatically splits large files into chunks for parallel processing - **Asynchronous I/O**: Built on Tokio for non-blocking operations - **Worker Pools**: Smart thread management for optimal resource utilization ### Intelligent Caching - **File Metadata Cache**: Drastically reduces filesystem calls - **Smart Cache Invalidation**: Selectively invalidates cache entries - **Preloading**: Strategic preloading for frequently accessed directories ### I/O Optimization - **Buffer Pooling**: Reuses memory buffers to reduce GC pressure - **Adaptive Streaming**: Adjusts chunk sizes based on file size - **Size-Based Processing**: Different strategies for small, medium, and large files ### Batch Processing - **ID Mapping Optimizer**: Groups mapping operations to reduce overhead - **Operation Batching**: Processes multiple file operations concurrently - **Debounced Saving**: Groups write operations for optimal I/O ## πŸ“Έ Screenshots *Coming soon!* ## πŸ› οΈ Getting Started ### Prerequisites - Rust 1.70+ and Cargo ### Installation ```bash # Clone the repository git clone https://github.com/yourusername/oxicloud.git cd oxicloud # Build the project cargo build --release # Run the server cargo run --release ``` The server will be available at `http://localhost:8085` ## 🧩 Project Structure OxiCloud follows Clean Architecture principles with clear separation of concerns: - **Domain Layer**: Core business logic and entities - **Application Layer**: Use cases and application services - **Infrastructure Layer**: External systems and implementations - **Interfaces Layer**: API and web controllers ## 🚧 Development ```bash # Core development workflow cargo build # Build the project cargo run # Run the project locally cargo check # Quick check for compilation errors # Testing cargo test # Run all tests cargo test # Run a specific test # Code quality cargo clippy # Run linter cargo fmt # Format code # Debugging RUST_LOG=debug cargo run # Run with detailed logging ``` ## πŸ—ΊοΈ Roadmap OxiCloud is under active development. Upcoming features include: - User authentication and multi-user support - File sharing and collaboration features - WebDAV support and sync clients - File versioning - Encryption - Mobile applications See [TODO-LIST.md](TODO-LIST.md) for a detailed roadmap. ## 🀝 Contributing Contributions are welcome! Whether it's bug reports, feature suggestions, or code contributions, please feel free to reach out. 1. Fork the repository 2. Create your feature branch (`git checkout -b feature/amazing-feature`) 3. Commit your changes (`git commit -m 'Add some amazing feature'`) 4. Push to the branch (`git push origin feature/amazing-feature`) 5. Open a Pull Request ## πŸ“œ License OxiCloud is available under the MIT License. See the LICENSE file for more information. ## πŸ™ Acknowledgements - The Rust community for the amazing ecosystem - All contributors who have helped shape this project --- Designed with ❀️ by OxiCloud Team