Health check
curl http://localhost:3000/api/healthNerviq ships with a zero-dependency local HTTP server so dashboards, internal portals, scripts, and editor tooling can query the same audit engine without shelling out to the CLI.
The local API mirrors the main Nerviq engine. Start it once, then call the endpoints from any process that can reach localhost.
nerviq serve --port 3000The current local server is intentionally small. It focuses on the high-value read APIs that teams most often embed.
| Path | Method | Purpose |
|---|---|---|
/api/health | GET | Returns status, version, and the total number of checks exposed by the catalog. |
/api/audit?platform=claude&dir=. | GET | Runs a platform audit and returns the full structured result payload. |
/api/harmony?dir=. | GET | Returns cross-platform harmony data for the repository path. |
/api/catalog | GET | Returns the unified check catalog as JSON for UI or internal tooling use. |
Use plain fetch, curl, or your preferred HTTP client. The server is designed to be easy to integrate into internal tooling.
curl http://localhost:3000/api/healthcurl "http://localhost:3000/api/audit?platform=claude&dir=."The payloads are structured so they can drive both human-readable UI and machine policy checks.
{
"status": "ok",
"version": "1.0.0",
"checks": 2016
}{
"platform": "claude",
"score": 84,
"passed": 196,
"checkCount": 258,
"topNextActions": [ ... ],
"results": [ ... ]
}The REST API is best when Nerviq needs to become a service instead of just a command.
Show live repo scores, top actions, and platform drift directly inside your engineering enablement UI.
Call the local server from companion extensions without teaching every extension how to parse CLI output.
Let local wrappers or internal automation call health, catalog, and audit endpoints through one stable JSON contract.