A Node.js transformer that converts conversation session logs into beautiful, interactive web UIs.
I created this application for two key reasons:
-
Easy Conversation Search - To quickly search through Claude Code conversations in an intuitive way, making it simple to find specific exchanges, code changes, or tool usage
-
Teaching & Demonstrations - To show students, customers, and clients what Claude Code was doing during a session and what prompts I was using, making it easy to explain AI-assisted development workflows
- Intelligent Parsing - Extracts user messages, assistant responses, tool usage, code blocks, and file changes
- Interactive UI - Collapsible sections, real-time search, message filtering
- Dark Theme - GitHub-inspired design with gradient accents
- Fully Responsive - Works on desktop, tablet, and mobile
- Accessible - Keyboard navigation, screen reader support, reduced motion support
- Print-Ready - Clean print styles for documentation
npm installTo get your conversation log from Claude Code:
- During or after your Claude Code session, type
/export - Claude Code will save the conversation to a
.txtfile - The file will be saved in your current working directory with a timestamped filename
# In Claude Code, simply type:
/exportThe exported file contains the full conversation including your prompts, Claude's responses, tool usage, and file operations - everything this transformer needs to generate the interactive HTML view.
npx ts-node src/transformer.ts <input-file> <output-file>| Argument | Description | Required |
|---|---|---|
input-file |
Path to the conversation log file (.txt) | Yes |
output-file |
Path for the generated HTML file (.html) | Yes |
npx ts-node src/transformer.ts conversation.txt output.html- Total messages count
- Number of conversation sections
- Files touched during the session
- Code blocks extracted
- Search - Press
/to focus,Escapeto clear. Matching terms are highlighted in yellow. - Filter - View only User, Claude, Tool, or Git messages
- Emoji Filter - Click any emoji to filter messages containing it (shows count)
- Expand/Collapse - Navigate large conversations easily
- Copy Code - One-click code block copying
- User (blue) - Your prompts and questions
- Claude (green) - Claude's responses
- Tool (orange) - File operations, searches, commands
- Git (red) - Git operations (commit, push, pull, etc.)
- System (purple) - System messages and notifications
npm run buildconversation-viewer/
├── src/
│ └── transformer.ts # Main transformer script
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
- Node.js 18+
- npm or yarn
MIT
v1.0.17
