Building from Source
Build zer0 browser from source code for development or custom deployments.
π Prerequisites
Node.js 16+
Git
Tor Expert Bundle for your platform
4 GB RAM minimum
π Quick Build
# Clone repository
git clone https://github.com/BrowserZer0/Zer0.git
cd Zer0
# Install dependencies
npm install
# Download Tor binary
# Windows: Place tor.exe in ./resources/win/Tor/
# Linux/Mac: Place tor in ./resources/lin/
# Run development mode
npm run electron-dev
# Build production
npm run build-win # Windows
npm run build-mac # macOS
npm run build-linux # Linuxπ Project Structure
zero_browser/
βββ public/ # Electron main process
β βββ electron.js # Main entry
β βββ preload.js # Preload scripts
β βββ functions/ # Tor, updater, etc.
βββ src/ # React UI
β βββ components/ # UI screens
β βββ electron-tabs/ # Tab implementation
βββ dist/ # Build outputπ§ Development
# Start dev server
npm start
# Run with Electron
npm run electron-dev
# Run tests
npm test
# Lint code
npm run lintπ¦ Build Scripts
{
"electron-dev": "concurrently \"npm start\" \"electron .\"",
"build-win": "electron-builder build --win",
"build-mac": "electron-builder build --mac",
"build-linux": "electron-builder build --linux"
}π Troubleshooting
Tor not found:
Download from torproject.org
Place in correct
resources/folder
Build fails:
Clear node_modules:
rm -rf node_modules && npm installUpdate Node: Use v16 or later
Electron won't start:
Check port 3000 is free
Try:
npm run electron-dev
π Next Steps
Last updated