How jerwingubat/wand-enhancer works
WandEnhancer is a local Wand client patcher with an optional LAN remote-control panel. The main workflow is selecting and patching a local installation: the WPF interface delegates to the enhancer, which modifies the ASAR and can install the panel bridge and renderer scripts. Separately, a phone browser connects to the bridge over HTTP/WebSocket to view app and trainer state and issue commands or cheat-value changes. The README also documents client-side configuration, compatibility adjustments, layout/theme customization, and AI features; their internal implementation is not established by the sampled excerpts. Edges are limited to relationships shown by excerpts, SOURCE INDEX references, or README statements.
Main entry points: Enhancer.cs Enhancer · server.ts Bridge server · Disk.cs Archive access · app.tsx Remote panel app
Components 26
Local patching
- Enhancer
WandEnhancer/Core/Enhancer.cs - Patch configuration
WandEnhancer/Core/EnhancerConfig.cs - Client configuration
WandEnhancer/Models/WeModConfig.cs - ASAR fuse proxy
tools/asar-fuses-bypass/library.c
ASAR archive
- ASAR extraction
AsarSharp/AsarExtractor.cs - ASAR creation
AsarSharp/AsarCreator.cs - Archive access
AsarSharp/AsarFileSystem/Disk.cs - Archive entries
AsarSharp/AsarFileSystem/FilesystemEntry.cs - Integrity hashing
AsarSharp/Integrity/IntegrityHelper.cs - Pickle encoding
AsarSharp/PickleTools/Pickle.cs
Remote bridge
- Bridge server
web-panel/bridge/src/server.ts - Bridge state
web-panel/bridge/src/bridge-state.ts - Protocol validation
web-panel/bridge/src/protocol-router.ts - Wire messages
web-panel/protocol/messages.ts - State normalizers
web-panel/bridge/src/normalizers/index.ts - Wand integration
web-panel/bridge/src/wand/runtime.ts
Remote web panel
- Remote panel app
web-panel/src/app/app.tsx - Remote session client
web-panel/src/app/use-remote-panel.ts - WebSocket client
web-panel/src/remote-session/remote-session.client.ts - Trainer controls
web-panel/src/trainer/controls/CheatControl.tsx - Panel preferences
web-panel/src/shared/storage.ts
Desktop experience
- Patcher UI
WandEnhancer/View/MainWindow/MainWindowVm.cs - Localization
WandEnhancer/Core/Services/LocalizationManager.cs - Desktop settings
WandEnhancer/Core/Services/SettingsManager.cs
Other components
- Wand user
- Phone user
Connections 26
- Wand user → Patcher UI: uses
README.md - Patcher UI → Enhancer: invokes patching
WandEnhancer/View/MainWindow/MainWindowVm.cs - Enhancer → Patch configuration: uses configuration
WandEnhancer/Core/Enhancer.cs - Enhancer → Client configuration: reads configuration
WandEnhancer/Core/Enhancer.cs - Enhancer → ASAR extraction: extracts archive
WandEnhancer/Core/Enhancer.cs - Enhancer → ASAR creation: creates archive
WandEnhancer/Core/Enhancer.cs - ASAR extraction → Archive access: reads archive
AsarSharp/AsarExtractor.cs - Archive access → Archive entries: uses entries
AsarSharp/AsarFileSystem/Disk.cs - Archive access → Pickle encoding: encodes headers
AsarSharp/AsarFileSystem/Disk.cs - Archive access → Integrity hashing: hashes files
AsarSharp/AsarFileSystem/Disk.cs - Enhancer → ASAR fuse proxy: installs fuse proxy
README.md - Enhancer → Bridge server: bundles bridge
WandEnhancer/Core/Enhancer.cs - Phone user → Remote panel app: opens panel
README.md - Remote panel app → Remote session client: uses remote hook
web-panel/src/app/app.tsx - Remote session client → WebSocket client: connects session
- WebSocket client → Bridge server: WebSocket messages
web-panel/src/remote-session/remote-session.client.ts - Bridge server → Protocol validation: validates messages
web-panel/bridge/src/server.ts - Protocol validation → Wire messages: checks contract
web-panel/bridge/src/protocol-router.ts - Bridge server → Bridge state: routes state
web-panel/bridge/src/server.ts - Bridge state → State normalizers: normalizes data
web-panel/bridge/src/bridge-state.ts - Bridge server → Wand integration: dispatches commands
- Remote panel app → Trainer controls: renders controls
- Trainer controls → WebSocket client: sends value changes
- Remote panel app → Panel preferences: stores preferences
- Localization → Desktop settings: loads and saves language
WandEnhancer/Core/Services/LocalizationManager.cs - Wand user → Localization: selects language