Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.
Go to file
Vítor Vasconcellos 5a103fb21b
[ENG-1472] Frontend bug fixes and dependencies update (#2137)
* Fix onboarding sometimes not redirecting to Explorer on prod builds
 - Fix failure trying to compile landing prod builds outside Vercel
 - Fix Server docker failing to restart due to some incorrecting logic for creating the unprivileged users erroring out
 - Fix Storybook failing to build due to updates to Vite
 - Update Storybook dependencies
 - Remove unused Inter font dependency
 - Fix some incorrect references to NodeJS types inside web code
 - Fix $libraryId index using the incorrect redirect function
 - Improve error handling for the $libraryId index route
 - Fix Prism not being correctly loaded, and failing to register its plugins
 - Improve Prism loading error handling
 - Small improvement to the text highlight logic
 - Fix SCSS deprecation for untyped hsl values
 - Fix library query cache incorrectly saving empty values, which lead to the onboarding redirect bug
 - Patch contentLayer to fix an error during the final part of it's build process
 - Update most dev dependencies
 - Update publish-artifact to be compatible with new @actions/artifact
 - Fix issue with new vite-plugin-solid failing to build our .ts files due to the removal of the typescript plugin
 - Fix pnpm overrides not applying due to incorrect placement in package.json
 - Replace deprecated react-tsparticles and updated three used by the Bubbles background in the landing page
 - Rework Bubbles background to be compatible with new @tsparticles/react
 - Update @sd/config dependencies
 - Update @sd/scripts dependencies

* Implement suggestions
 - Replace mobile JS node setup with custom setup-pnpm action
 - Handle GITHUB_SECRET default value in code and throw a warning when it is not set
 - Fix pnpm now resolving the correct node version when building Spacedrive server docker
 - Add missing getent command to spacedrive server docker
 - Fix typo in entrypoint.sh
 - Implement a more robust check if the user is already in a group
 - Fix adduser failing due to missing default group
 - Disconnect IntersectionObserver on component unmount
 - Improve prism import comment

* Implement more suggestions
 - Pin genent version to latest stable release of UClibc
 - Add checksum checks for all ADD clauses in Spacedrive server Dockerfile

* Increase Maestro timeout to reduce CI failures due to slow simulator startup

* Dowgrade maestro to workaround CI timeout

* Improvements to the script that run maestro mobile tests
 - Increase the amount of retries for a maestro test run to 6
 - Increase Maestro driver startup timeout to 2 minutes

* Let run-maestro-tests.sh decide how to run itself

* ¯\_(ツ)_/¯
2024-02-28 23:52:24 +00:00
.cargo Update github actions due to nodejs 16 deprecation (#2107) 2024-02-21 09:27:40 +00:00
.cspell [ENG-1511] Library Screens (#1903) 2024-01-16 12:15:03 +00:00
.github [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
.vscode [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
apps [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
core [ENG-1614] Remove @default from synced models (#2134) 2024-02-28 04:56:29 +00:00
crates [ENG-1614] Remove @default from synced models (#2134) 2024-02-28 04:56:29 +00:00
docs Update readme & contributing guide & language stuff (#2071) 2024-02-09 15:42:42 +00:00
extensions Linted Files according to the .prettierrc. 2022-04-24 21:16:55 +01:00
interface [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
packages [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
patches [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
project.inlang added it locale, added it entry (#2066) 2024-02-26 15:20:41 +00:00
scripts [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
.clippy.toml [ENG-835] Duplicating an empty directory doesn't duplicate nested empty directories (#1213) 2023-08-13 18:34:46 +00:00
.editorconfig [ENG-1479] AI Prototype (#1845) 2023-12-19 09:28:57 +00:00
.eslintignore Fix Windows CI + format (#767) 2023-04-27 07:32:15 +00:00
.gitattributes [ENG-469] Make Prettier and ESLint work together (#706) 2023-04-14 21:21:21 +00:00
.gitignore Fix P2P not working for libraries (#2031) 2024-02-21 08:13:40 +00:00
.npmrc [ENG-265] Improve setup scripts (#1368) 2023-09-28 10:03:46 +00:00
.nvmrc Bump .nvmrc version (#1605) 2023-10-17 03:58:50 +00:00
.prettierignore [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
.prettierrc.js [ENG-1067] Update phosphor to new package & update sort imports (#1330) 2023-09-11 15:26:44 +00:00
.rustfmt.toml Added crates folder (#389) 2022-09-29 21:02:29 -07:00
Cargo.lock [ENG-1513] Better integration between Jobs and processing Actors (#1974) 2024-02-26 19:45:58 +00:00
Cargo.toml [ENG-1513] Better integration between Jobs and processing Actors (#1974) 2024-02-26 19:45:58 +00:00
CODE_OF_CONDUCT.md New team page (#229) 2022-06-14 13:13:09 -07:00
CONTRIBUTING.md [ENG-1513] Better integration between Jobs and processing Actors (#1974) 2024-02-26 19:45:58 +00:00
cspell.config.yaml cleanup(don't hate me): prettier format everything 2023-01-19 19:32:35 -08:00
LICENSE Switch license to AGPL (#307) 2022-07-02 14:26:00 -07:00
package.json [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
pnpm-lock.yaml [ENG-1472] Frontend bug fixes and dependencies update (#2137) 2024-02-28 23:52:24 +00:00
pnpm-workspace.yaml Tauri 1.5.2 + normalize and update frontend dev deps (#1579) 2023-10-14 04:27:09 +00:00
README.md Update readme & contributing guide & language stuff (#2071) 2024-02-09 15:42:42 +00:00
rust-toolchain.toml [ENG-1513] Better integration between Jobs and processing Actors (#1974) 2024-02-26 19:45:58 +00:00
SECURITY.md [ENG-1165] Add a security policy and notices to the appropriate READMEs (#1409) 2023-09-30 08:31:38 +00:00
tsconfig.json [ENG-380] Interface code structure improvement (#581) 2023-02-27 21:29:48 -08:00
turbo.json [ENG-927, ENG-735, ENG-766] Fix Updater & Tauri 1.5 (#1361) 2023-10-10 07:30:56 +00:00

Logo

Spacedrive

A file explorer from the future.
spacedrive.com »

Download for macOS (Apple Silicon | Intel) · Windows · Linux · iOS · Android
~ Links for iOS & Android 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.

UPDATE: Spacedrive is under active development, we are in the alpha stage and some features might be missing or disabled in the official release downloads.

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.

Security Policy

Please refer to the security policy for details and information on how to responsibly report a security vulnerability or issue.

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:

  • desktop: A Tauri app.
  • mobile: A React Native app.
  • web: A React webapp.
  • landing: A React app using Next.js.
  • server: A Rust server for the webapp. (planned)
  • cli: A Rust command line interface. (planned)
  • storybook: A React storybook for the UI components.

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.
  • crates: Shared Rust libraries used by the core and other Rust applications.

Interface:

  • interface: The complete user interface in React (used by apps desktop, web)

Packages:

  • assets: Shared assets (images, fonts, etc).

  • client: A TypeScript client library to handle dataflow via RPC between UI and the Rust core.

  • config: eslint configurations (includes eslint-config-next, eslint-config-prettier and all tsconfig.json configs used throughout the monorepo).

  • ui: A React Shared component library.

  • macos: A Swift Native binary for MacOS system extensions (planned).

  • ios: A Swift Native binary (planned).

  • windows: A C# Native binary (planned).

  • android: A Kotlin Native binary (planned).