A fullscreen Electron arcade launcher with retro UI, local games, a Guppy hacker terminal, ESP32 hardware integration, and optional Ollama AI hints.
This project combines two experiences in one desktop app:
- Arcade mode: boot screen, retro game carousel, embedded game viewport, fullscreen launcher flow, and AI gameplay hints.
- Guppy / hacker mode: a terminal-like interface for NFC, IR, and Wi-Fi tooling through a DIY ESP32 hardware bridge.
The app runs on Electron + React, launches local Python, Java, and EXE games, communicates over serial with an ESP32 Guppy board, and can optionally talk to Ollama for short AI explanations while playing.
- Fullscreen retro boot screen with CRT/glitch effects, gamepad support, and a hidden hack-to-terminal transition.
- Arcade menu with 11 built-in menu items and launch support for
.py,.jar, and.exe. - Embedded game launch mode with viewport data passed through environment variables.
- AI hint overlay per game via Ollama, with silent prefetch and fallback URL support.
- Auto-detect and auto-reconnect for a DIY Guppy device via
serialport. - Hacker terminal with tabs for
HOME,NFC,IR, andWIFI. - NFC UID capture + local JSON storage.
- IR database loader + IR send workflow through ESP32.
- Wi-Fi scan, audit, SoftAP profiles, and firmware-first deauth/jammer flow.
- Linux host fallback for the Wi-Fi jammer via
packetsender.py+scapy. - Cloud helper script to set up a GCP Ollama VM.
- ESP32 firmware, PN532 probe sketch, IR helper, and NFC helper in the same repo.
- High-level architecture
- User flow
- Repository map
- Key source files
- Game catalog
- Guppy terminal and hardware features
- AI and Ollama
- Requirements
- Installation and quick start
- Scripts and commands
- Environment variables
- Persistent data and output
- Adding new games
- Platform and runtime notes
- Responsible use
- Roadmap, docs, and team context
flowchart LR
Boot["Boot Screen"] --> Menu["Arcade Menu"]
Boot --> Hack["Hack Transition"]
Hack --> Guppy["Guppy Terminal"]
Menu --> Arcade["Arcade Game Shell"]
Arcade --> IPC["window.electron IPC bridge"]
Guppy --> IPC
IPC --> Main["Electron main process"]
Main --> Games["Python / Java / EXE games"]
Main --> Ollama["Local / remote Ollama"]
Main --> Serial["ESP32 Guppy over USB serial"]
Serial --> NFC["PN532 NFC"]
Serial --> IR["IR TX / IR RX"]
Serial --> Wifi["Wi-Fi scan / audit / AP / deauth"]
| Layer | Responsibility |
|---|---|
renderer |
Boot screen, arcade UI, Guppy terminal UI, input handling, AI overlay, Wi-Fi results modal |
preload |
Secure bridge between renderer and Electron main through window.electron |
main |
Window management, game launch/stop, serial auto-connect, Wi-Fi tooling, AI HTTP calls |
games |
Local Python, Java, and EXE games plus bundled assets |
firmware |
ESP32 bridge firmware, NFC/IR helpers, PN532 probe sketch |
docs |
Hardware quickstart, AI platform blueprint, IR mini database |
cloud_scripts |
Helper for setting up a GCP VM with Ollama |
- The app opens fullscreen in the boot screen.
- After the progress sequence, you can continue to the arcade menu.
- A selected game starts through Electron IPC.
- While a game is running, the app stays in an arcade cabinet shell with launch status, exit flow, and an optional AI hint overlay.
- When the child process exits, the app automatically returns to the menu.
- From the boot screen, click HACK TERMINAL.
- A visual hack transition runs.
- The app opens the Guppy terminal.
- The main process automatically tries every few seconds to find a suitable serial device.
- Once connected, NFC, IR, Wi-Fi, and raw serial commands become available.
.
├── README.md
├── package.json
├── package-lock.json
├── electron.vite.config.ts
├── tsconfig.json
├── cloud_scripts/
│ └── setup-gcp-ollama-vm.sh
├── docs/
│ ├── AI_ARCADE_PLATFORM_ARCHITECTURE.md
│ ├── DIYGUPPY_QUICKSTART.md
│ └── ir-mini-database.json
├── firmware/
│ └── esp32_guppy/
│ ├── esp32_guppy.ino
│ ├── diy_ir_mini.cpp / .h
│ ├── diy_nfca_reader.cpp / .h
│ ├── build_opt.h
│ └── pn532_hsu_probe/
├── scripts/
│ ├── run-electron-vite.js
│ └── setup-python-venv.js
├── out/
│ └── electron-vite build output
└── arcade-guppy/
├── tsconfig.json
├── src/
│ ├── main.ts
│ ├── preload.ts
│ ├── renderer.tsx
│ ├── electron.d.ts
│ ├── shared/electron-types.ts
│ ├── components/
│ │ ├── arcade/
│ │ └── guppy/
│ ├── assets/
│ └── games/
└── wifijammer-2.0/
├── packetsender.py
├── pull.py
├── requirements.txt
├── README.md
└── maclist/macs.txt
arcade-guppy/src/games/Mame_Emulator/contains a full MAME bundle with upstream assets, docs, plugins, artwork, hashes, and samples.arcade-guppy/src/games/RetroRaceGame/contains both the buildable Java source code and the bundledRetroRaceGame.jar.arcade-guppy/src/games/SuperMarioNES/containsMario.jar, native JInput libraries, and a settings file.arcade-guppy/wifijammer-2.0/contains the host fallback backend for Wi-Fi deauth/jammer workflows.
| File | Role |
|---|---|
arcade-guppy/src/main.ts |
Core orchestrator: browser window, fullscreen, IPC, game launch/stop, serial auto-connect, Wi-Fi tooling, AI/Ollama calls |
arcade-guppy/src/preload.ts |
Exposes the window.electron API to the renderer |
arcade-guppy/src/renderer.tsx |
Root app state and routing between boot, arcade menu, game shell, and hacker menu |
arcade-guppy/src/shared/electron-types.ts |
Shared types for launch requests, Guppy status, Wi-Fi jammer payloads, and AI payloads |
arcade-guppy/src/electron.d.ts |
Type definitions for the global window.electron bridge |
| File | Role |
|---|---|
arcade-guppy/src/components/arcade/boot.tsx |
Retro boot screen, keyboard/gamepad start, top-right hack button |
arcade-guppy/src/components/arcade/GameMenu.tsx |
Game catalog, wheel/carousel, keyboard/gamepad/mousewheel navigation |
arcade-guppy/src/components/arcade/ArcadeGame.tsx |
Arcade cabinet shell around a launched game, progress overlay, exit flow, AI hints |
| File | Role |
|---|---|
arcade-guppy/src/components/guppy/HackTransition.tsx |
Visual CRT/matrix breach transition into hacker mode |
arcade-guppy/src/components/guppy/HackerMenu.tsx |
HOME/NFC/IR/WIFI terminal UI, raw serial console, Wi-Fi forms, and deauth controls |
arcade-guppy/src/components/guppy/WifiResultsModal.tsx |
Parses scan/audit output, deduplicates networks, and shows risk/vendor information |
| File | Role |
|---|---|
package.json |
npm scripts, runtime dependencies, Electron entrypoint |
electron.vite.config.ts |
Build config for main, preload, and renderer; serialport is externalized for the main build |
tsconfig.json |
Root TypeScript config for ambient Electron typing |
arcade-guppy/tsconfig.json |
TypeScript config for the app source code including JSX |
scripts/run-electron-vite.js |
Wrapper around electron-vite that resets ELECTRON_RUN_AS_NODE |
scripts/setup-python-venv.js |
Creates arcade-guppy/.venv, upgrades pip, installs pygame, and installs discovered requirements*.txt files under the games tree |
The default catalog is hardcoded in arcade-guppy/src/components/arcade/GameMenu.tsx.
| Title | Runtime | Path | Note |
|---|---|---|---|
PONG |
Python | games/pong.py |
1P versus AI; starts gently and speeds up with each paddle hit |
PAC-MAN |
Python | games/PacMan/pacman.py |
uses local assets/audio |
RETRO BIRD |
Python | games/RetroBird/main.py |
Flappy Bird style |
Pixel Quest Adventure |
Java JAR | games/SuperMarioNES/Mario.jar |
resolution is automatically updated in Setting.txt |
EXTREME RACING |
Python | games/CarRacingUltraMaxExtremeLevel1000/main.py |
racing game with its own assets/audio |
BLOCK STORM |
Python | games/BlockStorm/main.py |
falling-block gameplay |
RETRO RACE |
Java JAR | games/RetroRaceGame/RetroRaceGame.jar |
source code included in the repo |
ANGRY WALLS |
Python | games/AngryWalls/main.py |
dungeon/loot style |
ELEMENTAL CLASH |
Python | games/ElementalClash/src/main.py |
2P duel |
SPACE INVADER |
Python | games/spaceinvaders.py |
space shooter |
EMULATOR |
EXE | games/Mame_Emulator/mame.exe |
Windows-native MAME executable |
| Type | How it is launched |
|---|---|
.py |
through python3 or python, or through ARCADE_PYTHON, or through arcade-guppy/.venv if pygame is available there |
.jar |
through java -jar, or through ARCADE_JAVA / JAVA_HOME |
.exe |
directly as a child process |
For embedded-mode launches, the main process sets these env vars:
ARCADE_EMBEDDED=1or0ARCADE_WINDOW_POS=x,yARCADE_WINDOW_SIZE=widthxheight
- A gameplay hint is prefetched in the background as soon as a game is running.
- The hint overlay unlocks after about 20 seconds.
- If a hint is already cached, it appears almost immediately.
PONGplays against an AI paddle by default instead of pure 2P local play.- Without a remote endpoint, the game uses a local fallback AI so the match remains realtime.
- With an Ollama-compatible Gemma endpoint on GCP, the right paddle can be controlled by remote decisions plus local smoothing.
- The ball intentionally starts slower than before and now accelerates gradually with each paddle hit, with a light extra acceleration over time.
| View | Function |
|---|---|
HOME |
hardware status, latest serial line, shortcuts to NFC/IR/WIFI |
NFC |
RUN NFC_CLONE, NFC_READ, show UID, save capture as JSON |
IR |
IR DB reload, select entry, send IR_SEND |
WIFI |
scan, audit, AP profile management, AP start/stop, deauth/jammer controls |
- Listens to realtime status events:
guppy-status,guppy-line,wifi-jammer-state,wifi-jammer-log,game-exited. - Supports keyboard and gamepad navigation in both arcade and hacker mode.
- Keeps a local serial log in the UI with rolling history.
- Parses NFC, IR, and Wi-Fi status from raw serial output.
- Scans for serial ports every 3 seconds while auto-connect is enabled.
- Attempts handshakes with
HELLOandPING. - Recognizes Guppy hardware based on serial metadata and handshake markers such as:
GUPPY_READYPONGFW:esp32-bridgeCAPS:...
- Tracks capability flags from the firmware
CAPS:line.
At the protocol level, the app knows these module keys:
| Module key | Sent command |
|---|---|
nfc |
RUN NFC_CLONE |
badusb |
RUN BADUSB_INJECT |
ir |
RUN IR_BLAST |
gpio |
RUN GPIO_CTRL |
wifi |
RUN WIFI_AUDIT |
wifiap |
RUN WIFI_AP_START |
terminal |
RUN SHELL |
The current UI mainly focuses on NFC, IR, and Wi-Fi. BADUSB, GPIO, and SHELL are already present as protocol/extension support.
- ESP32 firmware supports
NFC_READandRUN NFC_CLONE. - Captures are stored as JSON with
uid,label,capturedAt,source, andrawLine. - The UI marks NFC health based on incoming serial output such as
NFC_UID,PN532 not detected, orNFC=....
- The app loads
docs/ir-mini-database.jsonby default. - That database currently contains 24 sample entries for TV, soundbar, projector, LED strip, fan, and camera remotes, among others.
- If that JSON is missing or broken, the app falls back to a built-in fallback with 4 NEC samples.
- Sending happens via
IR_SEND <protocol> <address> <command> <carrierKhz>.
- Scan results are parsed from serial output and turned into a network model with:
- SSID
- RSSI
- security
- channel
- BSSID
- risk score
- The results modal enriches BSSIDs with vendor info from
arcade-guppy/wifijammer-2.0/maclist/macs.txt. - The vendor list currently contains 24,609 prefix lines.
- Stored locally and reloaded on reconnect.
- Requirements from the code:
- SSID required
- SSID max 32 chars
- no spaces in SSID
- password empty or 8-63 chars
- no spaces in password
- channel is clamped between 1 and 13
The app supports two backends:
| Mode | Description |
|---|---|
firmware |
recommended; sends a start/stop command to the ESP32 if the firmware advertises matching CAPS |
host |
fallback; starts arcade-guppy/wifijammer-2.0/packetsender.py on the host |
The UI automatically tries to use a firmware backend when the device contains CAPS: entries such as:
WIFI_DEAUTH_START+WIFI_DEAUTH_STOPWIFI_JAMMER_START+WIFI_JAMMER_STOPWIFI_JAM_START+WIFI_JAM_STOP
- Only supported on Linux.
- Requires at least one interface already in monitor mode.
- Uses
iwconfigto auto-detect that interface. - Then starts
packetsender.pythrough Python.
- Provides a short explanation of how to play a selected game.
- Keeps the text compact.
- Uses
title,genre,difficulty, and optionallylastEvent.
- The renderer calls
window.electron.aiExplain(...). - The main process first checks whether Ollama is reachable via
/api/tags. - It then calls
/api/chatwith the selected model. - If the primary URL fails, an optional fallback URL can be used.
| Variable | Default | Meaning |
|---|---|---|
OLLAMA_URL |
http://localhost:11434 |
primary Ollama endpoint |
OLLAMA_FALLBACK_URL |
empty | optional fallback endpoint |
OLLAMA_MODEL |
gemma2:27b |
model name |
OLLAMA_TIMEOUT_MS |
45000 |
timeout for AI requests |
OLLAMA_KEEP_ALIVE_SEC |
1800 |
keeps the model loaded |
arcade-guppy/src/games/pong.py can use the same remote Ollama/GCP stack as the hint feature.
Main variables:
| Variable | Default | Meaning |
|---|---|---|
PONG_AI_MODE |
hybrid |
local, hybrid, or remote |
PONG_AI_URL |
OLLAMA_FALLBACK_URL or OLLAMA_URL |
base URL for the remote AI |
PONG_AI_ENDPOINT |
empty | optional exact endpoint; overrides PONG_AI_URL |
PONG_AI_MODEL |
OLLAMA_MODEL or gemma3:4b |
model name for the paddle AI |
PONG_AI_TIMEOUT_MS |
900 |
timeout per paddle decision |
PONG_AI_INTERVAL_MS |
280 |
poll interval for remote decisions |
PONG_AI_SEAMLESS_FALLBACK |
0 |
keeps the remote AI path visually active if the endpoint is unavailable |
PONG_AI_LOG |
0 |
when 1, writes a JSONL decision trace for the Pong AI |
PONG_AI_LOG_WINDOW |
0 |
when 1, opens a live Pong console window in Terminal on macOS or cmd.exe on Windows |
PONG_CONSOLE_LOG_PATH |
arcade-guppy/logs/pong-console.log |
optional path override for the live Pong stdout/stderr log |
PONG_AI_LOG_PATH |
arcade-guppy/logs/pong-ai.jsonl |
optional path override for the AI trace file |
PONG_AI_LOG_RAW |
1 |
include the raw model response text in the trace |
PONG_AI_LOG_SNAPSHOT |
1 |
include the game snapshot sent to the model |
PONG_BALL_START_SPEED |
6.0 |
initial ball speed |
PONG_BALL_HIT_ACCEL |
1.08 |
multiplicative boost per paddle hit |
PONG_BALL_MAX_SPEED |
20.0 |
hard cap on ball speed |
When logging is enabled, the file contains JSONL entries for request scheduling, remote responses, parsed decisions, source switches (remote, hybrid, local_fallback), errors, and session start/end. This traces the AI decision flow, not hidden model chain-of-thought. If PONG_AI_LOG_WINDOW=1, the desktop launcher also opens a separate live console window that tails the raw Pong stdout/stderr output on macOS and Windows.
Example with a GCP Ollama VM:
OLLAMA_FALLBACK_URL=http://<gcp-ip>:11434 OLLAMA_MODEL=gemma3:4b npm run devcloud_scripts/setup-gcp-ollama-vm.sh automates a simple remote Ollama VM.
What the script does:
- sets up an Ubuntu 22.04 VM on GCP;
- installs Ollama;
- opens port
11434; - restricts firewall access to your public IP by default;
- automatically pulls the selected model;
- supports spot instances.
Main script variables:
| Variable | Default |
|---|---|
PROJECT_ID |
inbound-decker-475607-d6 |
INSTANCE_NAME |
ollama-vm |
ZONE |
europe-west1-b |
MACHINE_TYPE |
n2-highmem-8 |
MODEL_NAME |
gemma2:27b |
ALLOWED_CIDR |
auto |
SPOT |
true |
The longer AI/multiplayer/cyber vision is described in:
That document describes the future architecture, not just the current implementation.
- Node.js 18+
- npm 9+
- Python 3.10+ or compatible
pygame
- a working Java runtime on
PATH - or
JAVA_HOME - or
ARCADE_JAVA
- an Ollama instance, local or remote
- ESP32 dev board
- PN532 NFC module
- IR TX module
- IR RX module
- USB serial connection
- Linux
iwconfig- monitor-mode interface
scapy==2.4.3
npm installRecommended:
npm run setup:pythonWhat this does:
- creates
arcade-guppy/.venv; - upgrades
pip; - installs
pygame; - installs discovered
requirements*.txtfiles under the game source tree.
Manual setup is also possible:
python3 -m venv arcade-guppy/.venv
source arcade-guppy/.venv/bin/activate
pip install pygamenpm run setup:python does not automatically install scapy from arcade-guppy/wifijammer-2.0/requirements.txt, because that directory sits outside the scanned game tree.
So install it separately when you need the host fallback:
source arcade-guppy/.venv/bin/activate
pip install -r arcade-guppy/wifijammer-2.0/requirements.txtnpm run devExample:
OLLAMA_URL=http://localhost:11434 npm run devFor Pong against a remote Gemma model on GCP, you can also use:
OLLAMA_FALLBACK_URL=http://<gcp-ip>:11434 OLLAMA_MODEL=gemma3:4b npm run devWith correct ESP32 firmware, the app will try to connect automatically. In normal cases, you do not need to select a port manually.
For the hardware quickstart, see:
| Command | What it does |
|---|---|
npm run dev |
starts Electron + Vite in development mode |
npm run build |
builds main, preload, and renderer into out/ |
npm run preview |
previews the built Electron app |
npm run typecheck |
tsc --noEmit -p arcade-guppy/tsconfig.json |
npm run check |
typecheck + build |
npm run test |
alias of npm run check |
npm run setup:python |
creates/updates arcade-guppy/.venv and installs Python dependencies |
| Variable | Usage |
|---|---|
ARCADE_PYTHON |
forces the Python interpreter for .py launches |
ARCADE_JAVA |
forces the Java binary for .jar launches |
JAVA_HOME |
fallback for Java detection |
OLLAMA_URL |
primary Ollama endpoint |
OLLAMA_FALLBACK_URL |
optional fallback endpoint |
OLLAMA_MODEL |
model for AI hints |
OLLAMA_TIMEOUT_MS |
request timeout |
OLLAMA_KEEP_ALIVE_SEC |
model keep-alive |
PONG_AI_MODE |
AI mode for Pong: local, hybrid, or remote |
PONG_AI_URL |
base URL for remote Pong AI |
PONG_AI_ENDPOINT |
exact endpoint for remote Pong AI |
PONG_AI_MODEL |
model name for the Pong opponent |
PONG_AI_TIMEOUT_MS |
timeout per Pong AI call |
PONG_AI_INTERVAL_MS |
Pong AI poll interval |
PONG_BALL_START_SPEED |
starting speed of the Pong ball |
PONG_BALL_HIT_ACCEL |
acceleration per paddle hit |
PONG_BALL_MAX_SPEED |
max speed of the Pong ball |
| File / folder | Contents |
|---|---|
userData/guppy/nfc-captures/ |
stored NFC captures as JSON |
userData/guppy/wifi-ap-profile.json |
most recently saved Wi-Fi AP profile |
| Path | Contents |
|---|---|
out/ |
electron-vite build output |
arcade-guppy/.venv/ |
local Python virtual environment |
arcade-guppy/src/games/SuperMarioNES/Setting.txt |
modified to match the target resolution |
Adding new launchable games happens in arcade-guppy/src/components/arcade/GameMenu.tsx.
- Put the game files under
arcade-guppy/src/games/.... - Add a thumbnail under
arcade-guppy/src/assets/.... - Add a new object to the
gamesarray inGameMenu.tsx. - Use an executable path relative to
arcade-guppy/src.
Examples:
executable: 'games/MyPythonGame/main.py'
executable: 'games/MyJavaGame/game.jar'
executable: 'games/MyNativeGame/game.exe'- Path traversal is blocked in
main.ts. - Only paths inside the app base path may be launched.
- Supported extensions are currently only
.py,.jar, and.exe.
Main firmware files:
| File | Role |
|---|---|
firmware/esp32_guppy/esp32_guppy.ino |
main firmware for the USB serial bridge |
firmware/esp32_guppy/diy_ir_mini.cpp/.h |
IR sender helper |
firmware/esp32_guppy/diy_nfca_reader.cpp/.h |
PN532 NFC-A reader helper |
firmware/esp32_guppy/build_opt.h |
compile flag for NFC I2C mode |
firmware/esp32_guppy/pn532_hsu_probe/ |
separate probe sketch for PN532 HSU diagnostics |
| ESP32 pin | Function |
|---|---|
GPIO21 |
PN532 SDA |
GPIO22 |
PN532 SCL |
GPIO27 |
PN532 IRQ |
GPIO26 |
PN532 RST |
GPIO4 |
IR TX |
GPIO34 |
IR RX |
GPIO16 |
Pico TX to ESP32 RX2 |
GPIO17 |
Pico RX to ESP32 TX2 |
- Serial baud rate:
115200 - Default SoftAP SSID:
GUPPY_LAB - Default SoftAP channel:
6 - Default IR blast payload:
NEC 0x20DF 0x10EF 38
The ESP32 bridge prints, among other things, on boot:
GUPPY_READYFW:esp32-bridge-v2CAPS:NFC_CLONE,NFC_READ,IR_BLAST,IR_SEND,GPIO_CTRL,WIFI_SCAN,WIFI_AUDIT,WIFI_AP_START,WIFI_AP_STOP,WIFI_AP_STATUS,BADUSB_INJECT,SHELL
- docs/DIYGUPPY_QUICKSTART.md
- docs/AI_ARCADE_PLATFORM_ARCHITECTURE.md
- docs/ir-mini-database.json
- arcade-guppy/wifijammer-2.0/README.md
| Component | Note |
|---|---|
| Electron app shell | basically works cross-platform |
| Python games | work wherever Python + pygame are available |
| Java games | require a Java runtime |
mame.exe |
is a Windows-native executable |
| host Wi-Fi fallback | Linux only |
| macOS window placement | uses osascript / Accessibility |
- On Windows, the renderer
webContentsautomatically sets a zoom factor of0.85. - On macOS, the app tries to position/fullscreen child windows through
osascript. - When a game crashes or exits, the arcade window is restored and
game-exitedis sent to the renderer. npm run buildproduces build output, but does not create an installer or distribution package.
| Problem | Likely cause |
|---|---|
| Python game does not start | missing pygame or wrong interpreter |
| Java game does not start | missing Java runtime or incorrect ARCADE_JAVA/JAVA_HOME |
| Guppy stays offline | no serial device, no handshake, missing firmware, or insufficient port permissions |
| Wi-Fi host fallback does not start | no Linux monitor interface or missing packetsender.py dependencies |
| macOS embedded windowing does not work | missing Accessibility permissions for Terminal/Electron |
This project contains tooling for:
- hardware prototyping,
- NFC/IR experiments,
- Wi-Fi scanning,
- and lab-oriented security features.
Use these parts only in a controlled environment and with explicit permission. The Wi-Fi deauth/jammer functionality belongs in a test lab, classroom environment, or authorized demo setup, not on networks or devices for which you do not have permission.
The current repo is already a working combination of:
- retro arcade launcher;
- local game library;
- hardware bridge;
- terminal-style tooling;
- AI assistance through Ollama.
The architecture roadmap targets:
- multiplayer sessions;
- realtime score sync;
- AI orchestration via local + GCP;
- sandboxed cyber challenges;
- observability and backend services.
See:
The Lab Graduation Project:
- Younes: arcade platform, launcher, and interface
- Rayan: hardware, arcade cabinet, buttons, and computer setup
- Matthias: Raspberry Pi Pico hacking tool
This project is a local arcade and hardware-hacking desktop environment where Electron handles the UI and orchestration, launches local games, controls ESP32 hardware over serial, exposes Wi-Fi/NFC/IR workflows, and optionally uses Ollama for AI gameplay hints.