see "waveform" repo for JS prototype, this is in development