Greasy Fork

Greasy Fork is available in English.

Claude API Exporter

Export Claude conversations, artifacts and projects

当前为 2025-11-08 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
carrot4522
评分
0 0 0
版本
4.10.0
创建于
2025-11-08
更新于
2025-11-08
大小
158.6 KB
许可证
MIT
适用于

📦 Claude API Exporter - Tampermonkey Userscript

📋 Overview

Claude API Exporter is a Tampermonkey userscript designed to export Claude.ai conversations, artifacts, and projects with complete control and flexibility. It provides professional-grade conversation exports by intelligently handling conversation branches, artifact versions, and project organization, ensuring you never lose track of your AI interactions.

✨ Key Features

Feature Description
Multiple Export Modes Choose from 5 different export modes: Conversation Only, Final Artifacts, All Artifacts, Latest Per Message, and Main Branch Only
Intelligent Branch Detection Automatically detects and tracks conversation branches, labeling messages and artifacts with their branch membership
Artifact Version Tracking Tracks all artifact versions (create, update, rewrite commands) with full history and change descriptions
Customizable Filenames Use powerful template variables to create custom filename patterns for conversations and artifacts
ZIP Archive Support Export conversations with optional ZIP archiving and automatic folder organization
Mass Export Compatible Works with Claude Mass Exporter library to export all projects, recent conversations, or entire project collections
Raw API Export Export raw conversation data in JSON format (pretty or compact) for advanced analysis
Comprehensive Settings Fine-tune every aspect of export behavior through an intuitive tabbed settings interface
Markdown Formatting Exports conversations in clean, readable Markdown with proper metadata, timestamps, and structure
Branch Filtering Export only the main conversation branch or include all alternative branches

🎯 Perfect Use Cases

  • Developers - Archive conversations with code artifacts, track version history, and maintain project documentation
  • Researchers - Export conversation data for analysis, preserve research conversations with complete context
  • Content Creators - Save AI-generated content with full edit history and metadata for later reference
  • Project Managers - Export and archive project-related conversations with proper organization and structure
  • Power Users - Fine-tune export settings for specific workflows, customize filename patterns, and batch export conversations

🚀 How It Works

Export Mode System

Conversation Only:

  • 📄 Exports pure conversation text
  • Optionally includes artifacts based on settings (none, final, all, latest per message, main branch only)
  • Perfect for lightweight text-only exports

Final Artifacts:

  • 🔴 Exports conversation with only the final version of each artifact
  • Reduces clutter while preserving the latest state
  • Ideal for production-ready outputs

All Artifacts:

  • 📁 Exports conversation with complete artifact version history
  • Includes create, update, and rewrite commands
  • Perfect for tracking changes and understanding evolution

Latest Per Message:

  • 💬 Exports only the latest artifact version created in each message
  • Balances completeness with organization
  • Great for conversations with multiple iterations

Main Branch Only:

  • 🌿 Exports only the main conversation path
  • Filters out alternative branches and responses
  • Ideal for linear conversation exports

Artifact Export Modes

The script recognizes three artifact export strategies:

  • Embed Only - Include artifacts in conversation file only
  • Files Only - Export artifacts as separate files only
  • Both - Include in conversation AND export as separate files

Archive Creation Workflow

  1. Settings Check: Determines if ZIP archive should be created based on user preferences
  2. File Collection: Gathers conversation markdown and artifact files
  3. Folder Organization: Optionally creates folders for each chat using customizable templates
  4. Archive Generation: Packages all files into a ZIP archive with compression
  5. Download: Initiates automatic download with custom archive name

📸 Interface Preview

The screenshot shows the Tampermonkey menu with available export options:

  • ⚙️ Settings - Configure all export preferences
  • 📄 Export Conversation Only - Text-only export
  • 📁 Export Conversation + Final Artifacts - Latest versions only
  • 📁 Export Conversation + All Artifacts - Complete history
  • 📁 Export Conversation + Latest Artifacts Per Message - Latest per message
  • 🌿 Export Main Branch Only - Main conversation path
  • Modern, clean interface with emoji indicators

💡 Benefits

Benefit Impact
Complete Control Fine-tune every aspect of export behavior through comprehensive settings
Never Lose Context Track conversation branches, artifact versions, and project relationships
Professional Exports Clean Markdown formatting with proper metadata and timestamps
Flexible Organization Customize filename patterns, archive structure, and folder naming
Batch Processing Compatible with mass export library for exporting entire project collections
Version History Track artifact changes with create, update, and rewrite command tracking
Branch Awareness Understand conversation flow with automatic branch detection and labeling
Time Savings Automate conversation archiving with ZIP export and folder organization

🔧 Installation

  1. Install Tampermonkey browser extension
  2. Add Claude API Exporter userscript
  3. Visit https://claude.ai - script activates automatically
  4. Look for new menu options in Tampermonkey icon
  5. Start exporting - choose your preferred export mode from the menu

📝 Usage Tips

For Best Results:

  • Open Settings first to configure filename templates and export preferences
  • Use "Conversation Only" for quick text exports without artifacts
  • Use "All Artifacts" when you need complete version history
  • Enable ZIP archives for multi-file exports to keep everything organized
  • Customize filename templates with date/time variables for automatic organization

Recommended Settings Configurations:

  • Quick Export: Conversation Only mode with "none" artifact setting
  • Complete Archive: All Artifacts mode with "Both" export and ZIP enabled
  • Production Ready: Final Artifacts mode with "Files" export
  • Research Mode: All Artifacts with "Both" export and chat folders enabled

⚙️ Customization

The script includes:

  • 40+ Filename Template Variables - Customize how files are named (timestamps, IDs, titles, branch info)
  • Date Format Options - Choose from compact, readable, or ISO timestamp formats
  • Archive Settings - Control ZIP creation, folder structure, and naming patterns
  • Content Formatting - Remove double newlines, exclude attachments, control metadata inclusion
  • Branch Export Options - Export only current branch or all branches with full tree structure
  • Menu Configuration - Show/hide export options in Tampermonkey menu

🎓 Why This Matters

Problem Statement: Claude.ai doesn't provide built-in tools to export conversations with artifacts in an organized, structured format. Users lose track of:

  • Conversation branch history when exploring alternative responses
  • Artifact version changes and edit history
  • Project organization and relationships between conversations
  • Complete context including metadata, timestamps, and tool usage

Solution Statement: Claude API Exporter solves these problems by:

  • Automatically detecting and tracking conversation branches with proper labeling
  • Building complete artifact version history with change descriptions
  • Organizing exports with customizable filenames and ZIP archives
  • Preserving all metadata, timestamps, and conversation context in clean Markdown format

🌟 Ideal For

  • Developers building AI-powered applications who need to track conversation history
  • Researchers analyzing AI interactions and preserving research conversations
  • Content creators maintaining archives of AI-generated content with edit history
  • Teams collaborating on Claude projects who need organized conversation exports
  • Power users who want complete control over export formatting and organization
  • Anyone who wants to preserve their Claude conversations with full context and metadata

Claude API Exporter transforms how you work with Claude.ai by providing professional-grade conversation exports, complete artifact version tracking, and flexible organization options with intelligent branch detection and customizable filename templates.


🔗 Additional Information

Detail Information
Compatible With Chrome, Firefox, Edge, Safari (with Tampermonkey)
Website Support claude.ai (all conversation pages, project pages, recents)
Last Updated v4.10.0
Language English
License MIT

📞 Support & Feedback

  • Found a bug? Report it in the feedback section
  • Have a feature request? Let me know!
  • Enjoying the script? Leave a review!