server

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL