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

@nogataka/ccresume-codex

v0.0.5

Published

A TUI tool for browsing and resuming Codex conversations

Readme

ccresume (Codex Edition)

このリポジトリは sasazame/ccresume をベースに、Claude Code 向け実装を OpenAI Codex 向けに移植した派生プロジェクトです。基盤となる Ink + React 製の CUI はそのままに、Codex CLI と JSONL ログ形式へ完全対応させています。

ccresume screenshot

ccresume demo

⚠️ DISCLAIMER: This is an unofficial third-party tool not affiliated with or endorsed by OpenAI. Use at your own risk.


概要

ccresume (Codex Edition) は ~/.codex/sessions/~/.codex/history.jsonl のログを読み込み、ターミナル上で素早くブラウズ・検索・再開できる TUI です。Ink のフルスクリーン UI から Codex CLI (codex) を直接実行し、セッション再開や新規開始を一元的に行えます。2025 年秋のアップデートでプロジェクト/セッション検索モードとキーバインドが強化されています。

利用ガイド

  1. 最新版をワンショットで試す場合は npx @nogataka/ccresume-codex@latest を実行します。依存関係はローカルにインストールされません。
  2. 常用するなら npm install -g @nogataka/ccresume-codex でグローバル導入すると、その後は ccresume-codex だけで起動できます。
  3. プロジェクト配下だけを対象にしたい場合は ccresume-codex . を利用します。
  4. Codex CLI (codex) が PATH に入っていることが前提です。不明な引数はすべて Codex CLI に委譲されるため、ccresume-codex -- --json のように -- で区切って渡せます。

💡 ヒント: 実行時にターミナル出力が崩れる場合は Ctrl+L で画面をクリアし、q でアプリを終了できます。

主な機能

  • 📋 プロジェクト横断の Codex セッション一覧(最終更新順)
  • 🔍 ユーザー/アシスタント/ツール出力/reasoning のプレビュー
  • 📎 セッション UUID をワンキーでクリップボードへコピー
  • 🚀 選択ディレクトリでの Codex セッション開始・再開
  • 📁 . オプションでカレントディレクトリのみをフィルタ
  • 🔎 / でプロジェクト・セッションの検索モードをトグルし、Ctrl+U でクエリをクリア
  • 🎭 --hide で tool / thinking / user / assistant を任意に非表示
  • ⚙️ - キーで Codex CLI オプションをインタラクティブ編集
  • 🔄 f キーでフルログ表示に切り替え

ひと目でわかる使い方

前提: Node.js 18 以上、および OpenAI Codex CLI (codex) がインストール済みであること。

# 依存を取得
npm install

# 開発中の CLI を起動
npm run dev

ビルド・テスト:

npm run build      # TypeScript のトランスパイル
npm test           # Jest + ink-testing-library
npm run lint       # ESLint(Flat Config)
npm run typecheck  # tsc --noEmit

公開版を試す:

npx @nogataka/ccresume-codex@latest      # npx 実行
ccresume-codex                     # グローバルインストール済みならこれだけ
ccresume-codex .                   # カレントディレクトリ配下に限定
ccresume-codex --hide tool         # tool メッセージ非表示
ccresume-codex -- --json --model o1-mini # codex CLI への追加引数

--help / -h でヘルプ、--version / -v でバージョンを表示します。検索モードのトグル (/) やクエリクリア (Ctrl+U) はターミナル上でそのまま利用できます。

⚠️ ccresume-codex が認識しない引数はすべてそのまま codex に渡されます。Codex CLI の挙動を変えるオプション(例: resume)を渡す際は動作への影響を理解した上で使用してください。


データソース & 設定

  • セッションログ: ~/.codex/sessions/**/*.jsonl
  • 履歴メタ情報: ~/.codex/history.jsonl
  • ユーザー設定: ~/.config/ccresume-codex/config.toml (キーバインドなど)

初回起動時に設定ファイルが見つからない場合はビルトイン設定で動作します。config.toml.example を参考に、キーバインドや挙動をカスタマイズできます。検索トグル/クエリクリアのキーもここで上書き可能です。


キーマップ

| アクション | キー | |------------|------| | 終了 | q | | 上下移動 | / | | ページ移動 | / pageup / pagedown | | 決定 / セッション再開 | Enter | | 新規セッション開始 | n | | コマンドエディタ | - | | セッション UUID コピー | c | | 履歴スクロール | j / k (行) ・ d / u (ページ) ・ g / G (先頭/末尾) | | フルビュー切り替え | f | | 検索モード切替 | / | | 検索クエリクリア | Ctrl+U |


コマンドエディタについて

- キーで Codex CLI オプション編集画面を開きます。

  • 候補(chat, exec, resume, --model, --sandbox, --cd など)を補完
  • Tab / Enter で候補を挿入、矢印キーでハイライト移動
  • Esc / Ctrl+C でキャンセル、Enter で確定
  • 確定したオプションはセッション再開 (Enter) と新規開始 (n) の両方で利用されます

候補は codex --help を元にしているため、Codex CLI の更新時は必要に応じて確認してください。


リリース & 自動デプロイ

GitHub Actions の Release ワークフローが npm への公開を自動化します。設定と運用手順は次のとおりです。

  1. NPM_TOKEN シークレットをリポジトリに登録します。npm の自動化トークン (npm token create --read-only ではなく publish 権限付き automation トークン) を指定してください。
  2. バージョンを更新します。例: npm version patch (または minor / major) を実行し、コミットとタグ vX.Y.Z が作成されていることを確認します。
  3. 変更とタグを push (git push origin main --follow-tags など) すると、タグ v* がトリガーになってワークフローが走ります。
  4. ワークフローは npm ci → lint → typecheck → test → build を実行したあと npm publish --access public を呼び出します。公開に成功すると @nogataka/ccresume-codex が更新され、npx @nogataka/ccresume-codex@latest / npm install -g @nogataka/ccresume-codex で利用可能になります。

必要に応じて GitHub Actions の手動実行 (workflow_dispatch) でも同じ処理が走ります。タグと package.json のバージョンが一致していない場合は安全のため失敗するようにしています。

Web版 codex-viewer

  • Qiita 記事: https://qiita.com/nogataka/items/28d04db421663a4a46fd
  • Zenn 記事: https://zenn.dev/taka000/articles/74a60c37fae5bb

既知の制限とヒント

  • Codex CLI の仕様変更によりログ形式が変わった場合、解析が失敗する可能性があります。エラーが発生したら JSONL のサンプルを添えて Issue までお知らせください。
  • codex resume が権限の問題などで失敗した場合、CLI はエラーメッセージとともにセッション UUID・JSONL パスを表示し、手動実行を案内します。
  • Windows ネイティブ端末では Codex CLI 起動直後に入力できなくなることがあります。プロンプトの指示どおり Enter を押してフォーカスを取り戻してください。

ライセンス & コントリビューション

  • ライセンスは元プロジェクトと同じ MIT です。詳細は LICENSE を参照してください。
  • バグ報告・機能要望は GitHub Issue へ、プルリクエストも歓迎します(npm run lint / typecheck / test が通っていることを確認してください)。

本プロジェクトは OpenAI Codex CLI ユーザーのためのコミュニティツールです。公式ドキュメントと併せて活用し、フィードバックをお寄せください。