One room, one network. Single connects every device in a room — laptops, phones, desktops — into one shared space. Devices find each other automatically, pair once with a PIN, and then every device’s files are right there on the others: browsable in the app, mounted as a network drive in “This PC” on Windows, and usable by any other program as if the files were local.
/single/<DeviceName>.┌───────────────────────────── Single app ──────────────────────────────┐
│ HTML / CSS / JS UI (system webview) │
│ │ Tauri IPC │
│ ┌──────▼────────────────────────────────────────────────────┐ │
│ │ Rust backend (single-core) │ │
│ │ • discovery: mDNS + UDP beacons + manual IP │ │
│ │ • pairing: PIN + approval, cert-pinned TLS │ │
│ │ • transfer: HTTPS/WebDAV subset (TLS 1.2/1.3) │ │
│ │ • platform: Windows drive mapping / Android root dirs │ │
│ └──────┬────────────────────────────────────────────────────┘ │
└─────────┼─────────────────────────────────────────────────────────────┘
│ TLS with certificate pinning (never a public CA)
┌──────▼────────┐ ┌───────────────┐
│ Device A │◀──────────▶│ Device B │
│ port 27500 │ encrypted │ port 27500 │
└───────────────┘ └───────────────┘
Every device runs its own tiny certificate authority (stored in
~/.lmalakar/Single). The SHA-256 fingerprint of that key is the device
identity. Peers pin it after pairing, so a connection can only be made to a
device you have actually approved. File access is authorized with a shared
256-bit token derived from both fingerprints plus the pairing PIN.
The transfer layer is an HTTPS/WebDAV subset — that is deliberate: WebDAV is
what lets Windows mount a paired device as a drive letter (net use S:
https://192.168.1.23:27500/dav ...) that all other programs can use. Plain
FTP cannot be mounted as a drive; FTPS/FTP-client support may be added as an
extra compatibility layer later.
| Tool | Why | Get it |
|---|---|---|
| Rust (stable) | compiles the backend | https://rustup.rs |
| Node.js + npm | Tauri CLI + required for the APK (the Android Gradle build runs the Tauri CLI through npm) | https://nodejs.org |
| Inno Setup 6 (optional) | nicer Single-Setup.exe |
https://jrsoftware.org/isinfo.php |
| Android Studio (for the APK) | SDK + NDK + JDK | https://developer.android.com/studio |
Without Node the script installs tauri-cli through Cargo (slower, one
time) and Windows artifacts still build — but the APK step needs Node.js.
Without Inno Setup the script falls back to Tauri’s built-in NSIS
installer. Without Android Studio you still get all Windows artifacts.
The repo root contains a small package.json with a "tauri" script —
that is what the Android Gradle build calls back into (npm run tauri …),
and Build.bat runs npm install for you so the CLI lands in
node_modules. Keep the file next to Build.bat.
:: clone / unzip the source, then:
Build.bat
The script does everything: installs the local Tauri CLI (npm install),
refreshes icons from logo.svg, builds the Windows exe, builds
Single-Setup-v0.1.5.exe, packs the portable zip, and — when an Android SDK
is present — generates the Android project on first run and builds the APK.
Single\
├── Windows\
│ ├── Single.exe portable, just run it
│ ├── Single-Setup-v0.1.5.exe installer (Inno Setup or NSIS)
│ └── Single-v0.1.5.zip portable zip
└── Android\
└── Single-v0.1.5.apk debug-signed, installs directly
Every logo is generated from logo.svg in the repo root — replace the
file and run Build.bat again to refresh all of them:
Single.exe),ui/splash.html and tauri.windows.conf.json),icons/header.bmp, regenerated each build),Single ships one codebase with a UI that adapts to the device it runs on — no compromise layout shared between mouse and thumb:
Windows / desktop (window ≥ 761 px wide)
Android / mobile (narrow or touch screen)
Long-press freeze fixed. Holding an image (or any content) used to pop up the Android WebView’s native callout/drag preview on top of the app and freeze the screen. v0.1.4 disables image dragging, the touch callout and text selection UI-wide (typing and the pairing PIN still work as before).
Mobile is a first-class citizen since v0.1.5. The Android file picker
returns content:// streams that cannot be opened as file paths, so uploads
from a phone now go through the WebView’s own file input and a chunked
staging pipeline (upload_begin / upload_chunk / upload_end) — with the
same progress view and failure handling as desktop uploads. Downloads try
the public Download/Single folder first (when Android lets the app write
it) so files actually show up in file managers and galleries, and fall back
to app storage otherwise. The hardware back button closes the open
dialog first and returns to Devices before exiting, and bottom sheets
ride above the on-screen keyboard instead of hiding under it.
A full audit of the codebase fixed, among others:
canonicalize() returns verbatim
\\?\C:\... paths on Windows, so the share-root containment check failed
for every upload / folder creation / delete / rename. Both sides of the
comparison are now canonicalized and prefix-normalized.If: token).&-like text were corrupted by a double
XML-unescape in the directory listing parser.Windows — run Single-Setup-v0.1.5.exe (or just Single.exe). In
Settings → Enable drive support accept the one-time UAC prompt: it
installs Single’s certificate, starts the WebClient service, lifts the
50 MB WebDAV cap, and opens the firewall. Then map paired devices as drives
from the Devices page.
Android — allow “install from unknown sources” for the APK. Uploads
use the system file picker directly (any file, any app, no storage
permission needed); downloads land in Download/Single when the OS allows
it, otherwise in the app folder shown in About. On rooted
phones enable Settings → Expose per-device folders at /single to create
/single/<DeviceName> (bind-mounted from the app’s own storage). Without
root everything still works inside the app; the folders simply live in the
app’s private storage.
Everywhere — the app’s system folder is ~/.lmalakar/Single:
~/.lmalakar/Single/
├── config.json settings
├── pairings.json paired devices + shared tokens
├── ca.pem / ca_key.pem device identity (keep private!)
├── server.pem / server_key.pem TLS material
├── Share/ the folder other devices can see
└── Downloads/ landing zone for files pulled from peers
..-traversal
rejected, symlink escapes blocked since v0.1.5).A problem occurred starting process 'command 'npm.bat'' (Android)The Android build has two layers: Build.bat → Gradle → back into the
Tauri CLI. When the Android project was generated via npx, the generated
Gradle task (src-tauri/gen/android/buildSrc/.../BuildTask.kt) launches the
Tauri CLI through npm, so Gradle must be able to start npm.bat.
It fails when npm is missing from the PATH that the Gradle daemon sees:
npm --version
fails in a fresh terminal).Build.bat runs gradlew --stop
before building, which retires stale daemons automatically.where npm must print a path, then run Build.bat again.src-tauri\gen\android and run Build.bat; the
whole Android project is regenerated from scratch.npm error Missing script: "tauri" (Android)Gradle calls the Tauri CLI with npm run tauri … in the project root.
That requires a root package.json containing the "tauri" script and the
CLI installed in node_modules. This repo ships both; Build.bat runs
npm install automatically before the Android step.
package.json (repo root, next to Build.bat) is present.npm install in the project root — internet + Node.js LTS needed.npm run tauri --version must print a version.Build.bat again. If it still fails, delete src-tauri\gen\android
so Gradle regenerates the project.different roots / Could not close incremental caches (Android)The Tauri Android library sources live inside the Cargo registry (usually
C:\Users\<you>\.cargo\registry\...) while the project sits on another
drive (for example D:\Webproject\Single-main). Kotlin’s incremental
compiler cannot store relative paths across two Windows drive letters and
the whole Kotlin daemon dies.
Build.bat prevents this automatically: it appends
kotlin.incremental=false to src-tauri\gen\android\gradle.properties,
compiles Kotlin in-process, and clears stale caches next to the Tauri
sources. Manual fix, if you build Gradle yourself:
kotlin.incremental=false to src-tauri\gen\android\gradle.properties.C:\Users\<you>\.cargo\registry\src\...\tauri-<version>\mobile\android\build.memory allocation of ... bytes failed (rustc dies mid-build)The compiler ran out of RAM — the windows crate that Tauri depends on is
gigantic and each rustc process can peak at several GB. Multiple rustc
processes run in parallel by default, so machines with 8 GB or less (or a
browser / Android Studio open at the same time) hit the wall mid-build.
Build.bat detects your RAM and caps parallel compile jobs automatically
(16 GB+ → no cap, 8 GB → 2 jobs, less → 1 job). It also intentionally does
not enable lto / codegen-units = 1, which multiply peak memory.set CARGO_BUILD_JOBS=1 then Build.bat.That is expected whenever a prerequisite of the Android toolchain is
missing (NDK, licenses, Node). All Windows artifacts under Single\Windows\
are already finished — fix the reported cause and re-run Build.bat.
The interesting logic lives in crates/single-core —
pure Rust, fully unit-tested (including a two-device end-to-end test). The
Tauri shell (src-tauri) is a thin adapter, and the UI is plain
HTML/CSS/JS in ui/. PRs at
https://github.com/L-Malakar/Single are welcome.
MIT — © 2026 L. Malakar. See LICENSE.