Documentation
¶
Overview ¶
Command server is the backend example for the Gad CodeMirror integration. It exposes /api/fmt, /api/run and /api/diagnose, which the React app calls to format, execute and lint Gad source — mirroring `gad` reading from stdin and writing to stdout, but returning structured per-line/column diagnostics.
It also serves the built React app (and the WebAssembly assets) when a static directory is provided, so a single binary can host the whole demo.
Click to show internal directories.
Click to hide internal directories.