How admiral-billy/pokerogue-app works
PokeRogue App is an Electron desktop wrapper for playing Pokerogue.net, with optional local offline game files. The main workflow launches a window into the online or downloaded game; users can change modes and presentation settings, download game releases for offline play, and open companion reference tools. The graph shows the main-process orchestration, menu-driven product features, and selected integrations. Some utility-window implementations and settings helpers were only partially sampled, so uncertain internal wiring is omitted.
Main entry points: utils.js Window and app services · main.js Window orchestration · file_tab.js File actions · settings_tab.js Settings
Components 17
App runtime
- Window orchestration
src/main.js - Shared state
src/globals.js - Renderer bridge
src/utils_preload.js - Window and app services
src/utils.js - Local shortcuts
src/local_shortcuts.js
Menu features
- File actions
src/file_tab.js - Settings
src/settings_tab.js - Reference utilities
src/utilities_tab.js - About and links
src/about_tab.js
Settings and files
- User settings
src/utils.js - Offline game files
src/file_tab.js
External integrations
- Rich presence
src/discord_rpc.js - Pokerogue game
- GitHub releases
- Discord RPC service
- Reference websites
Other components
- Player
Connections 24
- Player → Window orchestration: launches
- Window orchestration → Window and app services: loads settings and menu
- Window orchestration → Local shortcuts: registers shortcuts
- Window orchestration → Rich presence: starts presence
- Window orchestration → Shared state: sets runtime state
- Window orchestration → Pokerogue game: loads online or offline
- Window and app services → Renderer bridge: configures window bridge
- Window and app services → File actions: builds menu from
- Window and app services → Settings: builds menu from
- Window and app services → Reference utilities: builds menu from
- Window and app services → About and links: builds menu from
- Window and app services → User settings: reads and writes
- Settings → Window and app services: applies settings
- Settings → Shared state: changes mode and options
- File actions → Window and app services: resets and downloads
- File actions → GitHub releases: requests game release
- File actions → Offline game files: extracts downloaded files
- File actions → Shared state: updates offline state
- About and links → Window and app services: fetches version info
- Window and app services → GitHub releases: requests app and game versions
- Reference utilities → Window and app services: creates utility windows
- Reference utilities → Reference websites: opens reference pages
- Rich presence → Pokerogue game: reads game status
- Rich presence → Discord RPC service: updates activity