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-compressor

v0.1.0

Published

In-process DeepSeek Harness context compression bundle

Readme

dsh-compressor

DeepSeek Harness bundle. Compresses long tool results in-process and restores them with compressor_retrieve.

On 20 redacted real DSH sessions, Session.deriveMessages() JSON shrank by up to 20%. Official spill left verbatim. Reproduce: node scripts/measure-sessions.mjs.

Install into a DSH profile

dsh plugin forwards to pnpm in $DSH_HOME/profiles/<name>. Relative paths are resolved from the directory you run dsh in.

Local checkout

dsh plugin --profile web add ./plugins/dsh-compressor

GitHub subdirectory (plugin is not the repo root)

dsh plugin --profile web add github:lifeodyssey/dsh-compressor#path:plugins/dsh-compressor

npm (after npm publish from this directory)

dsh plugin --profile web add dsh-compressor

Confirm the layer:

dsh --profile web --dump-config

You should see # == dsh-compressor and id: dsh-compressor.

pnpm must be on PATH. Git-hosted installs may ask you to allow a prepare/build script under the profile’s pnpm-workspace.yaml (allowBuilds). This package ships prebuilt native/*.node and compiled lib/; it should not need rustc on the user’s machine.

Behavior

Hooks:

  • agent/pre-step — rewrite eligible tool/result nodes on the session surface so Session.deriveMessages() sees the crushed form
  • tools/post-execute — crush a new tool result as it is accepted

Originals: $DSH_HOME/dsh-compressor/<sha256>. Retrieve: compressor_retrieve with <<compressor:64hex>> or the bare hash.

Crushers: official Headroom Rust Log / Smart / Text / Search / Diff via napi (darwin-arm64, linux-x64-gnu). Code-aware off. Kompress off. CCR retrieve is not the user protocol.

Official DSH spill (preview + filesystem path + read/grep) is left alone.

Develop / test

pnpm install
pnpm test
pnpm typecheck

Rebuild JS after source edits: pnpm build. Rebuild the native addon only if you change Rust crushers: pnpm build:native (needs the repo’s Cargo workspace).

Publish to npm

The npm name dsh-compressor is currently free. Publish this directory, not the repository root.

pnpm install
pnpm build
# confirm files: lib/, native/*.node, cordis.patch.yml
npm publish --access public

Then users install with dsh plugin --profile web add dsh-compressor. Bump version in package.json for each release.

Requires an npm account with publish rights. Do not commit .npmrc tokens.