Discover and explore top open-source AI tools and projects—updated daily.
agarwalvishalClaude conversation exporter for perfect Markdown fidelity
Top 80.7% on SourcePulse
This JavaScript tool, Claude Chat Exporter, addresses the need to reliably save Claude.ai conversations. It targets Claude users who require accurate, complete, and well-formatted exports of their chat history, providing a significant benefit over manual methods or less robust parsing scripts.
How It Works
The exporter employs a novel approach by programmatically triggering Claude's native "copy" buttons for both user and AI messages. It intercepts navigator.clipboard.writeText calls to capture the exact Markdown content generated by Claude's internal copy functionality. This captured content is then combined with metadata like conversation titles and per-message timestamps, fetched via Claude's internal API, to construct a comprehensive Markdown file. This method ensures 100% fidelity for all Claude-supported elements, avoiding the inaccuracies and maintenance burdens associated with parsing HTML directly.
Quick Start & Requirements
claude.ai, open the browser's developer console (F12 or Cmd+Option+J/K), paste the contents of claude-chat-exporter.js, and press Enter.Highlighted Details
Maintenance & Community
Contributions are welcomed via pull requests or issues for selector updates, performance tuning, and error handling improvements. No specific community channels (e.g., Discord, Slack) or notable contributors/sponsorships are listed.
Licensing & Compatibility
claude.ai web interface.Limitations & Caveats
The tool requires JavaScript to be enabled and operates solely within the claude.ai web interface. It is susceptible to breaking if Claude's UI changes necessitate updates to CSS selectors. The exporter cannot handle attachments, images, or artifacts, and only exports messages currently visible in the browser's DOM.
1 month ago
Inactive