stud: use ringbuffer from node.js