Makerloom Studios · Makerhub Link

ONE-TIME SETUP PER COMPUTER
Every Makerloom member can use this free helper. Browsers cannot install
local programs automatically. Each computer/OS user must approve initial setup.
The helper loads a reviewed NC file only; it never starts a cut, connects
serial, resets the controller, or changes work zero. A ready, idle controller
is required for this API handoff. Normal NC download and manual opening remain.

1. Install Node.js 22 or newer from nodejs.org if needed.
2. Extract this ZIP. Run your one-time installer:
   Mac: double-click Install-Mac.command (or bash Install-Mac.command).
   Windows: double-click Install-Windows.cmd.
   Linux desktop: sh Install-Linux.sh.
   These install into your user profile and add automatic startup at login.
   Mac starts immediately. Windows/Linux start at your next desktop login;
   run node makerloom-makerhub-link.mjs for an immediate manual session.
   No admin rights are requested. If OS policy blocks installation, ask your
   administrator or use the manual helper; do not bypass security warnings.
3. The installer displays your private pairing code. Paste it only into
   Makerloom > 2D Design > Open in Makerhub > connection setup.
   Keep Remember this computer checked. Allow browser local access if asked.
   The code stays in account-scoped local browser storage, not Makerloom's
   servers. Use this only on a computer/browser you trust.
4. Later: open Makerhub, connect your M2 and leave its workflow idle.
   In Makerloom, choose Open in Makerhub and review your cutting settings.
   The panel reconnects automatically when a remembered helper is running.
   Choose the NC program and load it. Review the result in Makerhub yourself.
   Files are never started automatically. Loading replaces the loaded program.

CONFIGURATION
Mac discovers the running MakerHub local server each time it makes requests,
including after Makerhub restarts. Other platforms default to 127.0.0.1:8000.
For another local address or API authentication, set MAKERHUB_URL and/or
MAKERHUB_API_TOKEN in the helper's process environment (your startup service
must receive these as well). Only HTTP loopback addresses are supported.
Never paste Makerhub's API token into the website or disable authentication.
The helper uses the API structure observed in Makerhub 1.3.1. Test on your
connected M2 before relying on direct loading. Review custom load-event hooks.

REMEMBERING, RESETTING AND REMOVING
Pairing survives helper restarts. Use --show-code to display the existing code.
Use --reset-pairing to generate a new code, then restart the helper/service;
old browser pairings stop working after restart. Keep codes out of messages.
Browser storage clearing, another browser, a different account or changing
between makerloomstudio.com and another hostname requires its own pairing.
Forget this computer removes this account/browser's saved connection.

Installed helper location:
 Mac: ~/Library/Application Support/Makerloom/MakerhubLink
 Windows: %LOCALAPPDATA%\Makerloom\MakerhubLink
 Linux: ~/.local/share/makerloom-makerhub-link
Pairing is in pairing.json in that directory. Treat it as a private credential.
Mac/Linux permissions are restricted; Windows inherits your user-profile ACL.
Service logs omit the pairing code. Manual --show-code intentionally displays it.

Remove automatic startup:
 node "PATH_TO_INSTALLED_FOLDER/setup-makerhub-link.mjs" --uninstall
Mac stops the service immediately. Windows/Linux: sign out after uninstall to
stop the running helper. Manual processes stop with Ctrl+C. Private pairing is
kept for reinstall; reset it if revoking other browsers. Removing automatic
startup never removes Makerloom designs or touches Makerhub configuration.

Mac startup: ~/Library/LaunchAgents/com.makerloom.makerhub-link.plist
Windows startup: shell:startup > Makerloom Makerhub Link.vbs
Linux startup: ~/.config/autostart/makerloom-makerhub-link.desktop
If your organization blocks Windows Script Host or desktop autostart, use the
manual helper instead. Upgrading/moving Node.js may require rerunning installer.

SECURITY AND LIMITS
Only paired, allowed Makerloom origins can use /status and /load. The helper
binds 127.0.0.1 only. Host/origin guards, authentication, size/rate limits and
idle checks remain enabled. No start, jog, reset or command endpoint exists.
The service does not upload your pairing code or your local API token anywhere.

OPEN AND IMPORT
On macOS, the reviewed Open Makerhub & import program action launches or focuses the installed MakerHub app, waits for its API, then imports into a ready, idle controller. This never presses Run. Opening works without an M2; the Makerhub 1.3.1 API still requires a connected controller for importing. A message that the app opened is not confirmation of an import.
On Windows/Linux, set MAKERHUB_APP to the installed Makerhub executable's absolute path to enable automatic opening; otherwise open it yourself. MAKERHUB_URL and API token settings remain local.
Existing installations: rerun the one-time installer from the latest ZIP to update the helper. The saved pairing is retained.
