es617/claude-replay
A local Node.js tool that turns coding-agent logs into embeddable HTML replays
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
claude-replay is a JavaScript transcript converter with a CLI, a local web editor, and a standalone browser player. Its parser handles streamed Claude Code JSONL records and groups user messages, assistant content, tool calls, and tool results into turns. Other inputs, such as Gemini CLI's single-file JSON, are normalized into the same structure. Mappings such as Codex CLI's apply_patch to Edit or Write let different sources reuse the player's diff views.
The renderer compresses turn data with deflate, base64-encodes it, and injects it into an HTML template. The vanilla JavaScript player uses the browser's DecompressionStream API rather than fetching data from a backend. There are no npm runtime dependencies; esbuild is used at build time to minify the template. Integration happens through transcript files, session IDs, or supported local stores. Despite the catalog category, this is not an MCP server.
Key Capabilities & Differentiators
The converter handles sessions from Claude Code, Cursor, Codex CLI, Gemini CLI, OpenCode, Kimi Code, and Hermes Agent. OpenCode requires a CLI export; Hermes accepts exports or can read its local SQLite store directly on a compatible Node version. Up to 20 inputs can be combined: turns are sorted by time when all sessions have timestamps, otherwise the inputs are kept in command-line order. Cursor logs lack timestamps, so they use synthetic pacing by default.
The editor previews changes without modifying the originals and lets users select turns, edit user prompts, add chapters, and configure redaction. The player adds speed controls, collapsible tool and thinking blocks, and a file activity sidebar that jumps to the corresponding tool calls. --pacing paced-wording reveals prose word by word at 80–600 WPM, with a default of 238 WPM, while revealing fenced code as a single block. extract recovers normalized turns and bookmarks for re-export; --serve --watch supports live monitoring.
Trade-offs & Limitations
Compared with a screen recording, a replay is easier to navigate by chapter, turn, or tool call, but it cannot show desktop or IDE activity absent from the transcript. Compared with raw logs, it is easier to present and embed, but normalization, editing, and synthetic timing make it a presentation artifact rather than a faithful audit record. A single HTML file removes the need for a playback backend, but larger sessions still produce more data for the browser to load, decompress, and render.
A replay is also a data disclosure surface: its embedded turns can be extracted, and hiding tool calls or thinking blocks by default is a display setting, not a privacy control. Use automatic redaction and explicit replacement rules, then inspect the exported data for sensitive source code, paths, and secrets before publication. For shared hosting, treat the editor differently from static exports: it browses mounted session directories and should not be exposed to untrusted users.
Hardware & Deployment Guide
Install with npm install -g claude-replay or run with npx claude-replay. The baseline is Node.js 18+, and running the command without arguments starts the web editor on 127.0.0.1 by default. Use claude-replay <path-or-session-id> -o replay.html for CLI conversion. No model runtime, API credentials, or separate database service is needed. Once generated, the HTML can be opened locally or served as a static file without Node.js on the viewer's side.
The container uses node:22-alpine, installs the npm package globally, exposes port 7331, and binds the app to 0.0.0.0. Mount transcript directories read-only and use a separate writable output mount for CLI exports. To keep the Docker editor local, publish with -p 127.0.0.1:7331:7331. The release sequence added Kimi Code support in v0.9.0, word-by-word pacing in v0.10.0, and Hermes support in v0.11.0. Direct Hermes SQLite access needs Node.js 22.5+ for node:sqlite; exported Hermes files work on the Node.js 18+ baseline.
Teams turning coding-agent transcripts into navigable documentation, demos, bug reports, or training material without operating a playback backend.
You need full desktop capture, an MCP server, or an auditable record that preserves the original event stream.
Quick Start & Installation
npm install -g claude-replay
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-replay ★ | 862 | +1 | JavaScript | MIT | A local Node.js tool that turns coding-agent logs into embeddable HTML replays |
| cc-switch | 159.1k | +1.7k | Rust | MIT | Tauri desktop manager for AI coding providers, local routing, and MCP config |
| herdr | 54.1k | +871 | Rust | Apache-2.0 | Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces |
| magpie | 45.5k | +2.9k | Go | MIT | A local API gateway that pools model subscriptions across coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/es617/claude-replay.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-replay
How do I embed a replay in existing documentation?
Does replay generation require a GPU, and how should I size it?
Can a company self-host the tool and publish its exports?
When is this a better choice than a screen recording or raw log?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy