npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

claude-code-exporter

v2.0.5

Published

Export, analyze, and aggregate Claude AI conversation sessions with TypeScript support and MCP integration

Readme

Claude Code Exporter

npm version npm downloads License: MIT Node.js Version

Export, analyze, and aggregate your Claude Code conversation sessions with ease

Claude Code Exporter is a powerful TypeScript tool that helps you extract, organize, and analyze your Claude AI conversations. Whether you need to document your AI-assisted development sessions, create knowledge bases, or analyze conversation patterns, this tool provides comprehensive export capabilities with multiple formats and intelligent aggregation features.

🚀 Quick Start

# Install globally
npm install -g claude-code-exporter

# Run interactively
claude-prompts

# Export with options
claude-prompts --prompts --markdown -o ./exports
# Recommend demo command
claude-prompts aggregate --both --structured --mermaid -o "./_demo-aggregate/

📖 Full Quickstart Guide →

📚 Documentation

Getting Started

Usage Guides

API & Development

Support

✨ Key Features

  • 🔄 Export Conversations - Extract prompts, outputs, or full conversations from Claude sessions
  • 📊 Smart Aggregation - Aggregate and analyze prompts across multiple projects
  • 🎯 Multiple Export Modes - Choose between prompts-only, outputs-only, or full conversations
  • 📝 Multiple Formats - Export to Markdown, JSON, TXT, or all formats simultaneously
  • 🔌 MCP Integration - Use as a Model Context Protocol server with Claude Desktop
  • 🏗️ Clean Architecture - Built with NestJS using Domain-Driven Design principles
  • 📁 Organized Output - Timestamped directories with intelligent file organization
  • 🎮 Interactive Mode - User-friendly wizard for easy configuration
  • 🧪 Fully Tested - Comprehensive test coverage for reliability

🎯 Choose Your Version

We offer three ways to use Claude Code Exporter:

| Version | Best For | Setup Required | |---------|----------|----------------| | V1 - CLI | Quick exports, no database needed | None | | V2 - Full | Production use, REST API, database | PostgreSQL | | MCP - Claude Desktop | Use within Claude Desktop | Node 20.x |

Not sure which to use?Read the Version Comparison

🛠️ Example Commands

# Export only your prompts as markdown
claude-prompts --prompts --markdown

# Export full conversations from last week
claude-prompts --full --json --period 7d

# Aggregate all prompts across all projects
claude-prompts --aggregate -o ./all-prompts

# Export everything in all formats
claude-prompts --full --both

📦 Installation

# Global CLI installation (recommended)
npm install -g claude-code-exporter

# For Claude Desktop integration
npm install -g mcp-claude-code-exporter

# As project dependency
npm install claude-code-exporter

Full Installation Guide →

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

MIT License - see LICENSE file for details.

🙏 Acknowledgments

Built with: