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-embedded-compat

v0.1.0

Published

Guarded Pi compatibility shim for Cursor SDK module resolution in embedded hosts.

Downloads

164

Readme

Pi Cursor Embedded Compatibility

CI Publish npm version npm downloads License: MIT Pi package Trusted Publishing

Guard the embedded Pi Cursor SDK request path against known ESM/CJS module-resolution failures.

What this is

pi-cursor-embedded-compat is a narrow Pi extension for embedded Pi hosts that load the Cursor SDK through pi-cursor-sdk. It applies one version- and hash-guarded compatibility transform to the known @connectrpc/connect request-time module shape, then leaves Cursor provider routing unchanged.

This is a temporary compatibility boundary. It does not replace Cursor authentication, register another provider, retry requests, or perform model fallback.

Features

  • Exact dependency-graph and content-hash support registry.
  • Namespace import plus default.protoBase64 fallback for the known failure.
  • Atomic write, read-back verification, idempotency, and fail-closed unknown-signature handling.
  • Bounded structured stderr diagnostics without secrets or source-file contents.
  • Secret-free fixtures plus an opt-in live marker-only canary path.

Install

pi install npm:pi-cursor-embedded-compat

Load it before pi-cursor-sdk in an embedded Cursor profile:

["--no-extensions", "-e", "npm:[email protected]", "-e", "npm:pi-cursor-sdk"]

The extension performs its check when loaded. It does not expose a command or tool.

Diagnostics

Successful outcomes use patched, already_patched, upstream_fixed, or not_applicable. Failures use bounded codes such as unsupported_graph, signature_mismatch, write_failed, or verify_failed.

Example shape:

[cursor_compat] {"source":"pi-cursor-embedded-compat","action":"patched","entryId":"connect-1.7.0-pi-cursor-sdk-0.2.0","target":"dist/esm/http-headers.js","graph":{"piCursorSdk":"0.2.0","cursorSdk":"1.0.23","connect":"1.7.0","protobuf":"1.10.0"}}

An unknown failing signature stops the shim without modifying the file. Rollback is performed by reinstalling the dependency tree; the shim does not keep third-party backups.

Development

npm install
npm run ci

The live canary is intentionally not part of CI. Run it only from an existing Pi/Multica secret boundary; never paste or print a Cursor API key.

Release

This package uses npm Trusted Publishing with GitHub Actions OIDC. No NPM_TOKEN is required.

npm version patch
git push

See docs/release.md.

Security

Pi packages execute with the local user's permissions. This package writes one exact dependency file after verifying its version and content hash. Review the support registry before installing. Do not run the live canary with a credential outside the existing secret boundary.

Links

  • npm: https://www.npmjs.com/package/pi-cursor-embedded-compat
  • GitHub: https://github.com/eiei114/pi-cursor-embedded-compat
  • Issues: https://github.com/eiei114/pi-cursor-embedded-compat/issues
  • Upstream incident: https://github.com/fitchmultz/pi-cursor-sdk/issues/233

License

MIT