Skip to content
buzzqwPublic

About

NASBox — Multi-PC folder sync via your own NAS. Go desktop client + Go NAS daemon, web UI and versioned history.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

NASBox

Your cloud. Your NAS. No subscription.

A calm, self-hosted Dropbox alternative for the files you actually care about.

Sincronizza i tuoi PC, sfoglia il NAS dal browser, recupera le versioni precedenti e mantieni il controllo dei tuoi dati — senza account, cloud di terze parti o canoni mensili.

Release Go License Platform

Download · User manual · Deployment guide · Security


Why NASBox?

Most cloud drives ask you to trade convenience for control. NASBox keeps both.

  • Your files stay yours. They live on your NAS and your computers. There is no NASBox cloud, no account and no subscription.
  • Sync that feels immediate. Local changes are picked up by the filesystem watcher; the NAS change feed wakes the other PCs within seconds.
  • Mistakes are recoverable. Replaced and deleted files are kept in history, with mass-deletion guards and conflict copies instead of silent overwrites.
  • One interface, not a toolbox. A compact desktop client for everyday work and a browser UI when you are away from your PC.
  • Small footprint. Built in Go, designed for modest NAS hardware and large real-world folders.

NASBox synchronizes; it is not a backup. Keep a separate copy of the NAS.

What you get

Desktop client A single Go/Fyne application for Linux X11 and Wayland, with system tray, shortcuts, command palette and optional desktop integration.
NAS daemon One small binary for ARM64 and x86-64, with journal, manifest, SQLite index, chunk store, retention, web UI and automatic maintenance.
Browser access Browse, search, preview, upload, download, restore versions and create expiring share links from any browser.
Chunk transfers Network deduplication, compression when useful, resumable checkpoints and bandwidth limits. The historical rsync backend remains available.
Safety tools Delete confirmation, cumulative guards, conflict history, integrity audits and persistent recovery intents.
Consultation mode nasbox-go -ghost gui browses, downloads and uploads without starting the sync engine.
Portable settings Export every client setting to one JSON file and import it on another PC with one click. The current configuration is backed up before import; private keys and sync state stay local.

Built for real life

Two PCs, one source of truth

Edit a document on the desktop, open it unchanged on the laptop a moment later. Photos, projects and shared folders converge without manually copying files around.

Work from anywhere

At home, the client uses the LAN. Away from home, it can use a configured WAN address or SSH bastion and recover when the network route changes.

The browser is enough when you are away

Open the NAS UI to find a file, preview it, upload a missing document or download a copy. Share a single file with a link that expires and can be revoked.

A delete is not the end of the story

Browse the local or NAS history, restore an earlier version and keep the current one safe. If a folder is deleted by mistake, NASBox stops and asks instead of silently emptying every PC.

Big folders stay manageable

Choose which folders are mirrored, pause sync for an hour or until tomorrow, cap transfer speed and keep tool caches or build output out of the sync with ready-made exclusion profiles.

A calm interface

The desktop client keeps the everyday path short:

Status → Activity → Files → NAS → Settings

  • Status tells you what needs a decision: conflicts, held deletions, waiting files and audit differences.
  • Activity shows what moved and what needs attention, without mixing the everyday timeline with the technical log.
  • Files is the NAS browser, search, conflicts, history and differences in one place.
  • NAS shows health, devices and storage insights.
  • Settings keeps connection, sync, safety, integrity and advanced controls reachable without hiding sections behind an “expert mode”.

Press Ctrl+K to find a file, folder or action from anywhere.

Ghost mode: browse without syncing

Sometimes you want the NAS files without turning a PC into another synchronized copy. Ghost mode opens the client, lets you browse and move files manually, and keeps the sync engine completely idle: no filesystem watcher, no change feed, no automatic upload, download or delete.

# Per-session consultation mode
nasbox-go -ghost gui

# Or use the launcher installed by the .deb / install.sh
nasbox-ghost

Typical uses:

  • a borrowed or shared PC where you do not want a full local mirror;
  • a support or consulting machine that only needs to fetch a few files;
  • a kiosk or secondary desktop that should not react to background changes;
  • troubleshooting the NAS without starting another sync client.

Ghost mode is not read-only: browsing, downloading and explicit uploads still work. What it refuses are commands that start or alter the sync engine:

sync · undo · confirm-delete · remote-restore · prune-trash

For a dedicated consultation installation, set "mode": "ghost" in client.json so the GUI starts in ghost mode at every login, including autostart.

Quick start

1. On the NAS

Download nasbox-server-linux-arm64 (most Synology/QNAP boxes) or nasbox-server-linux-amd64 and server.conf.example from the latest release, then:

chmod +x nasbox-server-linux-arm64
cp server.conf.example server.conf      # set SHARE_ROOT=/volume1/NASBox
./nasbox-server-linux-arm64 -c server.conf --init-repository
./nasbox-server-linux-arm64 -c server.conf --start
./nasbox-server-linux-arm64 -c server.conf --status

Keep the binary and configuration on a data volume, not in /tmp. On Synology, start it at boot with Control Panel → Task Scheduler → Triggered Task → Boot-up.

2. On each PC

From the latest release, install the .deb package or use the standalone binary:

# Debian / Ubuntu
sudo apt install ./nasbox-go_<version>_amd64.deb

# Standalone Linux binary
chmod +x nasbox-go-<version>
mkdir -p ~/.local/bin
cp nasbox-go-<version> ~/.local/bin/nasbox-go
~/.local/bin/nasbox-go gui

The first-run wizard asks for the NAS address and SSH user, sets up the key and chooses the local folder. Drop a file into the folder: the other PCs follow.

For menu entries, autostart and the nasbox-ghost launcher, run client-go/install.sh ./nasbox-go-<version> from a source checkout.

3. From a browser

Set WEB_LISTEN, WEB_USER and WEB_PASSWORD in server.conf, restart the daemon and open http://<nas>:8080. Without WEB_PASSWORD, the UI is read-only and loopback-only. WEB_TLS_CERT and WEB_TLS_KEY enable HTTPS.

Use it at home, behind a VPN or behind an HTTPS reverse proxy. Do not expose port 8080 to the Internet without TLS.

Under the hood

NASBox is deliberately lean:

  • Event-driven sync, not a scheduled copy job. The 12-hour daemon timer is only housekeeping: retention, drift audit and chunk maintenance.
  • Chunk protocol by default. Files are split into content-addressed chunks; only missing chunks cross the network, transfers can resume and bandwidth is configurable.
  • SQLite state. The client tracks baselines, tombstones, observations and undo history without rebuilding the whole manifest on every event.
  • Persistent recovery. Interrupted publish, delete, rename and restore operations leave intents that the next lease can complete idempotently.
  • Safe rsync compatibility. The optional backend avoids options unsupported by the NAS system rsync 3.1.2.

Safe by design

  • PC ↔ NAS traffic goes through SSH.
  • Failed web logins are rate-limited and mutations require same-origin protection.
  • Share links use 192-bit random tokens, can expire or be revoked and are served as attachments.
  • Mass deletions stop sync until confirmed.
  • Conflicts keep the losing copy recoverable.
  • Client updates verify an Ed25519 signature and SHA-256 before installation, with rollback if the new binary fails to start.
  • The daemon updater verifies the running version and restores the previous binary on failure.

Performance on real hardware

On a Synology DS420j with 4 cores, 988 MB RAM, rotational ext4 and about 98,000 tracked files, sampled 2026-11-29:

Metric Reading
Daemon RSS ~11 MB
Daemon CPU at rest ~0.0%
Change-feed helper ~8 MB, only while waiting
Threads 9 for the daemon
Chunk store 506 objects, 169 MB

The expensive work — hashing, chunking and SSH transfer — runs on the clients, not in the NAS daemon. Chunk GC/fsck run in the nightly window at nice=10.

Everyday commands

nasbox-go gui                       # open the app
nasbox-go sync                      # run one sync pass
nasbox-go doctor --json             # check setup, SSH, locks and daemon
nasbox-go browse [path]             # browse the NAS
nasbox-go upload <file> [path]      # publish a file
nasbox-go download <path>           # download a file or folder
nasbox-go versions <file>           # previous versions
nasbox-go status | show             # sync status / bring the window forward
nasbox-go confirm-delete            # approve a blocked mass deletion
nasbox-go update-install            # install the checked client update

On the NAS:

nasbox-server --status
nasbox-server --capabilities
nasbox-server --metrics
nasbox-server --self-check
nasbox-server --run-once
nasbox-server --restart

Run nasbox-go without arguments for the full client command list.

Requirements

  • NAS: Linux, ARM64 or x86-64, reachable over SSH with a key and a shared folder for the data (typically /volume1/NASBox on Synology).
  • PC: Linux with ssh; the desktop app supports X11 and Wayland.
  • Windows: experimental client build, not yet validated on real Windows hardware and without automatic updates.
  • Optional: rsync is needed only when the rsync backend is selected. The default chunks backend does not require it.

Updates

The desktop app checks at startup and every few hours. It verifies the signed go-stable manifest and artifact hash, then rolls back automatically if the new version fails to start twice. .deb installations update through the package manager.

Manual checks:

nasbox-go update-check
nasbox-go server-update-check

Building from source

cd client-go
go vet ./... && go test ./...
go build -trimpath -ldflags='-s -w' -o nasbox-go ./cmd/nasbox
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o nasbox-server ./cmd/nasbox-server

Sources live in client-go/cmd/nasbox and client-go/cmd/nasbox-server. See CONTRIBUTING.md before opening a change.

Support the project

NASBox is free software. If it is useful to you, you can support its development:

Donate with PayPal

Bug reports and suggestions are welcome as GitHub issues.

License

NASBox is released under the MIT License.

About

NASBox — Multi-PC folder sync via your own NAS. Go desktop client + Go NAS daemon, web UI and versioned history.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages