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

@remixhq/cursor-plugin

v0.1.7

Published

Cursor plugin for Remix collaboration workflows

Readme

@remixhq/cursor-plugin

Cursor plugin for Remix collaboration workflows. Functional mirror of the Claude Code plugin, adapted for Cursor's hook and plugin schemas.

Install

In Cursor, open the command palette and run:

Plugins: Add Marketplace

Enter the marketplace URL:

https://github.com/RemixDotOne/remix-cursor-marketplace

Then install the remix plugin from the marketplace browser. After installation, reload Cursor's agent (close and reopen the chat panel) so the hooks and MCP server come up.

What's included

| Component | Files | Purpose | | --- | --- | --- | | MCP server | dist/mcp-server.cjs (registered via mcp.json) | Exposes the full remix_collab_* tool surface to the Cursor agent. | | Skills | skills/*/SKILL.md (9 skills) | Workflow guidance the agent can read on demand. | | Agent | agents/remix-collab.md | A specialized Remix collaboration subagent. | | Hooks | hooks/hooks.json (5 hooks) | Wires Cursor's hook events to the plugin's recording / advisory logic. |

Hook map

| Cursor event | Script | Purpose | | --- | --- | --- | | beforeSubmitPrompt | dist/hook-user-prompt.cjs | Creates per-turn pending state, surfaces recovery status, and auto-spawns branch init when hook-owned recovery is needed. | | preToolUse (matches Shell) | dist/hook-pre-git.cjs | Surfaces "prefer Remix memory over raw git" advisories on the agent message channel. | | postToolUse (matches MCP / Shell / Read / Write / Delete) | dist/hook-post-collab.cjs | Tracks which Remix-bound repos this turn touched. | | afterAgentResponse | dist/hook-after-response.cjs | Primary recorder: caches the assistant text and finalizes the completed turn into Remix. | | stop | dist/hook-stop-collab.cjs | Backstop: sweeps orphaned or queued prompts, retries pending finalization, and drains local recording queues. |

Differences vs. the Claude plugin

These are intentional — Cursor and Claude expose different hook event sets and payload schemas:

  • No prompt context injection. Cursor's beforeSubmitPrompt cannot inject "additional context" into the agent the way Claude's UserPromptSubmit could. Routing advisories ("prefer memory before git") live primarily in the bundled agents/ and skills/ markdown plus MCP tool descriptions; when useful, the hook also folds recovery/routing notes into Cursor's user_message channel. Branch-unbound recovery is hook-owned: when the prompt fires on a checked-out branch that hasn't been bound but the repo has at least one other bound branch, the hook spawns remix collab init detached and tells the user via user_message that the first turn will be recorded retroactively once init finishes.
  • Assistant response captured separately. Cursor's stop payload omits the assistant text, so the plugin uses an afterAgentResponse hook to cache the latest assistant message per conversation and finalize the turn. The cache lives next to the pending-turn state in ${TMPDIR}/remix-cursor-plugin-hooks/<conversation_id>.assistant-response.json and is cleared after a successful finalize. The stop hook remains as a sweep and retry backstop.
  • No per-turn token usage. Cursor does not yet expose token usage in any hook payload. Turns are recorded with turnUsage = null; the dashboard's "charged on" badge will read as (unknown) for Cursor turns until Cursor exposes usage.
  • No subscription-tier capture. Cursor has no equivalent of claude auth status --json. The agent.plan field is recorded as null for Cursor turns.

Local development

npm install
npm run build:local-deps   # builds @remixhq/core and @remixhq/mcp from sibling dirs
npm run build              # bundles the MCP server + 5 hook entrypoints

The build emits to dist/ with executable bits set on every .cjs entry.

Configuration

| Env var | Default | Purpose | | --- | --- | --- | | REMIX_CURSOR_PLUGIN_HOOK_STATE_ROOT | ${TMPDIR}/remix-cursor-plugin-hooks | Per-conversation pending-turn state and assistant-response cache. | | REMIX_CURSOR_PLUGIN_HOOK_DIAGNOSTICS_DIR | ~/.cursor/plugins/data/remix-remix | NDJSON hook diagnostics log + last 50 events surfaced via remix_collab_hook_diagnostics. | | CURSOR_CONFIG_DIR | ~/.cursor | Override the Cursor config root used to derive the diagnostics dir. | | CURSOR_PROJECT_DIR / CLAUDE_PROJECT_DIR | — | Final fallback when the hook payload contains no cwd or workspace_roots. |

remix-cursor-plugin