Documentation Index
Fetch the complete documentation index at: https://docs.m4trix.dev/llms.txt
Use this file to discover all available pages before exploring further.
@m4trix/trace-viewer ships a local browser UI for traces written by @m4trix/tracing.
Start the Viewer
--adapter fs|aws-stackselects the storage backend.fsis the default;aws-stackcurrently exits with a clear not-implemented message.--path <dir>sets the filesystem trace root. The default istmp/tracing-example.--port <n>sets the HTTP port. The default is4319.-h, --helpprints the CLI help text.
Filesystem Layout
The filesystem adapters store traces under the configured root:trace.json contains the trace summary. runs.ndjson contains one JSON run per line. Payload files are referenced by inputRef and outputRef.
Viewer API
The viewer serves a tRPC API under/trpc:
traces.listlists trace summaries with optional filters.traces.getTreereturns one trace with its nested run tree.traces.getPayloadreads a JSON payload by ref.
Programmatic Server
You can embed the viewer server in your own local tooling:startTraceViewerServer listens on 127.0.0.1 by default. Pass host when you need to bind another interface.
Querying Traces
The API accepts the same query shape asTraceStore.listTraces(...):
projectIdstatusstartAfterstartBeforelimitcursor
nextCursor when more results are available.