Development Setup
Tech Stack
- CLI (
cli/) — C tool handling all USB communication with the G2 hardware. Outputs JSON to stdout; accepts JSON commands on stdin. - Electron app (
g2-editor/) — Vue 3 + TypeScript desktop app. Communicates with the G2 through the CLI daemon.
Prerequisites
- macOS:
brew install libusb - Windows: handled via the release build script (MinGW cross-compile)
Building the CLI
cd cli
make # build
make test # unit + cli + e2e (hardware suites are skipped without a G2)
make test-unit # unit tests (no G2 needed)
make test-cli # one-shot CLI tests (needs connected G2)
make test-e2e # daemon tests (needs connected G2)
make test-e2e-slow # bank-transfer daemon tests, takes minutes (needs connected G2)
Building the Electron App
cd g2-editor
npm install
cd ../cli && make && cd ../g2-editor # rebuild CLI first
npm run postinstall # copies CLI binary into app resources
npm run dev # development server
npm run build # production build + package
npm test # unit + e2e + g2 (g2 is skipped without a G2)
npm run test:unit # Vitest unit tests
npm run typecheck # vue-tsc type check
npm run lint # ESLint
npm run test:e2e # Playwright E2E tests, headless (builds first)
npm run test:g2 # hardware suite (test-g2/): needs a connected G2, drives the CLI and the real editor
npm run test:duration -- --hours 1 # hours-long hardware duration test; --help lists all options
Development Environment
My Setup

Developed on M1 Apple Silicon, macOS 15.7.3, with an expanded Nord Modular G2.
Daemon Development (tmux)
For interactive daemon testing, use the tmux launcher (requires tmux):
cd cli
./g2tmux.sh
This opens a split-pane tmux session:
- Left pane: daemon output (watch events, responses)
- Right pane: command shell with autocomplete
See CLI Commands for available commands.