npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@m4l-jweb/bridge

v1.6.1

Published

m4l-jweb: the browser-side bridge connecting a device's web UI to Max for Live.

Readme

@m4l-jweb/bridge

The browser half of a device. Your React UI runs inside [jweb~], Max's embedded Chromium; this is how it talks to the Max patcher around it - messages out, messages in, MIDI, clip I/O, and files.

Part of m4l-jweb - build Ableton Live devices (.amxd) from a TypeScript repo: React UI, LiveAPI glue, CI builds, no Max editor.

Install

pnpm add @m4l-jweb/bridge

Usage

import { bindInlet, outlet, onNote, onNoteOff, sendNote, uiReady } from "@m4l-jweb/bridge";

// Tell the wrapper the page is up, and ask for current state.
uiReady();

// Incoming MIDI (needs the `midiin` chain). Both binders share one subscription.
onNote((pitch, velocity) => voiceOn(pitch, velocity));
onNoteOff((pitch) => voiceOff(pitch));

// Outgoing MIDI (needs the `midiout` chain). Max applies the delay, not the browser,
// so note timing does not depend on a Chromium timer.
sendNote({ pitch: 60, velocity: 100, durationMs: 250, delayMs: 80 });

// Anything else you route yourself.
bindInlet("tick", (playing, beats) => setTransport(Boolean(playing), Number(beats)));
outlet("my_selector", 1, "two");

Notes

  • Audio does not go through here. Under [jweb~] the page's Web Audio output is carried on the object's signal outlets, straight into the track. The bridge is a control plane; sound never crosses it as messages.
  • fetchToFile() and saveToFile() move bytes between the page and disk via Max's [maxurl], so large files never travel through the message bridge either.
  • tapMessages() observes every message in both directions - the whole contract of a device, live.
  • copyPath() answers "where did my file go". Nothing in Max can open a file manager, and inside [jweb~] a clipboard write can be claimed but never confirmed - so the result is copied / manual / cancelled, never a boolean that might be lying.

Requirements

Ableton Live 12 with Max 9. Devices are built on [jweb~], the browser view with signal outlets; older hosts are unverified.

Links

License

MIT