Trace Playground
Import a frontierlab-trace schema-v1 JSON document. Everything stays in this browser; no network request or CDN is used.
Drop a JSON file here or choose one
///|
/// Render a self-contained offline playground for importing, validating,
/// analyzing, replaying, and exporting schema-v1 trace documents.
pub fn render_trace_playground() -> String raise TraceError {
let example = insertion_sort_trace([5, 2, 4, 1, 3])
let safe_example = example.encode_json().replace_all(old="<", new="\\u003c")
let out = StringBuilder()
out.write_string(
(
#|
#|
#|
#|FrontierLab Trace Playground
#|
#|← FrontierLab demosTrace Playground
Import a frontierlab-trace schema-v1 JSON document. Everything stays in this browser; no network request or CDN is used.
#|Drop a JSON file here or choose one
#|No trace loaded
#|Quality diagnostics
Timeline
#|
),
)
out.to_string()
}