Skip to content

Configuration ​

Programmatic Options ​

Passed to nodeui(options) or NodeUIModule.register(options):

OptionTypeDefaultDescription
pathstring'/nodeui'Base route prefix where console UI and API are mounted.
hoststring'127.0.0.1'Allowed host interface for incoming requests.
enabledbooleanenv-basedExplicitly enable (true) or disable (false) console.
maskSecretsbooleantrueAutomatically redact sensitive environment and config values.
requestLogSizenumber500In-memory capacity for HTTP request logs.
captureRequestDetailboolean | { query, headers, bodies, maxBodyBytes }{ query: true, headers: true, bodies: false, maxBodyBytes: 4096 }What extra detail is recorded per request. false records none. Textual bodies only, masked and size-capped.
queryLogSizenumber200In-memory capacity for recorded database queries.
slowQueryMsnumber100Queries at or above this duration are flagged slow.
capture'always' | 'lazy''always'Run outgoing / query / log capture from startup, or only while a panel is open. See Capture.
persiststring | { file, maxBytes }offJournal recent activity to an NDJSON file and restore it on restart. See Persistence.
otlpstring | { endpoint, serviceName, headers, intervalMs }offExport spans to an OTLP/HTTP collector. See OpenTelemetry export.
logSizenumber500In-memory capacity for captured console messages.
pollIntervalMsnumber2000Sampler collection interval for CPU and event-loop lag.
inactivityTimeoutMsnumber60000Idling timeout before background samplers pause.
confirmTtlMsnumber60000Expiration window for mutation confirmation nonces.
heapSnapshotDirstring<tmp>/nodeui-heapDestination directory where .heapsnapshot files are written.
allowedHostsstring[][]Extra Host header names accepted besides loopback names.
allowedOriginsstring[][]Extra Origin values accepted for cross-origin calls.
allowedRemoteAddressesstring[][]Extra client IPs / IPv4 and IPv6 CIDRs accepted (e.g. Docker bridge).
trustProxybooleanfalseAccept requests carrying X-Forwarded-* headers.
authTokenstringundefinedRequire this token (Authorization: Bearer, cookie or ?token=).
maxSseClientsnumber10Concurrent live-stream connections allowed.
pluginsNodeUIProvider[][]Custom panels.
healthChecksRecord<string, () => unknown>{}Dependency checks shown in the Health panel.
outgoingLogSizenumber200Capacity of the outgoing HTTP call buffer.
configobject | fnundefinedCustom metadata object or getter to display in the Environment panel.

Environment Variables ​

VariableDefaultPurpose
NODEUI_ENABLEDunsetSet to true to force-enable (or false to force-disable).
NODEUI_PATH/nodeuiPrefix for web UI and API.
NODEUI_HOST127.0.0.1Loopback address validation target.
NODEUI_POLL_INTERVAL_MS2000Polling sampling rate in milliseconds.
NODEUI_INACTIVITY_TIMEOUT_MS60000Inactivity timer before providers stop background polling.
NODEUI_REQUEST_LOG_SIZE500Capacity of the request circular buffer.
NODEUI_LOG_SIZE500Capacity of the console log circular buffer.
NODEUI_OTLP_ENDPOINTunsetOTLP/HTTP collector base URL (e.g. http://localhost:4318).
NODEUI_CAPTUREalwayslazy installs capture hooks only while a panel is open.
NODEUI_PERSIST_FILEunsetJournal file for persistence across restarts.
NODEUI_CAPTURE_BODIESfalsetrue records masked request/response bodies.
NODEUI_CONFIRM_TTL_MS60000Nonce validity duration.
NODEUI_HEAP_SNAPSHOT_DIR<tmp>/nodeui-heapSnapshot output directory.
NODEUI_TOKENunsetRequire this access token.
NODEUI_ALLOWED_HOSTSunsetComma-separated extra Host names.
NODEUI_ALLOWED_ORIGINSunsetComma-separated extra Origin values.
NODEUI_ALLOWED_REMOTEunsetComma-separated client IPs / IPv4 and IPv6 CIDRs.
NODEUI_TRUST_PROXYfalsetrue accepts X-Forwarded-* requests.
NODEUI_MAX_SSE_CLIENTS10Concurrent live streams.

Released under the Apache-2.0 License.