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

@banlan/inkstone

v0.0.7

Published

Browse and manage conversation history from Claude Code, Codex CLI, OpenCode, Reasonix, Oh My PI (omp), Pi, and DeepSeek Harness (dsh)

Readme

Inkstone · 砚录

砚台研磨墨汁,典藏对话墨迹——本地浏览、搜索与管理 AI 编程助手对话历史的 Web 应用。

直接读取本地会话文件(JSONL / SQLite),零数据库、零配置启动。

npm version Node.js License

快速开始

npx inkstone open    # 一行启动:自动开服务 + 打开浏览器

或全局安装:npm install -g inkstone,然后 inkstone open / start / stop / status

注意:若安装时出现 allow-scripts 关于 better-sqlite3 的警告(npm 安全白名单机制拦截其安装脚本),请先执行 npm config set allow-scripts=better-sqlite3 --location=user 再重装,否则 OpenCode 数据源将不可用(其余数据源不受影响)。

支持的数据源

| 数据源 | 数据路径 | |--------|---------| | Claude Code | ~/.claude/projects/ | | OpenAI Codex CLI | ~/.codex/sessions/ | | OpenCode CLI | ~/.local/share/opencode/opencode.db(SQLite) | | Reasonix (Go v1.8.1+) | %APPDATA%\reasonix / ~/.reasonix | | Oh My PI (omp) | ~/.omp/agent/sessions/ | | Pi (pi coding agent) | ~/.pi/agent/sessions/ | | DeepSeek Harness (dsh) | ~/.dsh/sessions/(zstd 压缩,需 Node ≥ 22.2) |

缺失的数据源静默跳过;新数据源可通过适配层扩展。

功能亮点

  • 统一会话列表 — 七数据源聚合,按数据源分组(Claude / Codex / OpenCode / Reasonix / OMP / Pi / DSH),按项目目录归类,收藏置顶、时间分组、分支筛选
  • 对话详情 — Markdown 渲染、可折叠 Thinking / Tool Use 块、连续 assistant 合并、分页加载
  • 搜索 — 全局全文搜索(Cmd+K)跨所有会话;会话内搜索(Cmd+F)支持正则、大小写、全字匹配
  • Diff 视图 — LCS 逐行对齐的 Side-by-Side 文件变更对比,变更块导航,可跳回原始消息
  • Prompt Library — 全局 / 项目 / 会话三级 Prompt 浏览、复用、复盘
  • 会话管理 — 重命名、标签、收藏、软删除(sidecar 存储,不修改原始 JSONL);一键在系统终端恢复 CLI 会话
  • 数据统计 — Token 用量汇总、30 天柱状图、按项目 / 模型明细
  • 时间线 — GitHub 风格活跃度热力图,按天查看会话
  • 深/浅主题 — 一键切换,localStorage 持久化

项目结构

inkstone/
  server.js              # 后端:Express + 全部 API + 五数据源解析
  bin/cli.js             # CLI 入口(open / start / stop / status / update)
  public/                # 前端 SPA(原生 JS,无框架)
    index.html · style.css · app.js
    modules/             # router / chat-view / search / stats / features /
                         # timeline / diff-view / prompts
  docs/                  # 项目文档(见下方)
  scripts/               # 构建与工具脚本(pkg 打包 / 便携版 / native 模块)

数据来源

应用只读各数据源原生会话文件,用户元数据(重命名 / 标签 / 收藏)写入各数据源下的独立 session-meta/ sidecar 目录。

详见 docs/data-storage.md

API

共 11 个后端接口,完整参考见 docs/api-reference.md/api/projects/api/sessions/api/projects/:pid/sessions-full/api/projects/:pid/sessions/:sidPUT /meta/api/search/api/stats/api/tags/api/timeline/api/prompts/api/open-terminal

文档

完整文档索引见 docs/README.md,包括:

License

CC BY-NC-SA 4.0 — 允许自由使用与修改,禁止商用,衍生作品须同协议开源。

本项目衍生自原项目 CLI History HubnameIsNoPublic/cli-history-hub,作者 br_work)。在保留原协议与版权声明的前提下,本项目扩展了 OpenCode / Reasonix / Oh My PI 三个数据源,并重构了大量后端解析与前端交互逻辑;原作品版权归 br_work 所有。