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

@web-remarq/mcp

v0.2.0

Published

MCP server for web-remarq - gives AI agents access to annotations via a local file store or Supabase cloud backend

Readme

@web-remarq/mcp

MCP server for web-remarq — gives AI agents (Claude Code, Cursor, Codex, Windsurf) direct access to project annotations. Two modes: local (zero-config, file-backed, no account needed) and cloud (Supabase-backed via @web-remarq/cloud, for team sync).

What it does

  • Lists annotations with filters by route, status, viewport, or file substring
  • Returns full annotation details including source: { file, line, column } for the annotated element and grep-friendly search hints
  • Drives the lifecycle: acknowledge (pending → in-progress), claim_fix (→ fixed_unverified), dismiss (with optional reason)
  • watch_annotations long-polls for new pending feedback, so an agent can sit in a loop and react as a designer annotates
  • All MCP-driven changes are recorded as actor: 'agent' in the annotation's lifecycle history, visible in the widget's History viewer

verify and reject are not exposed — verification is human-only via the browser widget, by design (core v0.7.0 verification gate).

Local mode (no Supabase)

Run with no REMARQ_* cloud env vars set and the server starts in local mode automatically:

{
  "mcpServers": {
    "web-remarq": {
      "command": "npx",
      "args": ["-y", "@web-remarq/mcp"]
    }
  }
}

Annotations are stored in a JSON file on disk and served to the widget over a small HTTP endpoint on 127.0.0.1. No Supabase project, no project key.

Trust model: the endpoint binds to 127.0.0.1 with permissive CORS, so any page open in the local browser can reach it for as long as the server runs - this is meant for dev-time use with low-sensitivity data, not a hardened local API.

| Env var | Default | Purpose | |---------|---------|---------| | REMARQ_PORT | 1817 | Port for the widget-facing HTTP endpoint | | REMARQ_DATA_FILE | .remarq/annotations.json | Where annotations are persisted |

.remarq/ self-gitignores on first write - nothing to add to your project's .gitignore by hand.

On the widget side, pair it with HttpStorageAdapter and submitFlow:

import { WebRemarq, HttpStorageAdapter } from 'web-remarq'
WebRemarq.init({ submitFlow: true, storage: new HttpStorageAdapter() })

Watching for new feedback

watch_annotations returns immediately if pending annotations already exist; otherwise it blocks (long-poll) until one appears or timeoutSeconds elapses (default 25, max 120), then returns { annotations: [], total: 0, timedOut: true }. Drafts are never delivered by watch_annotations - only annotations a designer has submitted. list_annotations / get_annotation can still return drafts when queried directly. Typical agent loop:

loop:
  result = watch_annotations({ timeoutSeconds: 25 })
  if result.timedOut: continue
  for each annotation in result.annotations:
    acknowledge({ id: annotation.id })   # stop it from being redelivered
    ... work the fix ...

Cloud mode prerequisites

  1. A Supabase project provisioned with @web-remarq/cloud (≥0.2.0). Run both 001_init.sql and 002_lifecycle.sql from the cloud package.
  2. A project key generated via npx @web-remarq/cloud gen-key --name "...".

Configuration

Add to your editor's MCP config. For Claude Code: use claude mcp add CLI or edit ~/.claude.json directly. For Cursor: ~/.cursor/mcp.json. Other editors: consult their MCP setup docs. The JSON shape is the same across editors:

{
  "mcpServers": {
    "web-remarq": {
      "command": "npx",
      "args": ["-y", "@web-remarq/mcp"],
      "env": {
        "REMARQ_PROJECT_KEY": "pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "REMARQ_SUPABASE_URL": "https://abc.supabase.co",
        "REMARQ_SUPABASE_ANON_KEY": "eyJ..."
      }
    }
  }
}

Setting any one of REMARQ_PROJECT_KEY / REMARQ_SUPABASE_URL / REMARQ_SUPABASE_ANON_KEY switches the server to cloud mode, and then all three are required - the server exits with code 1 and a clear stderr message if any are missing or malformed. Leave all three unset for local mode.

Tools

| Tool | Input | Returns | |------|-------|---------| | list_annotations | { route?, status?, viewportBucket?, file?, limit? } | { annotations[], total } - status accepts draft, pending, in_progress, fixed_unverified, verified, dismissed; each item carries quality (clear | ambiguous | unactionable) when an AI pre-flight check ran | | get_annotation | { id } | Full AgentAnnotation shape (source + searchHints + lifecycle + qualityCheck when present) | | acknowledge | { id } | { ok, status } after pending → in_progress | | claim_fix | { id } | { ok, status } after pending\|in_progress → fixed_unverified | | dismiss | { id, reason? } | { ok, status } after non-terminal → dismissed | | watch_annotations | { timeoutSeconds? } (1-120, default 25) | { annotations[], total, timedOut } - long-polls for new pending annotations |

When qualityCheck.score is ambiguous or unactionable, the comment likely needs designer clarification — prefer dismiss with a reason over guessing at intent.

Error codes

  • annotation_not_found — id absent in project (also returned if RLS hides it)
  • invalid_transition — lifecycle action not allowed from current status; payload includes currentStatus
  • storage_error - Supabase / network failure in cloud mode, or a local file-store error (e.g. corrupted store) in local mode; payload includes root cause
  • validation_error — input failed zod schema (auto from MCP SDK)

License

MIT