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

pi-opensync-plugin

v0.2.0

Published

Pi extension to sync sessions to OpenSync dashboards

Readme

pi-opensync-plugin

A pi coding agent extension that syncs sessions to OpenSync dashboards.

Requirements

Features

  • Real-time sync: Sessions and messages sync as you work
  • Fork support: Forked sessions create new OpenSync sessions with [Fork::parentId] prefix
  • Configurable: Choose what to sync (tool calls, thinking content)
  • Non-intrusive: Silent failures, optional debug logging

Installation

Install as a pi package globally:

pi install npm:pi-opensync-plugin

For project-local installation (auto-installs for teammates), use the -l flag when calling pi install:

pi install -l npm:pi-opensync-plugin

To try without installing, pass the -e flag to temporarily add it to your extensions for the duration of a session:

pi -e npm:pi-opensync-plugin

For any of the above commands, you can also use the repository URL in place of the NPM package to install:

pi install git:github.com/joshuadavidthomas/pi-opensync-plugin
# or the full URL
pi install https://github.com/joshuadavidthomas/pi-opensync-plugin

For manual installation, clone the repository to any place pi coding agent looks for extensions:

git clone https://github.com/joshuadavidthomas/pi-opensync-plugin ~/.pi/agent/extensions/pi-opensync-plugin

Configuration

Once installed, run /opensync:config in pi to interactively configure the extension. At a minimum, the Convex URL and API key from OpenSync is required -- both can be found on the settings page.

The config file is located at ~/.config/pi-opensync-plugin/config.json.

Available Options

| Config File | Environment Variable | Description | Default | Required? | |-|-|-|-|-| | apiKey | PI_OPENSYNC_API_KEY | Your OpenSync API key (osk_...) | | ✅ | | autoSync | PI_OPENSYNC_AUTO_SYNC | Enable automatic syncing | true | | | convexUrl | PI_OPENSYNC_CONVEX_URL | OpenSync Convex deployment URL | | ✅ | | debug | PI_OPENSYNC_DEBUG | Enable debug logging | false | | | syncThinking | PI_OPENSYNC_THINKING | Include thinking content | false | | | syncToolCalls | PI_OPENSYNC_TOOL_CALLS | Sync tool calls | false | |

How It Works

The extension listens to pi's lifecycle events and syncs data to OpenSync:

  1. Session Start: Creates a new session in OpenSync with project info
  2. User Input: Syncs each user message in real-time
  3. Assistant Response: Syncs assistant messages with token usage
  4. Session End: Finalizes the session with duration and totals

Fork Handling

When you fork a session in pi (/fork), the extension:

  1. Creates a new OpenSync session with title prefix [Fork::parentId]
  2. Batch-syncs all existing messages from the fork point
  3. Continues real-time syncing for new messages

This means forked sessions contain the complete conversation history, which is intentional for traceability.

Development

bun install            # Install dependencies
bun run test           # Run tests
bun run test:watch     # Run tests in watch mode
bun run typecheck      # Type check

License

pi-opensync-plugin is licensed under the MIT license. See the LICENSE file for more information.