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

hashpress-opencode

v0.2.3

Published

OpenCode plugin: Transponder/hashpress-style structured compaction handoff with OpenCode anchored previous-summary merge. Does not set the compaction model.

Downloads

0

Readme

hashpress-opencode

OpenCode plugin that replaces the default compaction user prompt with a structured continuation handoff:

  • OpenCode anchored merge — re-injects <previous-summary> on repeated compacts
  • Transponder / hashpress ledgers — Pickup State, Artifact Trail, Rules, Plans, Promises, decisions+why, verbatim literals
  • Tail-evidence digest — OpenCode's summarizer only sees the session head; the newest turns are excluded from its input. The plugin digests those excluded turns into a bounded <recent-evidence> block marked authoritative for status, so a ship/release that happened in the tail flips blocked→done instead of going stale.

Does not set or override agent.compaction.model. Configure the compaction model in opencode.json as usual.

Before request lowering, the plugin also repairs malformed cross-provider tool-call IDs that contain a valid OpenAI Responses �fc_...� ID but exceed its 64-character �call_id� limit. It changes only OpenCode's cloned request history, not persisted session messages; unknown ID formats are left untouched.

Install

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["hashpress-opencode"],
  "agent": {
    "compaction": {
      "model": "your/preferred-compaction-model"
    }
  }
}

OpenCode installs npm plugins automatically on startup.

Options

{
  "plugin": [
    [
      "hashpress-opencode",
      {
        "extraContext": ["## Swarm\n- preserve bead IDs"],
        "disabled": false
      }
    ]
  ]
}

| Option | Default | Meaning | |--------|---------|---------| | disabled | false | Skip prompt replacement | | extraContext | [] | Extra strings appended after the template (merged with other plugins' output.context) |

Local / file URL (dev)

{
  "plugin": ["file:///Users/you/__devlocal/hashpress-opencode/dist/index.js"]
}
bun install
bun run build

What it changes

Hooks experimental.session.compacting and sets output.prompt to a markdown checklist the compaction agent must fill:

  1. Objective
  2. Pickup State (cwd, branch, task, next command, active files, tests, caveats)
  3. Important Details (constraints, decisions and why, exact literals)
  4. Artifact Trail (created / modified / examined)
  5. Rules and Invariants
  6. Plans and Task State
  7. Promises
  8. Work State (completed / active / blocked / ruled out)
  9. User Messages
  10. Next Move

On later compacts, the plugin loads the last finished compaction summary via client.session.messages and wraps it in <previous-summary> so the model merges instead of rewriting from scratch.

What it does not do

  • Does not pick a summarizer model (use agent.compaction.model)
  • Does not force JSON-schema tool output (OpenCode's hook only replaces prompt text)
  • Does not rehydrate verbatim transcript spans (that needs Transponder's bridge pipeline)

Develop

bun install
bun test
bun run build

License

MIT