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

@vitorcen/context-resume

v1.0.6

Published

Context Resume CLI - Browse and mutually restore the conversation history of Claude Code and Codex

Readme

Context Resume CLI

Context Resume lets you quickly resume work across Claude Code (~/.claude), Codex CLI (~/.codex), Cursor (~/.cursor), and Gemini (~/.gemini) by listing recent sessions for the current working directory, showing a detailed prompt history preview, and printing a ready-to-use bilingual (English/Chinese) resume prompt.

Features

  • Quad-Panel View: Grid view for Claude, Codex, Cursor, and Gemini sessions.
  • Detailed Preview: Shows a list of user prompts from the selected session (truncated) at the top.
  • Configurable Limit: Use -n <count> to control how many sessions to load per source.
  • Bilingual Output: Prints both English and Chinese prompts pointing to the session file.
  • Privacy First: Works entirely locally; no network calls.

Requirements

  • Node.js 18+ (tested with ESM build).
  • sqlite3 command-line tool (required for reading Cursor sessions).

Installation

npm install
npm run build
npm link      # optional, to install the global `context` command

Usage

From any project directory you want to resume:

context           # Load default 10 sessions per source
context -n 20     # Load 20 sessions per source
  • Use TAB to switch between panels.
  • Use Arrow Keys to navigate grid (Left/Right) and select sessions (Up/Down).
  • Preview at the top shows the sequence of user prompts.
  • Press Enter to print the resume prompts (with absolute paths) and exit.

How it works

  • Claude: Reads ~/.claude/projects/<encoded-path>/*.jsonl.
  • Codex: Scans ~/.codex/sessions/**/*.jsonl, filters by cwd metadata.
  • Cursor: Scans ~/.cursor/chats/<md5-hash>/*/store.db, extracts prompts from SQLite blobs.
  • Gemini: Scans ~/.gemini/tmp/<sha256-hash>/chats/*.json.
  • Prompt Extraction: Parses the session files to extract user inputs for the preview, giving you a quick summary of "what was I doing?".

Project layout

  • src/index.tsx – Entry point, handles CLI arguments.
  • src/ui/app.tsx – Ink UI with grid panels and preview.
  • src/adapters/index.ts – File parsers and prompt extractors.

Limitations

  • Codex scanning involves globbing which might be slow on very large histories.
  • Cursor support requires sqlite3 installed in the system.