Skip to content

Session Report

A Session Report contains the raw event data captured during a writing session and its analysis.

interface SessionReport {
data: WriteTrackDataSchema; // everything captured — see Data Schema
analysis: SessionAnalysis | null; // the seven analysis categories
}

Get one from a live tracker with getSessionReport(), or build one from stored data with createSessionReport(). The report is plain JSON: POST it to your backend, store it in a JSON column, and render it later by passing it to <wt-scorecard>.setData(). When a stored report includes analysis, rendering uses that supplied object. Verify its signature after it crosses a trust boundary; see verifyAnalysisSignatureAsync().

  • Scorecard — the component that renders a report
  • Data Schema — what’s inside report.data
  • Analysis — the seven categories inside report.analysis
  • API Reference — the server → client → scorecard round trip