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-chat-archive

v1.0.0

Published

Convert Claude.ai chat export into a navigable markdown archive.

Readme

claude-chat-archive

Convert your Claude.ai chat export into a navigable markdown archive.

What it does

Claude.ai's data export is a single 70MB+ JSON. This tool turns it into:

  • One markdown file per conversation, named YYYY-MM-DD <title>.md
  • One file or folder per project (with docs/ if any docs exist)
  • Attachments inlined when small, separated when large
  • Files created by assistant tools (create_file, artifacts) extracted to created/
  • YAML frontmatter for Obsidian / Dataview queries

Usage

# Most common: point at your export folder
npx claude-chat-archive ./claude-export ./output

# Or under Bun
bunx claude-chat-archive ./claude-export ./output

# Single argument creates ./claude-export/output
npx claude-chat-archive ./claude-export

Options

| Flag | Default | Description | | -------------------------------- | ---------- | -------------------------------------------------------------------------------------- | | --mode <m> | standard | minimal (text only) / standard (+ thinking + tool summaries) / full (everything) | | --no-thinking | off | Omit assistant thinking content | | --no-tools | off | Omit tool_use / tool_result content | | --attachment-threshold <bytes> | 4096 | Inline attachments smaller than this; otherwise external | | --scope <s> | all | all / chats / projects | | --dry-run | off | Print stats without writing | | -h, --help | — | Show help | | -v, --version | — | Show version |

Output structure

output/
├── chats/
│   └── 2026-01-29 PDF 버퍼를 이미지로 변환.md
├── projects/
│   ├── 프로그래밍 강의.md            # no docs → single file
│   └── How to use Claude/             # has docs → folder
│       ├── README.md
│       └── docs/Claude prompting guide.md
├── attachments/
│   └── <chat-uuid>/<filename>     # files YOU sent in
└── created/
    └── <chat-uuid>/<filename>     # files Claude created via tools

Each chat markdown has frontmatter for searchable metadata:

---
uuid: 5a2e2c19-7df0-4a92-ad55-c52a5189bcbe
title: PDF 버퍼를 이미지로 변환
created: 2026-01-29T12:06:57Z
updated: 2026-01-29T12:07:25Z
message_count: 4
attachment_count: 1
tags: [claude-chat]
summary: |
  Conversation summary preserved from the export…
---

Programmatic API

import { archive } from "claude-chat-archive";

const stats = await archive({
  inputDir: "./claude-export",
  outputDir: "./out",
  mode: "standard",
  includeThinking: true,
  includeTools: true,
  attachmentThreshold: 4096,
  scope: "all",
  dryRun: false,
});

console.log(stats);
// { chatsTotal: 177, chatsWritten: 177, projectsWritten: 15, ... }

Requirements

  • Node ≥ 20 or Bun
  • Zero runtime dependencies

License

MIT