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

@luswt/parse-session

v1.1.2

Published

Export AI coding agent sessions to JSON — run in any project directory to auto-detect and export all sessions

Readme

parse-session

Export AI coding agent sessions to JSON. Run in any project directory to auto-detect and export all sessions.

Install

npm install -g @luswt/parse-session

Usage

Export sessions for current project

Navigate to your project directory and run:

parse-session

This scans all supported agent databases, finds sessions linked to the current directory, and exports them into export-<agent>/ folders.

Export for a specific agent

parse-session opencode

Export a specific session by ID

parse-session ses_1a698034affeZJWB0IKPyDsErQ

List recent sessions

parse-session --list

Supported agents

| Agent | Database path | |---|---| | opencode | ~/.local/share/opencode/opencode.db |

More agents coming soon.

Options

| Command | Description | |---|---| | parse-session | Auto-detect and export all sessions for current directory | | parse-session <agent> | Export sessions for a specific agent | | parse-session --agent=<agent> | Same as above | | parse-session <session_id> | Export a single session by ID | | parse-session --list / -l | List 20 most recent sessions | | parse-session --db-path=<path> | Override database path for the agent |

Environment variables

| Variable | Description | |---|---| | OPENCODE_DB_PATH | Override the default opencode database path |

Output

Sessions are saved as JSON files with the following structure:

{
  "model": "GLM 5.1",
  "summary": "Session title",
  "date": "2026-05-24T16:19:49.627Z",
  "duration": "5m 2s",
  "durationMinutes": 6,
  "tokensIn": 71745,
  "tokensOut": 9283,
  "totalTokens": 81028,
  "costUSD": 0.497667,
  "gitDiffUrl": null,
  "changes": [
    { "path": "src/index.js", "type": "modified", "additions": 12, "deletions": 3 }
  ]
}

License

MIT