On GitHub, simonw/claude-code-transcripts has picked up 1.7k stars, Python. Tools for publishing transcripts for Claude Code sessions
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Convert Claude Code session files (JSON or JSONL) to clean, mobile-friendly HTML pages with pagination.
Example transcript produced using this tool.
Read A new way to extract detailed transcripts from Claude Code for background on this project.
[!WARNING]
The web commands for both listing Claude Code for web sessions and converting those to a transcript are both broken right now due to changes to the unofficial and undocumented APIs that these commands were using. See issue #77 for details.
Installation
Install this tool using uv:
uv tool install claude-code-transcripts
Or run it without installing:
uvx claude-code-transcripts --help
Usage
This tool converts Claude Code session files into browseable multi-page HTML transcripts.
There are four commands available:
local (default) - select from local Claude Code sessions stored in ~/.claude/projects
web - select from web sessions via the Claude API
json - convert a specific JSON or JSONL session file
all - convert all local sessions to a browsable HTML archive
The quickest way to view a recent local session:
claude-code-transcripts
This shows an interactive picker to select a session, generates HTML, and opens it in your default browser.
Output options
All commands support these options:
-o, --output DIRECTORY - output directory (default: writes to temp dir and opens browser)
-a, --output-auto - auto-name output subdirectory based on session ID or filename
--repo OWNER/NAME - GitHub repo for commit links (auto-detected if not specified). For web command, also filters the session list.
--open - open the generated index.html in your default browser (default if no -o specified)
--gist - upload the generated HTML files to a GitHub Gist and output a preview URL
--json - include the original session file in the output directory
The generated output includes:
index.html - an index page with a timeline of prompts and commits
page-001.html, page-002.html, etc. - paginated transcript pages
Local sessions
Local Claude Code sessions are stored as JSONL files in ~/.claude/projects. Run with no arguments to select from recent sessions:
claude-code-transcripts
# or explicitly:
claude-code-transcripts local
Use --limit to control how many sessions are shown (default: 10):
claude-code-transcripts local --limit 20
Web sessions
Import sessions directly from the Claude API:
# Interactive session picker
claude-code-transcripts web
# Import a specific session by ID
claude-code-transcripts web SESSION_ID
# Import and publish to gist
claude-code-transcripts web SESSION_ID --gist
The session picker displays sessions grouped by their associated GitHub repository:
simonw/datasette 2025-01-15T10:30:00 Fix the bug in query parser
simonw/llm 2025-01-14T09:00:00 Add streaming support
(no repo) 2025-01-13T14:22:00 General coding session
Use --repo to filter the session list to a specific repository:
claude-code-transcripts web --repo simonw/datasette
On macOS, API credentials are automatically retrieved from your keychain (requires being logged into Claude Code). On other platforms, provide --token and --org-uuid manually.
Publishing to GitHub Gist
Use the --gist option to automatically upload your transcript to a GitHub Gist and get a shareable preview URL:
claude-code-transcripts --gist
claude-code-transcripts web --gist
claude-code-transcripts json session.json --gist
The preview URL uses gisthost.github.io to render your HTML gist. The tool automatically injects JavaScript to fix relative links when served through gisthost.
Requirements: The --gist option requires the GitHub CLI (gh) to be installed and authenticated (gh auth login).
Auto-naming output directories
Use -a/--output-auto to automatically create a subdirectory named after the session:
# Creates ./session_ABC123/ subdirectory
claude-code-transcripts web SESSION_ABC123 -a
# Creates ./transcripts/session_ABC123/ subdirectory
claude-code-transcripts web SESSION_ABC123 -o ./transcripts -a
Including the source file
Use the --json option to include the original session file in the output directory:
--include-agents - include agent session files (excluded by default)
--dry-run - show what would be converted without creating files
--open - open the generated archive in your default browser
-q, --quiet - suppress all output except errors
Examples:
# Preview what would be converted
claude-code-transcripts all --dry-run
# Convert all sessions and open in browser
claude-code-transcripts all --open
# Convert to a specific directory
claude-code-transcripts all -o ./my-archive
# Include agent sessions
claude-code-transcripts all --include-agents
Development
To contribute to this tool, first checkout the code. You can run the tests using uv run:
cd claude-code-transcripts
uv run pytest
And run your local development copy of the tool like this:
Does simonw/claude-code-transcripts have a project website?
No homepage URL was recorded for simonw/claude-code-transcripts in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is simonw/claude-code-transcripts open source?
Yes — simonw/claude-code-transcripts ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/simonw/claude-code-transcripts.
What is simonw/claude-code-transcripts?
simonw/claude-code-transcripts (simonw/claude-code-transcripts) is a Python project on GitHub. From the project's own README: Tools for publishing transcripts for Claude Code sessions
What license does simonw/claude-code-transcripts use?
simonw/claude-code-transcripts is released under the Apache-2.0 license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about simonw/claude-code-transcripts?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/simonw/claude-code-transcripts is the definitive source.
Read full README in the tab above.
Want a second opinion on claude-code-transcripts?
Ask an AI that can read this page — one click and you get its take on claude-code-transcripts.