Initialize the server.
Server options.
Optionalhost?: stringInterface to bind. Defaults to loopback.
Optionalport?: numberPort to bind, or 0 to pick a free ephemeral port.
Optionalruntime?: ServerRuntimeAn existing runtime to serve. When omitted, a new ParserRuntime is created and owned (closed on stop).
OptionalwritePortFile?: booleanWhether to write the bound port to the
standard helper port file so other apps can discover this server.
Defaults to true.
Start serving in the background.
Idempotent: calling it again while running resolves to the existing URL.
The base URL the server is bound to.
Stop the server and release its resources.
Closes the listening socket and closes an owned runtime. Safe to call when not running.
Serve the camelCase helper REST contract over an embedded runtime.
Exposes the Nyora helper REST API backed by a ParserRuntime, so any Nyora client can talk to the JS SDK as if it were the JVM helper.
Example