running pd (Pure Data) in the browser

Jonas Holmer's icon

Hi!

Long time max-user, first time poster. For anyone also using Pure Data there's now project that runs pd in the browser (including support for cyclone & ELSE, with the exclusion of a few objects).
The repo (including install-instructions) is here:
https://github.com/hyrfilm/libpd-wasm

And you try it out in the browser here:
https://github.com/hyrfilm/libpd-wasm

On that page it's also possible to drag-and-drop your own patches, or edit them in runtime. Compared to other similar projects this one does not build your patch into something that can be run in the browser, but compiles the actual pd C-sources into WASM and then wraps it in a WebAudio worklet. This allows you to load and run patches in "real-time" but also opens up for generating patches in runtime.
I've sued this in conjunction with stuff I develop for the web with RNBO & Faust and they play nice together, so it's possible to mix'n'match.

Anyway, if you have any questions or encounter issues, ping me :)
Take care <3

Jonas