Skip to content
PluginStats

cc-session-io weekly downloads statistics

By elidickinson (2 listings) · npm · Claude Code

Read, write, and create Claude Code session files (unofficial)

View on npm Fresh · Dec 6, 2026

cc-session-io has 76,388 recorded weekly downloads on npm, an increase of 151% over the past 30 days, ranking #685 of 3,247 tracked listings.

Weekly downloads
76,388
Official API · Dec 5, 2026
7-day growth
+0.1%
+86 weekly downloads
30-day growth
+151%
+45.9K weekly downloads
90-day growth
+481%
+63.2K weekly downloads
Rank
#685
▼ 14 in 7 days

About cc-session-io

cc-session-io

Read, write, and create Claude Code session files.

Can create new session history files or read/write existing ones that will work with /resume in Claude Code. Useful for importing conversation history from another coding agent to continue it with claude.

No runtime dependencies. Not affiliated or supported by Anthropic, the makers of Claude Code.

Scope

Reads and writes user and assistant message records, with text, thinking, tool_use, tool_result and image content blocks, and attachment records — Claude Code's own injected context, such as an @file expansion. importMessages repairs tool_use/tool_result pairing on the way in. Sessions written this way resume in Claude Code.

Preserves every other record type Claude Code writes (queue-operation, last-prompt, summaries, and anything added by a future release) through UnknownRecord, so a read-modify-write leaves them untouched. Writing one means dangerousAppendRecord(), which appends whatever you hand it — the typed helpers only cover messages and attachments, because the other record types share almost none of their fields and synthesizing those would produce records Claude Code never writes.

Does not handle subagent transcripts: isSidechain is always written false, and Claude Code keeps sub-agent conversations in a separate subagents/ directory that this library neither creates nor manages. See also the Bun/Node hash mismatch for project paths over 200 characters.

Install

npm install cc-session-io

Requires Node >= 20.

Simple CLI Demo

# Create new session
cc-session create -p /my/project

# Add messages to session
cc-session add user "Hello!" -p /my/project -s <id>
cc-session add assistant "Hi, how can I help?" -p /my/project -s <id>

# Read conversation
cc-session read -p /my/project -s <id>

# List sessions
cc-session list -p /my/project

Options:

  • -p <path> - Project path (required)
  • -s <id> - Session ID (required for add/read)

Quick Start

Create a new session
import { createSession } from 'cc-session-io';

const session = createSession({ projectPath: '/path/to/project' });
session.addUserMessage('Refactor the auth module');
session.addAssistantMessage([{ type: 'text', text: 'I will refactor the auth module.' }]);
session.save();

// Resume it: claude --resume <session.sessionId>
Append to an existing session
import { openSession } from 'cc-session-io';

const session = openSession({
  sessionId: 'existing-uuid-here',
  projectPath: '/path/to/project',
});

// Existing messages are available
console.log(`${session.messages.length} messages loaded`);

// Append new messages — they chain onto the last existing record
session.addUserMessage('One more thing...');
session.addAssistantMessage([{ type: 'text', text: 'Sure, what is it?' }]);
session.save(); // appends to the existing JSONL file

API

createSession(opts): Session

Creates a new session. Generates a UUID session ID and resolves the JSONL path.

OptionTypeDefaultDescription
projectPathstringrequiredAbsolute path to the project. Determines where the JSONL file is written.
claudeDirstring?~/.claudeOverride the Claude config directory.
cwdstring?projectPathWorking directory written into records.
gitBranchstring?"HEAD"Git branch name written into records.
versionstring?"2.1.83"Claude Code version to claim.
modelstring?"claude-sonnet-4-6"Default model for assistant messages.
openSession(opts): Session

Opens an existing session by ID for reading or appending.

OptionTypeDescription
sessionIdstringUUID of the session.
projectPathstringAbsolute path to the project.
claudeDirstring?Override the Claude config directory.
readSession(jsonlPath, projectPath?): Session

Reads a session directly from a JSONL file path.

Session
Properties
PropertyTypeDescription
sessionIdstringUUID of the session.
projectPathstringProject path.
jsonlPathstringAbsolute path to the JSONL file.
recordsJsonlRecord[]All JSONL records (including non-message types).
messages(UserRecord | AssistantRecord)[]Only user and assistant records.
attachmentsAttachmentRecord[]Only attachment records.
session.addUserMessage(content): string

Adds a user message. content is either a string or an array of user content blocks (text, image, tool_result), which are written unchanged. Throws on an empty array, which Anthropic rejects. Returns the record's UUID.

session.dangerousAppendRecord(record, opts?): void

Appends a record verbatim. The escape hatch for record types this library does not model, and for carrying records from one session into another — with one exception: use addAttachment for attachments.

Dangerous because nothing is synthesized or validated beyond sessionId and the parent link — the shape is whatever you pass, and Claude Code will read it back. sessionId is overwritten with this session's, since a record claiming another session is never what a caller wants. The record is appended verbatim and does not advance the chain, so the next message parents to whatever came before it. That is right for chain-external records like queue-operation, but wrong for attachments — Claude Code threads those through the chain, so carry them with addAttachment instead.

parentUuid is the one thing checked: a dangling parent makes Claude Code resume with empty context and answer confidently from nothing, and it does not announce itself, so it throws instead.…

Description from the npm listing.

  • claude
  • claude-code
  • session
  • resume

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

cc-session-io weekly downloads on npm, last 90 days: 76,388 weekly downloads as of Dec 5, 2026, +481% over 90 days.cc-session-ioWeekly downloads on npm · Last 90 days76,388downloads / week+481% over 90 days020K40K60K80K100KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
cc-session-io weekly downloads on npm, last 90 days: 76,388 weekly downloads as of Dec 5, 2026, +481% over 90 days.

7/30/90-day growth

cc-session-io weekly downloads growth on npm: +0.1% over 7 days, +151% over 30 days, +481% over 90 days.cc-session-ioWeekly downloads growth on npm76,388downloads / week now7-day growth+86 weekly downloads+0.1%30-day growth+45,942 weekly downloads+151%90-day growth+63,231 weekly downloads+481%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
cc-session-io weekly downloads growth on npm: +0.1% over 7 days, +151% over 30 days, +481% over 90 days.

Ranking history

cc-session-io npm ranking history: currently #685 (by weekly downloads).cc-session-ionpm ranking · by weekly downloads · Last 90 days#685current rank#200#300#400#500#600#700#800#900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
cc-session-io npm ranking history: currently #685 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 35, #5 (overall #685)
All npm: every listing in weekly downloads order

Listing placement

Claude Code614 listings · 31 pages · page 1, #7 (overall #7)
Claude Code: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for cc-session-io
Date (UTC)Weekly downloadsChange vs. previous
76,388-9.7K
86,043+2.7K
83,358+2.3K
81,100+961
80,139-385
80,524+3.1K
77,470+1.2K
76,302+3.5K
72,792+6.8K
66,017+5.4K
60,591+4.8K
55,767+4.7K
51,052+2.1K
48,940—

Similar npm Claude Code plugins

All 20 cc-session-io alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/cc-session-io. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.