Aleph Hackathon · BUIDL
Decentralized real-time file synchronization across devices powered natively by Hyperswarm and Pear runtime.
**Serverless, lightning-fast file synchronization across devices using the Pear/Bare ecosystem.**
Synkro eliminates the need for centralized cloud storage (like Google Drive or Dropbox) by enabling direct, peer-to-peer (P2P) file synchronization. It securely mirrors files between a "Writer" (source) and one or multiple "Readers" (destinations) without any intermediary servers.
---
pear://fhe31rfz6wktgozcryhon7jnfnpda5jsmopecka6utabtokpxb6o---
***The Problem:** Traditional file synchronization relies on centralized cloud providers, raising privacy concerns, requiring subscriptions, and creating single points of failure.
***The Solution: Synkro leverages Hyperdrive and Localdrive** within the Pear ecosystem to create a serverless, end-to-end encrypted P2P synchronization tool. Files are transferred directly between peers in real-time.
---
Synkro-Writer-Sync & Synkro-Reader-Sync) for a seamless user experience.---
graph TD
A[Writer Machine] -->|Places File in Folder| B(Localdrive: Synkro-Writer-Sync)
B -->|Mirrors to| C{Hyperdrive Decentralized Network}
C -.->|P2P Discovery| D[Hyperswarm]
C -->|Auto/Manual Pull| E(Localdrive: Synkro-Reader-Sync)
E -->|Receives File| F[Reader Machine]
classDef default fill:#111827,stroke:#34D399,stroke-width:2px,color:#fff;
classDef special fill:#065F46,stroke:#10B981,stroke-width:2px,color:#fff;
class C,D special;
sequenceDiagram actor Writer participant WriterDrive as Writer Localdrive participant Network as Hyperdrive Network participant ReaderDrive as Reader Localdrive actor Reader Writer->>WriterDrive: Drops file in 'Synkro-Writer-Sync' Writer->>WriterDrive: Presses [ENTER] WriterDrive->>Network: Uploads/Mirrors changes Network-->>WriterDrive: Confirm: Upload complete alt Eager Download (Auto) Network->>ReaderDrive: Remote changes detected ReaderDrive->>Network: Fetches new files automatically ReaderDrive-->>Reader: Confirm: Download complete else Manual Pull (Fallback) Reader->>ReaderDrive: Presses [ENTER] ReaderDrive->>Network: Sync latest state & pull entries Network-->>ReaderDrive: Transfers missing files ReaderDrive-->>Reader: Confirm: Manual download complete end
***Ecosystem:** Pear / Bare (Serverless Runtime)
***P2P Networking:** Hyperswarm
***File System:** Hyperdrive (Decentralized) & Localdrive (Local FS interaction)
***Core Logic:** JavaScript (ES Modules)
Ensure you have the Pear CLI installed (v3.0+):
-**macOS / Linux:**curl https://install.pears.com/pear.sh | sh
-**Windows:**irm https://install.pears.com/pear.ps1 | iex
---
Synkro is distributed securely over the Pear P2P network. To install it natively on your machine, simply run:
pearinstallpear://fhe31rfz6wktgozcryhon7jnfnpda5jsmopecka6utabtokpxb6o
Important: After installation, restart your terminal/shell to ensure the synkro command is added to your system's PATH.
To demonstrate the P2P sync, you will need two terminal windows (they can be on the same machine, or across different machines/OSes).
synkro
synkro
If you are evaluating the build process, Synkro utilizes bare-build for cross-compilation.
#*Build for Linux* npmrunmake:linux-x64 #*Build for Windows* npmrunmake:win32-x64 #*Package the deployment structure* pearbuild--package=package.json--win32-x64-app=./out/win32-x64/synkro--target=./deploy #*Stage and Seed to the network* pearstage<pear-link>./deploy pearseed<pear-link>
---
To ensure native, seamless installation via pear install across different operating systems, standalone binaries were explicitly built, packaged, and shipped in this deployment for the following architectures:
win32-x64 (shipped as synkro.exe).linux-x64.**Note:**Because Synkro runs on the Pear/Bare decentralized runtime, the underlying codebase is inherently cross-platform. macOS users can still seamlessly interact with the network and run the source via the Pear CLI.
---`