Electron Desktop
ByteBox can run as an Electron desktop app. Currently available for Linux.
Download
Section titled “Download”Pre-built Linux installers for v2.4.0:
- ByteBox-2.4.0.AppImage — Universal Linux (any distro)
- bytebox_2.4.0_amd64.deb — Debian / Ubuntu / Mint
Dev Mode
Section titled “Dev Mode”npm run electron:devThis script compiles Electron main/preload code, launches Next dev server, waits for http://localhost:1334, then opens Electron.
Build Installer
Section titled “Build Installer”npm run electron:build:linuxRuntime Behavior
Section titled “Runtime Behavior”- Development:
Electron points to Next dev server on port
1334. - Packaged:
Electron starts a bundled Next production server in-process on port
1335.
Migration Handling in Packaged App
Section titled “Migration Handling in Packaged App”On startup, electron/main.ts:
- Resolves user data directory
- Sets
DATABASE_URLto user DB path - Applies pending SQL migrations from bundled
prisma/migrations - Boots Next server and opens the window
Database Location
Section titled “Database Location”Packaged app DB lives in OS user data path and survives upgrades.
Examples:
- Linux:
~/.config/ByteBox/bytebox.db
- Main process uses secure defaults (
contextIsolation,sandbox, no node integration in renderer). - External links open in system browser.