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

dsh-replay

v0.2.0

Published

Time-travel debugger for DeepSeek Harness agents: replay, visualize, and diff a session's full trajectory from session.jsonl.zstd, plus a broken-tool-call health check.

Readme

dsh-replay — time-travel debugger for DeepSeek Harness agents

Replay, visualize, and diff a DeepSeek Harness session's full trajectory straight from session.jsonl.zstd — the ground-truth event log. No @deepseek-ai/dsh dependency; just Node ≥ 22.19 (its bundled zstd).

dsh-replay rendered timeline

Why

Debugging an agent by scrolling the terminal only shows the last N lines. dsh's session log already contains everything — every reasoning delta, every tool call, every result, with seq + timestamps — but it's a concatenated-zstd, packed-row format nobody can read by hand. dsh-replay decodes that format and renders it as a readable timeline.

What it does

  • Decode the concatenated-Zstandard container and the packed text-chunks/reasoning-chunks/tool-call-chunks rows (the exact @deepseek-ai/dsh-session wire format, re-implemented with zero deps).
  • Reconstruct turns → steps → user messages → reasoning → assistant text → tool calls with results (success/error).
  • Render a self-contained dark-mode HTML timeline.
  • Diff two sessions turn-by-turn (where did the two runs diverge?).
  • Summarize per-tool call counts, error count, and latency as JSON (--stats).

Install / run

node bin/replay.mjs <session-id> --out replay.html
# or point at a file directly
node bin/replay.mjs --file ~/.dsh/sessions/.../session.jsonl.zstd
# print a turn/tool/error summary as JSON
node bin/replay.mjs <session-id> --stats
# compare two runs
node bin/replay.mjs diff <id-a> <id-b>
# compare two runs and render a side-by-side HTML diff
node bin/replay.mjs diff <id-a> <id-b> --diff-html

Open replay.html in any browser.

Example

node bin/replay.mjs session-94b0ee6a-dbbe-4497-bf31-3d5e90a01d6a
# -> session-94b0ee6a...replay.html

Correctness

The decoder mirrors the upstream scanZstdFrames + decodeStorageRecord format. Tests cover the packed-row expansion, tool-call/result reconstruction, and the diff summarizer.

npm test

Related


dsh-replay — DeepSeek Harness agent 的"时间旅行调试器"

session.jsonl.zstd 直接回放、可视化、对比一个会话的完整轨迹。这是 dsh 的 ground-truth 事件日志,包含每次推理分片、每次工具调用、每次结果。零依赖,只需 Node ≥ 22.19。

node bin/replay.mjs <session-id> --out replay.html
node bin/replay.mjs diff <id-a> <id-b>

打开 replay.html 即可看到按 turn → step 组织的轨迹:用户消息、推理(可折叠)、回复文本、工具调用(参数 + 成功/失败结果)。