{"version":"1.0","type":"rich","title":"node server for talking to XY Plotter","description":"A Node.js server translates incoming JSON coordinates from a web client into GCODE commands for a serial-connected XY plotter. It listens on port 8999, parses POST requests with `x` and `y` floats, flips the coordinate system, and writes movement commands like `G1 X... Y...` via the `serialport` library. The server also issues pen-up/down commands (`M2 U/D`) and homes the plotter after each point, with optional CORS headers enabled. The code uses `body-parser` for JSON handling and logs serial port data.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-bafd2a76b4705395068c4f9b01e3ab91?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}