Giter Site home page Giter Site logo

dut3062796s / spacedrive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spacedriveapp/spacedrive

0.0 1.0 0.0 36.83 MB

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.

Home Page: https://spacedrive.app

License: GNU General Public License v3.0

JavaScript 2.10% Rust 40.46% TypeScript 49.69% HTML 0.59% Swift 1.35% SCSS 0.84% Dockerfile 0.31% CSS 4.66%

spacedrive's Introduction

Logo

Spacedrive

The universal file manager.
spacedrive.app »

Download for macOS · Windows · Linux · iOS · watchOS · Android
~ links will be added once release available ~

Spacedrive is an open source cross-platform file manager, powered by a virtual distributed filesystem (VDFS) written in Rust.

Organize files across many devices in one place. From cloud services to offline hard drives, Spacedrive combines the storage capacity and processing power of your devices into one personal distributed cloud, that is both secure and intuitive to use.

For independent creatives, hoarders and those that want to own their digital footprint. Spacedrive provides a file management experience like no other, and its completely free.

Logo


NOTE: Spacedrive is under active development, most of the listed features are still experimental and subject to change.

What is a VDFS?

A VDFS (virtual distributed filesystem) is a filesystem designed to work atop a variety of storage layers. It is not restricted to a single machine, with a uniform API to manipulate and access content across many devices. It achieves this by maintaining a virtual index of all storage locations, synchronizing the database between clients in realtime. This implementation also uses CAS (Content-addressable storage) to uniquely identify files, while keeping record of logical file paths relative to the storage locations.

The first implementation of a VDFS can be found in this UC Berkeley paper by Haoyuan Li. This paper describes its use for cloud computing, however the underlying concepts can be translated to open consumer software.

Motivation

Many of us have multiple cloud accounts, drives that aren’t backed up and data at risk of loss. We depend on cloud services like Google Photos and iCloud, but are locked in with limited capacity and almost zero interoperability between services and operating systems. Photo albums shouldn’t be stuck in a device ecosystem, or harvested for advertising data. They should be OS agnostic, permanent and personally owned. Data we create is our legacy, that will long outlive us—open source technology is the only way to ensure we retain absolute control over the data that defines our lives, at unlimited scale.

Features

Feature list moved to the roadmap.

Developer Installation Instructions

This environment uses Cargo and pnpm. Ensure you have them installed before continuing.

  • $ git clone https://github.com/spacedriveapp/spacedrive
  • IMPORTANT: Install FFMPEG if you don't have it already
  • $ cd spacedrive
  • $ pnpm i
  • $ pnpm prep - Runs all necessary codegen & builds required dependencies.

To quickly run only the desktop app after prep you can use:

  • $ pnpm desktop dev

To run the landing page

  • $ pnpm web dev - runs the web app for the embed
  • $ pnpm landing dev

If you are having issues ensure you are using the following versions of Rust and Node:

  • Rust version: 1.58.1
  • Node version: 17

Architecture

This project is using what I'm calling the "PRRTT" stack (Prisma, Rust, React, TypeScript, Tauri).

  • Prisma on the front-end? 🤯 Made possible thanks to prisma-client-rust, developed by Brendonovich. Gives us access to the powerful migration CLI in development, along with the Prisma syntax for our schema. The application bundles with the Prisma query engine and codegen for a beautiful Rust API. Our lightweight migration runner is custom built for a desktop app context.
  • Tauri allows us to create a pure Rust native OS webview, without the overhead of your average Electron app. This brings the bundle size and average memory usage down dramatically. It also contributes to a more native feel, especially on macOS due to Safari's close integration with the OS.
  • The core (sdcore) is written in pure Rust.
  • Typesafe communication for an RPC-like message passing system between Rust and React Query.

Monorepo structure:

Apps:

  • desktop: A Tauri app with embedded sdcore Rust binary.
  • mobile: A React Native app with embedded sdcore Rust binary.
  • web: A React webapp as a light wrapper around the interface with a websocket Transport.
  • landing: A React app using Vite pages, Tailwind Typography

Core:

  • core: The Rust core, referred to internally as sdcore. Contains filesystem, database and networking logic. Can be deployed in a variety of host applications.

Packages:

  • client: A TypeScript client library to handle dataflow via RPC between UI and the Rust core.
  • ui: A React Shared component library.
  • interface: The complete user interface in React (used by apps desktop, web and landing)
  • config: eslint configurations (includes eslint-config-next, eslint-config-prettier and all tsconfig.json configs used throughout the monorepo.
  • macos: A Swift Native binary for MacOS system extensions.
  • ios: A Swift Native binary (planned).
  • windows: A C# Native binary (planned).
  • android: A Kotlin Native binary (planned).

spacedrive's People

Contributors

jamiepine avatar brendonovich avatar oscartbeaumont avatar fahimfba avatar maxichrome avatar harry-hopkinson avatar xspgmike avatar cnrad avatar ecwyne avatar alsonick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.