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-rive-sidebar

v0.1.0

Published

Live Rive preview in an OpenCode Desktop side panel

Readme

opencode-rive-sidebar

Live Rive preview in an OpenCode Desktop side panel.

The panel finds the Rive project of the current session, builds it with the Rive CLI, and plays it with Rive's WebGL2 runtime. Each save rebuilds it and updates the preview. Pointer listeners and state machines respond as they do in the scene.

Requirements

  • OpenCode Desktop 2.2.5 or newer. The desktop plugin API is experimental and may change between releases.
  • The Rive CLI, installed in ~/.rive/bin or on your PATH.

Install

opencode plugin add opencode-rive-sidebar

Or add it to your global config, ~/.config/opencode/opencode.json(c):

{
  "plugins": ["opencode-rive-sidebar"],
}

Install from npm rather than a Git URL. opencode plugin add with a Git URL fails with git dep preparation failed.

Use

Open a session in a directory with a rive.yaml, then do one of these:

  • Run Toggle Rive preview from the command palette.
  • Type /rive in the composer.
  • Choose Rive preview from the side panel's + menu.

The panel looks for rive.yaml in the session's directory, then its ancestors, then two levels below it. If it finds none, or the wrong one, use Choose project….

The options menu sets the fit, and the artboard and state machine when the file has more than one. The fit is shared by all projects. The toolbar restarts the scene or rebuilds the project.

If a save fails to compile, the panel lists the errors and keeps the last good build on screen.

The plugin builds with rive <project> --once, which writes to the project's output directory (build/ by default), as rive . does.

Scripts and shaders

The panel uses a web runtime, and web runtimes won't run unsigned scripts or shaders. Local builds are unsigned, so a project with .luau, .as, or .wgsl sources shows a note with two ways forward:

  • Sign builds rebuilds with --publish=local. This needs rive login, and it uploads the project's scripts and shaders to Rive's compile service on every rebuild. It stays on until you choose Stop signing builds or the project's panels close.
  • Open native preview starts rive <project> in its own window, which runs unsigned scripts. It's also in the options menu for any project.

Differences from rive .

  • The panel defaults to the Contain fit, which suits a narrow sidebar. rive . defaults to Layout.
  • It starts the artboard's first state machine, not the artboard's default one, because the web runtime doesn't expose which one that is. Pick another from the options menu.
  • The web runtime can render differently from the native one that rive . uses.

Options

{
  "plugins": [
    {
      "package": "opencode-rive-sidebar",
      "options": { "rive": "/path/to/rive" },
    },
  ],
}
  • rive is the path to the Rive CLI, for when it's in neither ~/.rive/bin nor the app's PATH.

Develop

git clone https://github.com/jhsu/opencode-rive-sidebar.git
cd opencode-rive-sidebar
pnpm install
pnpm dev        # vite build --watch; each rebuild reloads the plugin in the app
pnpm typecheck
pnpm test

To load your checkout, put its path in plugins in your global config, for example "plugins": ["/path/to/opencode-rive-sidebar"].

Add a changeset with each change, with pnpm changeset. Merging to main opens a version PR, and merging that PR publishes to npm. The workflow needs an NPM_TOKEN repository secret.