nodrix agent #
Compiles nodrix sketches on your machine, using your own Arduino toolchain, and uploads the binary to your instance for the browser to flash.
A browser can do almost everything else: pick a serial port, flash a board, read its console. It cannot run a C++ toolchain — the ESP32 sysroot alone is over 150 MB. That is the only job this has.
Why it dials out #
The agent opens a WebSocket to your instance rather than listening on localhost.
No port to open, no certificate to install, no permission prompt when a page
reaches 127.0.0.1, and it keeps working when you open your dashboard from a
phone on another network.
Install #
Needs arduino-cli on your PATH,
with the cores and libraries you build against already installed.
NODRIX_INSTANCE=https://your-instance.workers.dev \
NODRIX_TOKEN=your-api-token \
bun run src/index.ts
Or write ~/.nodrix/agent.json:
{
"instance": "https://your-instance.workers.dev",
"token": "your-api-token"
}
Environment variables win over the file.
Building standalone binaries #
bun run build:macos-arm64
bun run build:linux-x64
bun run build:windows-x64
Status #
Early. The compile path works; packaging and installers are not done.