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-cursor-oauth

v0.2.0

Published

Cursor OAuth provider extension for pi-coding-agent

Readme

pi-cursor-oauth

CI Version License: MIT

A pi extension that registers a cursor provider, supports Cursor browser OAuth, and forwards chat plus a limited set of Cursor exec calls through pi.

Features

  • Registers a cursor provider with the cursor-chat-api transport
  • Supports /login cursor using Cursor's browser OAuth flow
  • Uses CURSOR_ACCESS_TOKEN as the environment variable fallback
  • Ships a fallback model list so the provider is usable before live model sync
  • Refreshes usable models from Cursor with /cursor-sync-models
  • Resets cached Cursor conversation state with /cursor-reset-conversation
  • Resets session-scoped Cursor state when pi sessions start, switch, or fork

Install

pi install npm:pi-cursor-oauth

Authenticate

Inside pi:

/login cursor

Or provide a token directly:

export CURSOR_ACCESS_TOKEN=...

Sync models

The extension starts with a bundled fallback model list and can refresh the currently usable Cursor model list on demand. When Cursor credentials are available, it also attempts a quiet model sync on session start and when the Cursor model is selected.

/cursor-sync-models

Then pick a Cursor model with /model.

Commands

  • /cursor-sync-models - refresh the provider's model list from Cursor
  • /cursor-reset-conversation - clear cached Cursor conversation state

Exec bridge

This extension includes a limited Cursor exec bridge.

Supported exec calls:

  • read
  • ls
  • grep with content, files_with_matches, and count
  • write for text content
  • delete
  • shell
  • shellStream
  • requestContext

Bridge behavior notes:

  • Exec streams are explicitly closed after tool completion so Cursor does not remain stuck on working...
  • Unsupported interaction queries are answered immediately instead of being left pending
  • Cursor exec activity is best-effort mirrored into a small pi TUI widget instead of extra conversation messages
  • The pi TUI integration currently relies on a private internal-module/prototype patch into pi internals, so it is inherently brittle and may break across pi versions or internal layout changes

Current limitations:

  • Binary write via raw bytes is not supported
  • Background shell spawning is not supported
  • writeShellStdin is not supported
  • diagnostics is not supported
  • fetch is not supported
  • Generic MCP tool calls and MCP resource operations are not supported
  • recordScreen is not supported
  • computerUse is not supported

Development

bun install
bun run check
bun run build