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

codex-project-export

v0.1.1

Published

Interactively export all OpenAI Codex sessions for one project.

Readme

codex-project-export

把 OpenAI Codex 左侧某个项目下的全部主会话导出为一个可分享的 tar.gz 文件。

Codex 实际把会话按日期存放在 ~/.codex/sessions,项目分组来自每条 rollout 里的 cwd。本工具会扫描这些本地记录、还原项目列表,让会话所有者选择一个项目后再打包。

使用

要求 Node.js 20.17 或更高版本。

npx codex-project-export

使用方向键选择项目,按回车确认。工具随后显示会话数和原始大小,再次确认后在当前目录生成:

codex-<项目名>-<时间>.tar.gz

查看项目但不导出:

npx codex-project-export --list

脚本化导出:

npx codex-project-export --project yujian-ai-workbench --output ./handoff.tar.gz --yes

默认同时扫描当前会话和 ~/.codex/archived_sessions。只导出当前会话:

npx codex-project-export --active-only

完整参数见:

npx codex-project-export --help

归档内容

manifest.json
sessions/
  0001-<session-id>.jsonl
  0002-<session-id>.jsonl

manifest.json 记录项目、会话数量、来源、文件大小、SHA-256 和疑似敏感内容类型。接收人解压后,可以把 sessions 目录交给支持 Codex rollout JSONL 的导入工具。

明确不包含

  • 项目源代码和 Git 仓库
  • ~/.codex/config.toml
  • ~/.codex/auth.json
  • Skills、MCP 配置和其他 Codex 设置
  • Codex 子代理 rollout

安全说明

会话正文和工具输出仍可能包含源码、终端输出、客户信息或密钥。工具只做常见密钥格式的风险提示,不会修改原文,也不能保证识别全部敏感数据。导出前必须由会话所有者确认,并只通过可信渠道交给获授权的接收人。

归档没有内置加密。需要跨不可信渠道传输时,应先使用组织批准的加密工具加密。

开发

npm install
npm run check

许可证

MIT