Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Sentinel Logo

🖥️ sentinel-desktop

One-click Windows installer for the Sentinel ecosystem

Bundles the selfbot engine and web dashboard into a single native app — no terminal, no .env files, no manual setup.

Part of the Sentinel project.

GitHub stars GitHub forks
License Project Status Platform Electron


🧠 What It Does

Sentinel Desktop wraps the entire Sentinel stack into a native Windows application:

  • 🧙 Guided setup wizard — enter your Discord token and port, everything else is auto-configured
  • 🔧 Managed selfbot process — starts, stops, restarts, and auto-recovers the selfbot engine
  • 🌐 Embedded dashboard — the full sentinel-web panel runs inside the app, no browser needed
  • 🔑 Automatic auth — API tokens are generated and injected automatically between selfbot and dashboard
  • 📥 Minimize to tray — closing the window keeps the selfbot running in the background
  • 🔄 One-click restart — restart the selfbot from the tray menu without touching a terminal
  • 📋 Built-in log viewer — view selfbot logs directly from the tray menu
  • 🛡️ Crash recovery — automatic restart with backoff if the selfbot process crashes

No Node.js installation required — a portable runtime is bundled with the installer.


⚡ Download & Install

  1. Go to Releases
  2. Download the latest Sentinel-Setup-x.x.x.exe
  3. Run the installer — choose your install directory
  4. Launch Sentinel from the Start Menu or Desktop shortcut
  5. Complete the setup wizard (Discord token + port)
  6. Done — the selfbot starts and the dashboard opens automatically

🏗️ Building from Source

Prerequisites

  • Node.js 18+ (with npm)
  • Windows 10/11 (x64)
  • sentinel-selfbot/ and sentinel-web/ as sibling directories

Development

git clone https://github.com/Privex-chat/sentinel-desktop.git
cd sentinel-desktop
npm install

# Build pipeline: compiles selfbot, exports web dashboard, generates icons,
# downloads portable Node.js, prunes dependencies
node scripts/build.js

# Run in dev mode
npm run dev

Dev mode (--dev) loads the selfbot from ../sentinel-selfbot/dist/ directly, so you can iterate without rebuilding.

Building the Installer

# Full build + NSIS installer
npm run dist

Produces dist-electron/Sentinel Setup x.x.x.exe.


🏛️ Architecture

sentinel-desktop/
  main/
    index.js          ← Electron main process
    selfbot.js        ← child_process.spawn() management + crash recovery
    store.js          ← electron-store config (encrypted)
    ipc.js            ← IPC handlers (renderer ↔ main)
    tray.js           ← System tray icon + context menu
    wizard.js         ← Setup wizard window
  renderer/
    wizard/           ← Setup wizard HTML/CSS/JS
    dashboard/        ← sentinel-web static export (copied by build)
  preload/
    index.js          ← contextBridge — injects API config into dashboard
  scripts/
    build.js          ← Full build pipeline (icon gen, Node.js download,
                         selfbot build + prune, native module rebuild,
                         dashboard export, verification)
  vendor/
    node/             ← Portable Node.js runtime (bundled in installer)
  assets/
    logo.png          ← Source logo (859×859)
    icon.ico          ← Multi-resolution icon (auto-generated by build)

How It Works

  1. First launch → setup wizard collects Discord token and port
  2. Config saved to encrypted electron-store (%APPDATA%/sentinel-desktop/)
  3. API token auto-generated for selfbot ↔ dashboard authentication
  4. Selfbot spawned as a child process with config injected via environment variables
  5. Dashboard loaded in a BrowserWindow from the static Next.js export
  6. Preload script auto-populates localStorage with API URL + token
  7. Window close minimizes to system tray — selfbot keeps running
  8. Tray menu: Open, Restart Selfbot, View Logs, Reset Setup, Quit

🛠️ Tech Stack

Runtime Electron 41
Installer electron-builder (NSIS)
Selfbot sentinel-selfbot (bundled)
Dashboard sentinel-web (static export)
Node.js Portable win-x64 runtime (bundled)
Config electron-store (AES-256 encrypted)
Icons Multi-resolution ICO generated from PNG via System.Drawing

🔗 Related


📜 License

PolyForm Noncommercial License 1.0.0

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages