
n4m-jitter-bridge is a Node.js-based bridge for real-time communication between Max/MSP/Jitter and web clients. It enables low-latency streaming of Jitter matrix data (video frames) to browsers, supporting both object detection and custom data handling.
A key component is Transformers.js, which leverages WebGPU for inference in the browser. You can also dedicate the inference task to a second computer—simply run the web client on another machine and connect it to the bridge, offloading heavy ML inference from your main Max/Jitter workstation.
[jit.net.send] in Max.max-api for real-time data exchange and feedback.Clone the repository:
cd ~/Documents/Max\ 9/Library
git clone https://github.com/jentzheng/n4m-jitter-bridge.git
Install dependencies:
pnpm install && pnpm run build
# or
npm install && npm run build
npm run dev --jit-net-send-port=7474 --remote-server=ws://localhost:5173/ws --username Jitter
objectdetection.maxpat.script start --jit-net-send-port=7474 --remote-server=ws://localhost:5173/ws --username Jitter[jit.net.send @port 7474] to send matrix data to the bridge's TCP port.cd socket-server-with-web
npm install
npm run dev
Note:
The development server uses a self-signed SSL certificate (SELF_SIGN_SSL=true) so you can access the app over HTTPS.
This is required because browsers only allow camera and microphone access on secure origins (HTTPS or localhost).
By enabling HTTPS with a self-signed certificate, you can test remote camera capture and WebRTC features locally or on your LAN.
19 commits
TypeScript
98.4%
JavaScript
1.0%

n4m-jitter-bridge is a Node.js-based bridge for real-time communication between Max/MSP/Jitter and web clients. It enables low-latency streaming of Jitter matrix data (video frames) to browsers, supporting both object detection and custom data handling.
A key component is Transformers.js, which leverages WebGPU for inference in the browser. You can also dedicate the inference task to a second computer—simply run the web client on another machine and connect it to the bridge, offloading heavy ML inference from your main Max/Jitter workstation.
[jit.net.send] in Max.max-api for real-time data exchange and feedback.Clone the repository:
cd ~/Documents/Max\ 9/Library
git clone https://github.com/jentzheng/n4m-jitter-bridge.git
Install dependencies:
pnpm install && pnpm run build
# or
npm install && npm run build
npm run dev --jit-net-send-port=7474 --remote-server=ws://localhost:5173/ws --username Jitter
objectdetection.maxpat.script start --jit-net-send-port=7474 --remote-server=ws://localhost:5173/ws --username Jitter[jit.net.send @port 7474] to send matrix data to the bridge's TCP port.cd socket-server-with-web
npm install
npm run dev
Note:
The development server uses a self-signed SSL certificate (SELF_SIGN_SSL=true) so you can access the app over HTTPS.
This is required because browsers only allow camera and microphone access on secure origins (HTTPS or localhost).
By enabling HTTPS with a self-signed certificate, you can test remote camera capture and WebRTC features locally or on your LAN.
19 commits
TypeScript
98.4%
JavaScript
1.0%