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

@raindrop-ai/cursor

v0.0.7

Published

Raindrop observability for Cursor agents via hooks

Downloads

195

Readme

@raindrop-ai/cursor

Raindrop observability for Cursor IDE, cursor-agent, and Cloud Agents. Hooks capture each turn. You do not change application code.

Install

Requires Node.js 20 or later.

npm install -g @raindrop-ai/cursor
raindrop-cursor setup

Setup writes hooks into ~/.cursor/hooks.json and a self-diagnostics MCP server into ~/.cursor/mcp.json. Existing hooks and other MCP servers stay. Setup asks for a Raindrop write key and an optional project slug. A blank project uses Production.

Cloud Agents

npx -y @raindrop-ai/cursor setup --scope project

Commit .cursor/hooks.json and .cursor/mcp.json. Project hooks pin npx -y @raindrop-ai/cursor@<version> hook to the CLI that ran setup. Rerun setup to refresh the pin.

Set RAINDROP_WRITE_KEY and RAINDROP_LOCAL_DEBUGGER=false in the Cloud Agent runtime secrets. For a named project, also set RAINDROP_PROJECT_ID.

Install in one scope per conversation.

What gets tracked

  • One ai_generation event per Cursor generation
  • Tool success and failure spans, including permission denials
  • Thinking spans
  • One model span per turn, with input, output, cache-read, and cache-write usage when Cursor provides it
  • Session usage totals and compaction metadata

Configuration

Configuration is shared with the Claude Code integration at ~/.config/raindrop/config.json.

| Environment variable | Purpose | |---|---| | RAINDROP_WRITE_KEY | Raindrop write key | | RAINDROP_API_URL | Ingest base URL; defaults to https://api.raindrop.ai/v1 | | RAINDROP_PROJECT_ID | Project override | | RAINDROP_USER_ID | User ID fallback; Cursor's user_email takes precedence | | RAINDROP_CONVO_ID | Conversation ID override | | RAINDROP_EVENT_NAME | Event name; defaults to ai_generation | | RAINDROP_PROPERTIES | JSON object merged with configured custom properties | | RAINDROP_ENABLED | false or 0 disables telemetry | | RAINDROP_DEBUG | true enables debug logging | | RAINDROP_HOOK_FLUSH_DEADLINE_MS | Whole hook deadline; defaults to 8000 ms | | RAINDROP_LOCAL_DEBUGGER | Local debugger URL, or false to disable discovery | | RAINDROP_SELF_DIAGNOSTICS | JSON object with optional signals, guidance, and toolName |

Application Git identity is reported on Cursor events and traces when it can be tied to the agent-under-test. Set app_git in ~/.config/raindrop/config.json to override commit_sha, commit_dirty, and optional branch, or set app_git: false to opt out. Cursor may observe a remote coding workspace, so the observer process's checkout and ambient CI/deployment metadata are ignored by default. Use an explicit source_directory (or RAINDROP_GIT_SOURCE_DIRECTORY) for bounded local discovery, or set RAINDROP_COMMIT_SHA directly. Branch discovery from that source directory is opt-in with detect_branch: true (or RAINDROP_GIT_DETECT_BRANCH=true).

raindrop-cursor status
raindrop-cursor disable
raindrop-cursor enable
raindrop-cursor debug-on
raindrop-cursor debug-off
raindrop-cursor uninstall
raindrop-cursor uninstall --scope project

Enable, disable, and debug commands update the shared Raindrop config that Claude Code also reads.

Local debugger

Start the Raindrop local debugger on port 5899, or set RAINDROP_LOCAL_DEBUGGER to its URL. Event patches and OTLP spans appear without a cloud write key.

setup --local-only skips requiring a write key. On Cloud Agent VMs and other shared hosts, set RAINDROP_LOCAL_DEBUGGER=false.

Self-diagnostics

raindrop-cursor mcp-serve exposes __raindrop_report. Default categories are missing context, repeated tool failures, capability gaps, complete task failure, and noteworthy observations.