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

@qalarc/qtk-plugin

v0.3.1

Published

opencode plugin: deterministic, in-process token compression for tool outputs. Downstream of RTK (rtk-ai/rtk).

Readme

@qalarc/qtk-plugin

opencode plugin for deterministic, in-process token compression of tool outputs. Downstream of RTK (rtk-ai/rtk).

This is the npm-publishable package containing the TypeScript opencode plugin. The full project (including the Rust sidecar qtk-core, the RTK filter import script, and all docs) lives at:

https://github.com/qalarc/QTK

If you're not using opencode specifically, you almost certainly want RTK instead — RTK supports 13 AI coding tools (Claude Code, Cursor, Gemini CLI, Copilot, OpenCode, Codex, Windsurf, Cline, Roo Code, OpenClaw, Hermes, Kilo Code, and Google Antigravity) and ships a 100+ filter corpus.

Install

cd /path/to/your/opencode-project
bun add @qalarc/qtk-plugin

Then register it in .opencode/opencode.jsonc:

{
  "plugin": [
    "@qalarc/qtk-plugin"
  ]
}

Restart opencode. You should see [qtk] active — N compressors registered.

What it does

QTK hooks tool.execute.after in opencode and silently rewrites tool outputs to a compact form before the model sees them. Typical compression: 60-99% reduction on git status, ls -la, rg, pytest, cargo, Read, Grep, Glob tool calls.

For per-project custom compressors, drop TOML files into .opencode/qtk/filters/. Format is intentionally compatible with RTK's filter DSL.

For heavy parsers (JUnit XML, terraform plan, kubectl YAML/JSON, cargo JSON), install the optional qtk-core Rust binary too. The plugin auto-detects it; if missing, it just falls back to the TypeScript compressors silently.

Docs

  • Full README: https://github.com/qalarc/QTK
  • Filter DSL reference: https://github.com/qalarc/QTK/blob/main/docs/FILTER-DSL.md
  • Integration guide: https://github.com/qalarc/QTK/blob/main/docs/INTEGRATION.md
  • vs RTK comparison: https://github.com/qalarc/QTK/blob/main/docs/RTK-COMPARISON.md

License

MIT.

QTK derives its TOML filter DSL from RTK (Rust Token Killer) by Patrick Szymkowiak, Florian Bruniaux, Adrien Eppling and the RTK contributors. Apache-2.0. See the LICENSE file in this package for the full attribution NOTICE.