Skip to content

Configuration

ts
causeScope({
  enabled: true,
  openInEditor: true,
  editor: undefined,
  maxTimelineEvents: 200,
  maxTraceNodes: 10_000,
  maxNetworkResponseBytes: 1_000_000,
  maxNetworkBytes: 20_000_000,
  traceNetwork: true,
  traceStorage: true,
  ignoreComponents: ["src/components/ui", "InternalWrapper"],
  redact: {
    headers: ["x-workspace-secret"],
    queryParams: ["workspace_token"],
    objectKeys: ["privateNote"],
  },
});
OptionDefaultPurpose
enabledtrueDisables every CauseScope development hook when false.
includeTSX/JSX filesVite filter for source files.
excludedependencies and build outputVite exclusion filter.
openInEditortrueEnables the local development editor endpoint.
editorauto-detectedOptional editor command understood by launch-editor.
ignoreComponents[]Component names or project-relative directories to exclude.
traceNetworktrueRecords bounded Fetch/XHR metadata and response bodies.
traceStoragetrueRecords storage operations observed during the page run.
redactsecure defaultsAdds redaction keys; defaults are always retained.

Configured redaction entries extend the built-in list rather than replacing it.

JSON downloads follow the versioned trace export contract. Recording limits and redaction are applied before the document is created.

Built for local evidence, not another dashboard.