Skip to content

About

Zero-dependency Node.js client, local LAN bridge, CLI, and web UI for HeadRush Flex Prime, Core, and Prime processors

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

HeadRush Control

Tests Latest Release Node.js 22+ License: MIT

Standalone desktop app (macOS, Windows, Linux) and zero-dependency Node.js (22+) local LAN bridge, CLI, and custom web UI for HeadRush Flex Prime, HeadRush Core, and HeadRush Prime guitar processors over Wi-Fi/LAN.

Download Standalone App: Grab prebuilt macOS (Apple Silicon & Intel .dmg), Windows (.exe installer & portable), and Linux (.AppImage) binaries from GitHub Releases — no Node.js installation required.

Screenshots

Desktop Editor Performance Mode
HeadRush Control Desktop Editor HeadRush Control Performance Mode
Mobile Editor (Scrollable Signal Chain & Touch Sliders)

HeadRush Control Mobile Editor

Sunlight Stage Theme (Outdoor Daylight Mode)
Editor (Sunlight) Performance Mode (Sunlight)
HeadRush Control Editor in Sunlight Theme HeadRush Control Performance Mode in Sunlight Theme

Requirements

  • HeadRush unit connected to the same Wi-Fi/LAN with Remote Web Control enabled on the unit
  • Standalone Desktop App: macOS, Windows, or Linux (no Node.js required — download from GitHub Releases)
  • Headless Bridge / CLI / Raspberry Pi: Node.js 22+ (uses built-in fetch and WebSocket, no npm install needed)

Quick Start

Option A: Standalone Desktop App (macOS / Windows / Linux)

For a double-click native window with built-in Web MIDI support, menu bar / system tray controls, and no Node.js installation required:

  1. Download the latest installer for your OS from GitHub Releases:
    • macOS (Apple Silicon): HeadRush.Control-*-arm64.dmg
    • macOS (Intel): HeadRush.Control-*.dmg
    • Windows: HeadRush.Control.Setup.*.exe (installer) or HeadRush.Control.*.exe (portable)
    • Linux: HeadRush.Control-*.AppImage
  2. First-launch note (unsigned community builds): On macOS, if Gatekeeper warns that the app is from an unidentified developer, open System Settings → Privacy & Security → Open Anyway (or run xattr -dr com.apple.quarantine "/Applications/HeadRush Control.app"). On Windows SmartScreen, click More info → Run anyway.

Or build the desktop app locally from the isolated desktop/ wrapper (the core repo stays zero-dependency):

cd desktop
npm install
npm start          # run the desktop app in dev mode
npm run dist:mac   # build macOS .dmg & .zip (or dist:win / dist:linux)

Note: While the desktop app is open, it still exposes the local bridge on 0.0.0.0:8787, so your iPad, iPhone, or Android tablet on the same Wi-Fi can connect directly to /perform (use File → Copy LAN Perform URL or scan the QR code in the Live popover). If a background bridge is already running on port 8787, the desktop app automatically shares it.

Option B: Zero-Dependency Headless Bridge (Mac, Windows, Linux, Raspberry Pi, Mini PC)

Requires Node.js 22+ with no npm install needed — ideal for running on a Raspberry Pi, mini PC, or background server and accessing from an iPad, Android tablet, or any browser on the same Wi-Fi:

npm start
# or directly: node client/server.mjs

On startup, the bridge:

  1. Auto-discovers your HeadRush unit over mDNS (headrushflexprime.local, headrushcore.local, headrushprime.local).
  2. Listens on 0.0.0.0:8787 so both your computer and any phone/iPad/Android tablet on the same Wi-Fi can connect.
  3. Prints the local URL (http://localhost:8787), LAN URLs, and a scannable terminal QR code for Performance Mode (/perform).

Install as a Tablet / Dock PWA: Once the bridge is running, open it in Safari on iPad/iPhone (Share → Add to Home Screen), Chrome on Android (Add to Home screen), or Safari on macOS (File → Add to Dock…) to run it full-screen like a native app.

Environment Variables

Variable Default Description
HR_HOST (auto-discover) Pin a specific unit hostname or IP (e.g. 192.168.4.74 or headrushcore.local). When unset, probes mDNS candidates and automatically re-discovers after DHCP changes.
PORT 8787 Local HTTP port for the bridge server and web UI.
BIND 0.0.0.0 Network interface to bind. Set BIND=127.0.0.1 to restrict access to localhost only.

Example:

HR_HOST=headrushflexprime.local PORT=8787 node client/server.mjs

Web UI Features

Editor (/)

  • Responsive PC / Tablet / Mobile Layout, Stage Themes & PWA: Adapts smoothly from desktop monitors to iPads and phones with a horizontally scrollable signal chain (with touch-safe press-and-hold drag reordering), an Auto | Knobs | Sliders control toggle (automatically switching to full-width touch sliders on narrow screens), Dark / High Contrast / Sunlight display themes synced across Editor and Performance Mode, bottom-sheet popovers on mobile, and a PWA manifest & home-screen icon so you can install HeadRush Control to your iPad/iPhone/Android home screen as a full-screen standalone app.
  • Signal Chain Diagram: All 14 slots and dynamic signal routings — 5 guitar routings (Straight Path, Middle Split 3-4-3 / 5-3-3 / 7-2-3, Immediate Split) plus 5 Vocal & Dual-Instrument routings (Vocal Straight, Dual Path 7-7 / 4-10 / 2-12, Dual Guitar) automatically unlocked on vocal-capable units (Core / Prime) — with custom SVG category icons (including Vocal), optional unit artwork, click/double-click bypass, and drag-and-drop block reordering.
  • Block Parameter Editor: Rotary SVG knobs (drag, Shift-drag for fine control, scroll wheel, double-click to reset), toggles, dropdowns, dual A/B parameter groups, Slot EQ & mix, plus live Unit File Browser (Browse) for NAM models, Amp Clones, SuperClones, IRs, and Reverbs.
  • Model & Preset Management: 3-column model/preset browser (respecting the unit's DSP & 2-instance availability flags), plus inline Preset switcher and ⋯ menu to Save, Rename, and Delete custom user presets (factory + presets are protected).
  • Undo / Redo, A/B Compare & Edit History: Server-backed 50-step Undo/Redo stack (↶ / ↷, ⌘Z / ⇧⌘Z / Ctrl+Y) with automatic knob/slider drag coalescing, a 1-click A/B Compare toggle (A/B ↔ Orig) to audition your edited tone instantaneously against the original saved rig, a clickable Edit History popover (▾) to jump straight to any earlier state, and full coverage across block parameters, bypass, presets, files, signal chain moves/routings, rig colors/imports, and Hardware Assignments (footswitches, scenes, pedals, Ext Amp, MIDI Out).
  • Rig Management, Snapshots, Cross-Unit Copy & Batch Unit Sync: Rig drawer with search, color tags, + New rig, inline Rename / Delete, header color-tag picker, Save / Save as… with unsaved-edit protection, Export rig (.hr-rig.json), Import rig snapshot, Send rig to other unit…, Compare & sync rigs between units… (side-by-side Rigs, Setlists, and Files (NAM / IR / Clones) tabs across Core & Flex Prime with single/batch rig copy, whole-setlist sync with automatic reuse/copy of missing rigs, automatic missing .nam / .wav / .sc / clone detection, and macOS USB Transfer copy scripts), and Full Unit Backup (.json).
  • Setlist Manager (Rig Drawer → Manage): Create, rename, delete, add/remove rigs, and reorder rigs in setlists (with read-only protection for HeadRush Cloud).
  • Hardware Assignments (Assign): Automatically detects unit switch count — 6 on Flex Prime, 8 on Prime, 10 on Core (grouped into Bank A 1–5 and Bank B 6–10 with an All/Bank A/Bank B filter) — with drag-and-drop footswitch swapping (within or across banks), Toggle / Hold / Scene modes, custom labels, target blocks & operations, State 1 / State 2 scene editing, LED colors, per-slot On/Off/No change & presets, Expression Pedals (Pedal 1 A/B & Pedal 2 external), External Amp Switching (live TRS Tip/Ring/Both relays + rig-load state on Core/Prime), and MIDI Out (5-message editor, presets, Test Send, rig-load MIDI preset, and global MIDI settings).
  • Mic / Vocal Dry Out (Mic, shown automatically on units with hasVocals): Controls /Evil/Engine/Mic and /Evil/Engine/MicDryOut (Active toggle, Dry Out presets, Volume, Gate Thresh, High Pass, Comp Thresh, Comp Make-Up, and 4-band Channel EQ).
  • Global Settings (Settings): Hardware-wide Audio I/O (including the Core's Output Routing Matrix for XLR / 1/4" / Phones, Mic +48V, FX-Loop, and Ground Lift), General, Expression Pedal, and MIDI settings, plus an onboard storage usage bar.
  • Global EQ (EQ): Main Out and Amp Out 4-band parametric EQ with live 400-point DSP frequency response curve, Master Gain, Shelf/Cut toggles, and Reset.
  • Drum Machine (Drums): Play/Stop, Mute, Fill, Bridge, Outro, Accent, Style/Pattern/Kit selectors, Volume & Intensity sliders, Auto tempo / Count-in / Auto fill, and live bar/beat readout.
  • Tempo & Tap Tempo (Tempo): Rolling-average Tap Tempo pad, −1/+1 nudges, and direct BPM entry (30–240 BPM).
  • Connection, 1-Click Unit Switcher, LAN QR & API Check (Live indicator): Displays resolved unit hostname/IP, device model, live DSP CPU %, a 1-click header Unit Switcher (Core | Flex Prime) shown automatically whenever 2+ units are online on Wi-Fi, manual host switcher, Auto-discover, Scan LAN, an in-browser API Check modal that diffs your live unit against the saved baseline after firmware updates, and a scannable SVG QR code for opening /perform or / on an iPad or phone.

Performance Mode (/perform)

  • Stage-ready layout with large rig title, next-rig preview, prev/next stepping (←/→), adaptive 6 / 8 / 10 footswitch/scene pads (with a Bank A / Bank B / All switcher on 10-switch Core units; keyboard shortcuts 1–9, 0 for FS 10, b to cycle banks), customizable Keys / Bluetooth Pedal & Web MIDI foot-controller bindings (Keys, including an AirTurn PageUp/PageDown preset and MIDI Learn for CC/Note/PC controllers), full-screen chromatic Tuner (t), Mic (on Core/Prime), Global EQ, Drums, Tap Tempo, Connection/QR/API Check popover, and Screen Wake Lock.

Read-Only CLI (client/hr.mjs)

node client/hr.mjs discover                  # Discover HeadRush unit via mDNS
node client/hr.mjs rigs                      # List loaded rig and all rigs
node client/hr.mjs ls [dir] [--files]        # List folders or files on the unit
node client/hr.mjs get /Evil/Engine/Tempo    # Read object properties
node client/hr.mjs meta /Evil/Engine/Tempo   # Read object schema & methods
node client/hr.mjs paths [prefix]            # List all API object paths
node client/hr.mjs watch [seconds]           # Stream live WebSocket notifications

Project Layout

client/
  hrclient.mjs     # HeadRush REST + WebSocket client with mDNS discovery & typed validation
  server.mjs       # Local HTTP/SSE bridge server (all browser traffic goes through here)
  history.mjs      # Bounded 50-step coalescing Undo/Redo & A/B Compare engine
  hr.mjs           # Read-only CLI explorer
  test/            # Zero-dependency Node.js offline unit & integration test suite
  ui/
    index.html     # Editor view
    perform.html   # Stage / tablet Performance view
    app.js         # Editor logic, block controls, file browser, undo/redo, rig actions
    chain.js       # 14-slot SVG signal chain & touch-safe drag-and-drop
    assign.js      # Footswitches, Scenes, Expression Pedals, Ext Amp & MIDI Out editor
    setlists.js    # 3-column Setlist Manager
    settings.js    # Global Settings (Audio I/O matrix, General, Pedal, MIDI, Storage)
    sync.js        # Multi-unit Rig, Setlist & Resource (NAM/IR/Clones) Compare & Sync
    tools.js       # Themes, Unit Switcher, LAN QR, API Check, Tempo, Drums, EQ & Mic
    perform.js     # Performance view logic
    controls-modal.js # Keyboard, Bluetooth pedal & Web MIDI foot-controller bindings
    qr.js          # Zero-dependency ISO/IEC 18004 QR generator (SVG + terminal)
    style.css      # Responsive Dark / High-Contrast / Sunlight theme styles
    perform.css    # Stage layout styles
scripts/
  api-snapshot.mjs       # Privacy-safe JSON API schema snapshot, firmware diff & doc generator
  headrush-bridge.sh     # macOS LaunchAgent wrapper
  install-launchagent.sh # macOS LaunchAgent installer/manager
  install-systemd.sh     # Raspberry Pi / Linux systemd service installer/manager
docs/
  HEADRUSH_API.md        # Complete Flex Prime & Core HTTP/WebSocket API reference
  api-core.json          # HeadRush Core (HV01) JSON API schema baseline
  api-flexprime.json     # HeadRush Flex Prime (HG12) JSON API schema baseline
desktop/
  main.mjs               # Standalone Electron desktop wrapper (window, tray, Web MIDI, LAN bridge)
  package.json           # Isolated Electron & electron-builder config (core repo stays 0-dep)
  scripts/stage.mjs      # Stages client/, api-snapshot.mjs & docs/api-*.json before packaging

Background Service (macOS LaunchAgent & Raspberry Pi / Linux systemd)

macOS (launchd)

To run the bridge automatically at login and keep it alive in the background:

./scripts/install-launchagent.sh install    # install & start (defaults: PORT=8787 BIND=0.0.0.0)
./scripts/install-launchagent.sh status     # check running state
./scripts/install-launchagent.sh logs       # tail ~/Library/Logs/headrush-bridge.log
./scripts/install-launchagent.sh restart    # restart after updates
./scripts/install-launchagent.sh uninstall  # stop & remove LaunchAgent

Raspberry Pi / Linux Mini PC (systemd)

Run with sudo for a headless boot-time system service (ideal for a Raspberry Pi connected to your studio/stage Wi-Fi so any iPad, Android tablet, or laptop can open http://<pi-ip>:8787/perform):

sudo ./scripts/install-systemd.sh install   # install & start on boot (defaults: PORT=8787 BIND=0.0.0.0)
sudo ./scripts/install-systemd.sh status    # check running state
sudo ./scripts/install-systemd.sh logs      # tail journalctl logs
sudo ./scripts/install-systemd.sh restart   # restart after updates
sudo ./scripts/install-systemd.sh uninstall # stop & remove service

(Omit sudo to install as a per-user systemd --user service. Supports optional PORT, BIND, HR_HOST, and NODE_BIN environment variables at install time.)

API Documentation & Firmware Update Checks

The full HeadRush HTTP/WebSocket API reference — comparing Flex Prime (HG12) and Core (HV01) — is saved in docs/HEADRUSH_API.md alongside machine-readable JSON schemas (docs/api-flexprime.json, docs/api-core.json).

After a HeadRush firmware update, check for API changes against the matching saved baseline (auto-selected from the live unit's model):

npm run api:diff          # compare live unit vs its saved baseline (add :strict for non-zero exit on drift)
npm run api:capture       # refresh docs/api-<model>.json from the live unit
npm run api:docs          # regenerate docs/HEADRUSH_API.md from docs/api-*.json
npm run api:update        # capture live unit + regenerate docs/HEADRUSH_API.md

Automated Tests

Runs offline with zero external dependencies using Node's built-in test runner:

npm test

Architecture & Safety Notes

  • Validated Writes: The unit's raw HTTP API accepts arbitrary types without rejecting invalid payloads. The bridge validates every write against the unit's /api/v1/object-meta schema and restricts browser writes to explicit allowlisted endpoints.
  • Unsaved Edit Protection: API parameter edits do not always flip the unit's internal dirty flag, so the bridge tracks its own edited state and prompts to Save or Discard before switching rigs.
  • macOS Local Network Note: On macOS Sequoia/Tahoe, ensure your terminal or app has System Settings → Privacy & Security → Local Network permission (and disable VPN LAN isolation if active) so Node can reach 192.168.x.x / .local addresses.

Contributors

  • James Cornett (@supplanter64) — Hardware testing, architecture direction, and project owner
  • Google Gemini (@gemini-code-assist) — API reverse-engineering, bridge server, web UI, documentation, and test suite (built with Antigravity)

Disclaimer & Trademarks

HeadRush® is a registered trademark of inMusic Brands, Inc.

This is an independent, unofficial open-source project and is not affiliated with, endorsed by, or sponsored by inMusic Brands, Inc. or HeadRush. No inMusic or HeadRush source code, firmware, presets, audio/IR/clone files, or artwork are included in this repository. All code, icons, and documentation in this repository are original; the optional Unit artwork toggle (off by default) fetches block images live from your own HeadRush hardware over your local network.

About

Zero-dependency Node.js client, local LAN bridge, CLI, and web UI for HeadRush Flex Prime, Core, and Prime processors

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages