Skip to content

Architecture

joravar edited this page Aug 17, 2026 · 2 revisions

Architecture & Technical Design

Bapu Studio is built on a modern, decoupled Electron + React architecture designed for fast cold boots and minimal idle memory footprint.

┌────────────────────────────────────────────────────────────────────────┐ │ RENDERER PROCESS (React 18) │ │ • Vite Compiler • HSL Vanilla CSS • UI State │ └───────────────────────────────────┬────────────────────────────────────┘ │ Preload Bridge (IPC Channels) ▼ ┌────────────────────────────────────────────────────────────────────────┐ │ MAIN PROCESS (Electron CJS) │ │ • Node.js Engine • Secure IPC Dispatcher • Local Disk Storage │ │ • Bundled DB Drivers: pg | mysql2 | mongodb | sql.js │ └────────────────────────────────────────────────────────────────────────┘

Security & IPC Hardening

  • Context Isolation: Enabled (contextIsolation: true). Renderer has no direct access to Node.js require() or file system APIs.
  • Preload Bridge: Exposes sanitized, specific IPC functions via window.electronAPI.
  • Zero Telemetry Guarantee: All network calls originate strictly from explicit user actions (sending an API request or connecting to a database).

Clone this wiki locally