Skip to content

NightBridgeHQ/nightbridge

NightBridge

A LocalSend-compatible headless server for homelabs, NAS boxes, and always-on machines.

Status: 26.5.0-alpha is published as a GitHub pre-release. The first release is focused on the original problem: run a LocalSend-compatible receiver without a desktop app open. The repository includes the headless daemon, CLI, LocalSend v2 receive/send paths, TUI, Docker/systemd/DEB packaging, Native Mesh LAN preview, WAN rendezvous work, and Tauri desktop GUI scaffolding. Desktop packages are pre-release until signing, notarization, and updater infrastructure are configured. See the 26.5 alpha announcement, release artifact matrix, and operator guide.

Why?

LocalSend is useful on phones and desktops. It is a poor fit for a NAS, a Raspberry Pi, or a homelab server: there is no headless mode, no first-class CLI, no daemon, and no API. This project fills that gap while staying compatible with the LocalSend ecosystem, so users can send files between LocalSend on their phone and this daemon on their server without extra setup.

First Release Focus

NightBridge 26.5 is aimed at operators who want a LocalSend endpoint on a headless machine:

  • run night-bridge-daemon as an always-on receiver
  • receive from official LocalSend apps into a configured inbox
  • approve unknown LocalSend peers before accepting files
  • operate the daemon through night-bridge / nbrg, HTTP/gRPC APIs, or TUI
  • deploy with systemd, Docker, or release binaries

Native Mesh LAN is the alpha differentiator: trusted NightBridge daemons on the same network can discover each other and send files over native QUIC by peer alias. WAN rendezvous, WebUI, and desktop GUI work remain advanced paths; the core promise is LocalSend-to-headless-server plus a preview of stricter server-to-server mesh transfers.

Native Mesh LAN Preview

Use LocalSend compatibility for phones and desktops. Use Native Mesh LAN for trusted NightBridge servers on the same LAN:

night-bridge peers list-native
night-bridge peers approve-native "Home NAS" --label "Home NAS"
night-bridge send --native --peer "Home NAS" ./backup.tar

The alpha mesh path uses native QUIC with pinned TLS certificate metadata and the daemon trust database. It is a LAN preview, not a WAN relay or multi-hop router.

User Docs

Container Preview

The develop preview image is published to GitHub Container Registry:

docker pull ghcr.io/nightbridgehq/nightbridge:develop
docker run --rm ghcr.io/nightbridgehq/nightbridge:develop --help

Use release binaries for the published alpha until a versioned container tag is promoted.

WAN Rendezvous

Sprint 5 adds a self-hosted rendezvous service for WAN discovery. Rendezvous is control-plane only: it registers peer candidates and helps peers attempt direct native QUIC connections. It does not relay file bytes, and there is no default public rendezvous service.

Desktop GUI

Sprint 6 adds a Tauri desktop app in crates/gui that bundles the existing Svelte WebUI from crates/webui. It supports remote daemon mode for connecting to an existing daemon endpoint and standalone local daemon mode for starting a local daemon process from the desktop app.

Useful GUI checks:

npm run check --prefix crates/webui
npm run build --prefix crates/webui
cargo check -p lsi-gui

Local Tauri package build:

cd crates/gui
../webui/node_modules/.bin/tauri build

Packaging and signing notes live in docs/deploy/desktop-packaging.md.

Operations

Operator setup, service management, and troubleshooting live in the operator guide.

Release

Security

Security design and operator-facing risk notes:

License

  • Base (this repo): AGPL-3.0-only.
  • VIP crates (separate repo, when shipped): BSL 1.1.
  • All contributions require DCO sign-off (git commit -s). No CLA is required, and by deliberate design, no CLA exists, so the base cannot be relicensed away from AGPL-3.0 by maintainers alone.

See the threat model and operator guide for the current architecture and deployment boundaries.

About

LocalSend-compatible headless server for homelabs, NAS boxes, and always-on machines

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors