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

@pippit-bridge/opencode-provider

v0.1.1

Published

OpenCode auth and native video tools for Pippit (小云雀)

Readme

@pippit-bridge/opencode-provider

OpenCode plugin for Pippit (小云雀) video generation. It uses OpenCode's standard plugin surfaces:

  • auth hook for /connect and opencode auth login
  • pippit_manage_access_keys for multi-account configuration, listing, switching, and deletion
  • pippit_generate_video and pippit_get_video native tools
  • the shared Pippit model catalog from this monorepo

Pippit's current public API is an asynchronous media API, not an AI SDK language model. The package therefore does not pretend that a video model implements OpenCode's LanguageModelV3 contract.

Install

Install the package into the global OpenCode config:

opencode plugin @pippit-bridge/opencode-provider --global

Or add it to the global or project OpenCode config:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@pippit-bridge/opencode-provider"]
}

Ask OpenCode to configure a named Pippit account. pippit_manage_access_keys with operation: "configure" returns https://xyq.jianying.com and tells the user to sign in to the target account and issue an AK from the top of the page. The tool never accepts the AK itself. After issuance, run /connect, select Pippit, and paste the AK into OpenCode's hidden password prompt. The pending configure operation supplies the non-secret local account name; /connect only handles the secret.

OpenCode 1.18.3 stores only one credential per provider ID. To preserve older accounts when /connect imports another key, this plugin keeps a global keyring at <OpenCode state>/pippit/access-keys.json; it is outside every project/worktree, uses a 0700 directory and 0600 atomically replaced file, and is plaintext under the same local-user threat boundary as OpenCode's auth.json. The plugin does not read cookies, watch the clipboard, or accept raw AKs through normal tool arguments.

opencode auth logout pippit only clears OpenCode's single import slot. Use pippit_manage_access_keys delete to remove an AK from the multi-account keyring, and revoke it at the top-of-page AK management entry on the Pippit website when it must become invalid immediately.

Use pippit_manage_access_keys with:

  • operation: "list" to return only account IDs, user-defined names, masked AKs, and active state.
  • operation: "switch" plus account_id or account_name to select the account for new runs.
  • operation: "delete" plus account_id or account_name to delete a local AK. Switch away before deleting an active account when other accounts remain. The result reports how many saved run bindings are affected. Local deletion does not revoke the key on the Pippit website.

For CI or a short-lived isolated environment, PIPPIT_ACCESS_KEY is also supported. It overrides the selected local account for new or otherwise unbound operations; all management results report the override instead of claiming the local selection is effective. A persisted managed-account run binding takes precedence when polling an existing run, so a later environment change cannot silently cross account scope.

Use

Ask OpenCode to generate a Pippit video. The plugin asks on every potentially billable submission and separately before downloading into the worktree; neither permission can be permanently allowed. The API origin is pinned to the official Pippit origin. HTTP(S) references receive private-network and media-signature checks. Local references and output directories are constrained to the current worktree, and repeated downloads choose a collision-safe filename without overwriting existing files.

Every managed-account submission attempts to pin run_id + thread_id to the account used for submission. Switching accounts affects new runs; polling an existing bound run resolves its original account. If persistence fails after the upstream submission succeeds, the generation result is still returned with account_binding_persisted: false, a do-not-retry warning, and the account_id that can be supplied to a later get operation. If the bound account has been deleted, polling fails closed instead of silently using another AK.

The default output directory is .pippit/outputs.

Website one-click binding

When Pippit exposes the device-authorization contract described in docs/opencode-ak-binding.md, enable it with plugin options:

{
  "plugin": [
    [
      "@pippit-bridge/opencode-provider",
      {
        "deviceAuthorization": {
          "authorizationURL": "https://xyq.jianying.com/developer/ak/device_authorization",
          "tokenURL": "https://xyq.jianying.com/developer/ak/token",
          "clientID": "pippit-opencode",
          "scope": "asset.upload video.generate video.read"
        }
      }
    ]
  ]
}

The browser only receives a short-lived device grant. The Access Key is returned to the waiting plugin over HTTPS, then imported into the same global multi-account keyring; it is never placed in a redirect URL.