Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.
Go to file
jake 3ce8c74a0d
[ENG-313] Key auto-generation and viewing (#478)
* add generic dialog for keys settings

* revert artifact failed key viewing attempt

* move `Select` key list component

* rename dialog

* remove unused imports and add new select option for *all* keys

* add WIP but broken key viewer dialog

* cleanup code and fix key viewer dialog

* add clipboard icon and copy functionality

* generalise the `AlertDialog` and refactor `BackupRestoreDialog` to use it

* use new alert dialog in place of JS/tauri alerts

* use generic alerts everywhere and bring generic alert props/default state

* make `SelectOptionKeyList` generic for mounted/unmounted keys (with the use of `map` for the latter)

* add clipboard to generic alert dialog + clean up

* fix accent colour button for backup restoration

* remove unneeded props from components

* add slider+automount button

* tweak password gen function

* add password autogeneration

* clippy

* tweak password generation

* use `crypto-random-string` and drop rust password generation

* add default TEMPORARY keymanager pass/secret key to library creation screen

* make key automounting functional

* clean up key viewer

* change dialog name

* remove slider as that wasn't even being used?

* make requested changes and hide key viewer if no keys are in the key manager

* prevent automount and library sync from being enabled simultaneously

* include `memoryOnly` in key

* mark keys as memoryOnly
2022-12-12 17:13:52 +00:00
.cargo Fix builds on M1 (#54) 2022-04-29 09:56:31 +08:00
.cspell more styles 2022-10-24 03:04:52 -07:00
.github Improve setup script (#436) 2022-10-25 18:08:50 -07:00
.vscode refactor switch component + update styles 2022-10-21 21:50:47 -07:00
apps Revert traffic light change from #464 2022-11-20 15:40:35 -05:00
core [ENG-313] Key auto-generation and viewing (#478) 2022-12-12 17:13:52 +00:00
crates [ENG-309] Envelope encryption for the KM's root key (#482) 2022-12-12 15:04:08 +00:00
docs Add empty content to Privacy Policy page 2022-11-06 02:18:17 -06:00
extensions Linted Files according to the .prettierrc. 2022-04-24 21:16:55 +01:00
packages [ENG-313] Key auto-generation and viewing (#478) 2022-12-12 17:13:52 +00:00
.gitignore Merge remote-tracking branch 'origin/main' into merge-p2p-code 2022-10-07 05:56:05 +08:00
.gitmodules tests for magic bytes 2022-10-06 09:48:55 -07:00
.npmrc reorder & comment npmrc 2022-11-05 08:30:24 -05:00
.nvmrc Update .nvmrc 2022-11-06 00:27:24 -04:00
.prettierignore merge duplicate prettier config and format repo with it 2022-10-07 07:45:15 +08:00
.prettierrc.js merge duplicate prettier config and format repo with it 2022-10-07 07:45:15 +08:00
.rustfmt.toml Added crates folder (#389) 2022-09-29 21:02:29 -07:00
Cargo.lock [ENG-308] Crypto optimizations (#470) 2022-12-08 12:08:35 +00:00
Cargo.toml More Sync Stuff (#438) 2022-10-27 23:12:28 -07:00
CODE_OF_CONDUCT.md New team page (#229) 2022-06-14 13:13:09 -07:00
CONTRIBUTING.md update node version in contributing guide 2022-11-06 10:17:22 +08:00
cspell.config.yaml Resumable Jobs + Lefthook Integration (#344) 2022-07-27 00:06:34 -07:00
lefthook.yml merge duplicate prettier config and format repo with it 2022-10-07 07:45:15 +08:00
LICENSE Switch license to AGPL (#307) 2022-07-02 14:26:00 -07:00
package.json [ENG-251] Crypto Jobs (#475) 2022-12-07 15:16:13 +00:00
pnpm-lock.yaml [ENG-313] Key auto-generation and viewing (#478) 2022-12-12 17:13:52 +00:00
pnpm-workspace.yaml More Sync Stuff (#438) 2022-10-27 23:12:28 -07:00
README.md merge duplicate prettier config and format repo with it 2022-10-07 07:45:15 +08:00
tsconfig.json Mobile app (#352) 2022-08-08 20:29:14 -07:00
turbo.json merge duplicate prettier config and format repo with it 2022-10-07 07:45:15 +08:00

Logo

Spacedrive

A file explorer from the future.
spacedrive.com »

Download for macOS · Windows · Linux · iOS · watchOS · Android
~ Links will be added once a release is available. ~

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

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

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 free file management experience like no other.

App screenshot


What is a VDFS?

A VDFS (virtual distributed filesystem) is a filesystem designed to work across a variety of storage layers. With a uniform API to manipulate and access content across many devices, VDFS is not restricted to a single machine. 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 arent 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 shouldnt 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.

Roadmap

View a list of our planned features here: spacedrive.com/roadmap

Developer Guide

Please refer to the contributing guide for how to install Spacedrive from sources.

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.
  • We also use rspc which allows us to define functions in Rust and call them on the Typescript frontend in a completely typesafe manner, so no unnecessary bugs make it into production!
  • The core (sdcore) is written in pure Rust.

Monorepo structure:

Apps:

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).