Grbl.js

使えそうなライブラリ
https://www.npmjs.com/package/grbl-interpreter

CNC.js の送受信部分をみる
https://github.com/cncjs/cncjs