Metadata-Version: 2.5
Name: buzzdrive
Version: 0.1.0
Summary: Encrypted Finder volume backed by buzzheavier.com — zero-knowledge cloud storage
Project-URL: Homepage, https://buzzheavier.com
Author: buzzdrive
License: MIT
License-File: LICENSE
Keywords: buzzheavier,cloud,encryption,fuse,storage
Classifier: Environment :: MacOS X
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: argon2-cffi>=23.1
Requires-Dist: cryptography>=42
Requires-Dist: curl-cffi>=0.7
Requires-Dist: requests>=2.31
Description-Content-Type: text/markdown

# BuzzDrive

Encrypted cloud storage on [buzzheavier.com](https://buzzheavier.com) that takes **zero space on your machine** — a normal folder, a tiny local web UI, works the same on macOS and Linux.

```
pip3 install buzzdrive
buzzdrive            # wizard: account → region → folder → recovery key
```

Drop files into `~/BuzzDrive`. They're encrypted (AES-256-GCM) on the way up with the same fast parallel protocol the website uses, verified against the server's checksum, then replaced by a ~100-byte placeholder. Delete your local copy whenever you like — the file lives on the server until you say otherwise. buzzheavier sees only opaque ids and random bytes: never a filename, never content.

## How it works

- **Zero-knowledge**: per-file keys via HKDF from an Argon2id-wrapped master key; 8 MiB AES-256-GCM chunks. Your passphrase never leaves the machine (macOS Keychain / Linux 0600 file).
- **Encrypted manifest**: your real file tree is one encrypted blob synced to the server — any machine with your passphrase reconstructs the drive.
- **Fast**: parallel multi-part uploads (the site's own protocol, ~7–10 MB/s), parallel chunked downloads, streaming encrypt straight out of the dropped file — no staging, no temp copies.
- **Never loses data**:
  - uploads verify server-side sha256 before anything is cleaned up
  - re-dropping a modified file uploads the new version first, retires the old one after
  - crash mid-upload? staged state self-heals; orphaned server objects auto-prune
  - deleting a placeholder deletes the cloud copy only after the server confirms
- **Local web UI** (`buzzdrive ui`): minimal file list with status, live upload/download progress, drag-and-drop upload. Random port, token-gated, localhost only, no popups.

## Usage

```
buzzdrive                wizard (first run) / status
buzzdrive ui             open the web UI
buzzdrive ls             list files (cloud + local)
buzzdrive get <file>     download + decrypt into the folder
buzzdrive put <files…>   upload now (originals untouched)
buzzdrive open <file>    download + open in your default app
buzzdrive recovery       show recovery passphrase
buzzdrive region         show/switch region for new uploads
buzzdrive start/stop     background service control
buzzdrive doctor         health check
buzzdrive selftest       crypto + live API roundtrip tests
```

Folder semantics: `name.bzp` = cloud-only marker · real file + marker = checked-out copy (edit + save re-uploads automatically) · delete the marker = delete from the cloud · originals outside the folder are never touched.

## Requirements

- macOS or Linux, Python ≥ 3.10. No kernel extensions, no sudo, no FUSE.

## What runs on your machine (full transparency)

BuzzDrive is a **normal user-space background service** — nothing hidden, nothing privileged:

- **macOS**: a per-user LaunchAgent (`~/Library/LaunchAgents/com.buzzdrive.daemon.plist`) with `RunAtLoad` + `KeepAlive` — starts at login and relaunches after a crash, exactly like Dropbox or Google Drive's sync agent. Inspect: `launchctl list | grep buzzdrive`, read the plist, tail `~/Library/Logs/buzzdrive.log`. Remove: `buzzdrive stop` (or delete the plist).
- **Linux**: a systemd **user** service (`~/.config/systemd/user/buzzdrive.service`, `Restart=always`) — no root, `systemctl --user status buzzdrive`, removed with `buzzdrive stop`.
- No kernel extensions, no root, no hidden processes, no telemetry, no auto-update. It only talks to `buzzheavier.com` over HTTPS, and everything it uploads is encrypted before it leaves RAM.
- Plaintext exists only in `~/BuzzDrive` (and your original files); the server stores only AES-256-GCM ciphertext under opaque ids.

## Security notes

- Losing the passphrase = data cryptographically unrecoverable. Keep the recovery copy (`~/.config/buzzdrive/RECOVERY.txt`) somewhere safe.
- The account id is a bearer credential: holders can *delete* files (never *read* them). Keep it private.
- Filenames exist in plaintext only on your own disk (folder + logs are yours); the server stores opaque ids and ciphertext.

MIT license.
