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

opencode-clip

v0.0.4

Published

Copy the last AI response to clipboard

Downloads

18

Readme

opencode-clip

Copy the last AI response to clipboard

An OpenCode plugin created from the bun-module template

Description

This OpenCode plugin provides a /clip command that copies the last AI assistant response to your clipboard with a single command.

Installation

Add following to your opencode configuration JSON file:

{
  "plugins": ["opencode-clip@latest"]
}

Usage

Once installed, you can use the /clip command in any OpenCode session:

/clip

This will:

  1. Find the last AI assistant message in the current session
  2. Copy its text content to your clipboard
  3. Show a success toast notification with the character count

Example

User: Write a function to calculate factorial
AI: Here's a factorial function in JavaScript...

User: /clip
AI: ✓ Copied

The AI response is now in your clipboard and ready to paste.

Development

Prerequisites

  • Bun 1.3.2 or later
  • mise (optional, for task running)

Setup

bun install

Test

mise run test

Lint

mise run lint
mise run lint:fix

Format

mise run format

Release

See the RELEASE.md file for instructions on how to release a new version of the plugin.

How It Works

The plugin hooks into OpenCode's command system and:

  1. Registers a /clip command with a template that tells the AI not to process the command text
  2. Intercepts the command execution via the command.execute.before hook
  3. Fetches session messages to find the most recent assistant response
  4. Copies the text content to clipboard using clipboardy
  5. Notifies the user with a toast notification (success, warning, or error)

Contributing

Contributions are welcome! Please file issues or submit pull requests on the GitHub repository.

License

See the LICENSE file for details.

Acknowledgments