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

@anscribe/mcp

v1.0.1

Published

Anscribe MCP server: SQLite-backed Capture Store + stdio MCP server that exposes pending Captures to AI coding agents.

Readme

@anscribe/mcp

SQLite-backed Capture Store + anscribe-mcp stdio server. Lets AI coding agents pull pending Anscribe Captures and resolve them.

Used with @anscribe/opentui when you want agents to pull pending Captures from a project-local queue. Clipboard handoff still happens — the MCP sink is additive.

Install

bun add @anscribe/mcp

Then add a single side-effect import at the top of your entry file:

import "@anscribe/mcp/sink";

import { installCapture } from "@anscribe/opentui";
import { createCliRenderer } from "@opentui/core";

const renderer = await createCliRenderer({ useMouse: true });
installCapture(renderer, { keybinding: "ctrl+g" });
import "@anscribe/opentui/react/preload";
import "@anscribe/mcp/sink";

import { Anscribe } from "@anscribe/opentui/react";

<Anscribe keybinding="ctrl+g" />

The side-effect import registers the SQLite Capture Store sink in @anscribe/core's shared sink registry before installCapture snapshots it. On first capture commit, Anscribe opens a project-local Capture Store at <project>/.anscribe/captures.sqlite and writes a <project>/.anscribe/.gitignore so the directory is auto-protected. An existing .gitignore is preserved untouched.

Custom project root

For tests, multi-tenant runners, or any setup where process.cwd() isn't the right anchor, register the sink programmatically with an explicit projectRoot:

import { registerCaptureSink } from "@anscribe/core";
import { mcpSink } from "@anscribe/mcp";

registerCaptureSink(mcpSink({ projectRoot: "/path/to/project" }));

This mirrors the anscribe-mcp bin's --project flag — both walk up from the supplied path to find a .git or workspace marker, then open the store under .anscribe/captures.sqlite.

Register the server with your agent

The anscribe-mcp binary speaks MCP over stdio.

The easiest cross-agent path is add-mcp, which auto-detects installed agents (Claude Code, Cursor, Codex, Windsurf, opencode, and others) and patches their config files:

npx add-mcp @anscribe/mcp

Or configure manually. The exact shape depends on your agent — examples:

Claude Code (~/.claude.json):

{
  "mcpServers": {
    "anscribe": {
      "command": "anscribe-mcp"
    }
  }
}

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "anscribe": {
      "command": "anscribe-mcp"
    }
  }
}

Project resolution

anscribe-mcp reads pending Captures from a project-local .anscribe/captures.sqlite. The project root is resolved in this order:

  1. --project <path> CLI flag (highest precedence)
  2. ANSCRIBE_PROJECT_ROOT environment variable
  3. process.cwd() (default)

On startup the server logs the resolved paths to stderr so you can confirm which store is in use:

anscribe-mcp: project root = /Users/you/projects/my-tui
anscribe-mcp: store        = /Users/you/projects/my-tui/.anscribe/captures.sqlite

If the resolved path doesn't exist, the server fails fast with a typed error before MCP initialization.

Most agents launch MCP servers from the project directory, so the default works without flags. Override when you need to point at a different workspace (e.g. a long-running global server, a CI runner, or a sandboxed environment).

MCP tools

| Tool | Description | |---|---| | list_pending_captures | Return pending Captures with developer instructions and selected targets. Each target carries type, terminal-cell bounds, ancestry, visible content, optional runtime metadata (componentName, componentPath, identifier), and optional source references. | | resolve_capture | Mark a Capture resolved. Takes { captureId: string }. |

The store is append-only-by-status: resolving a Capture flips its status but preserves the row. Use the store directly via the CaptureStore service if you need to query resolved Captures from your own tooling.

Programmatic use

import {
  CaptureStore,
  makeCaptureStorePersistence,
  mcpSink,
  runAnscribeMcpServer,
} from "@anscribe/mcp";
  • mcpSink({ projectRoot? }) — the sink factory used by @anscribe/mcp/sink under the hood. Pair with registerCaptureSink from @anscribe/core for dynamic registration.
  • CaptureStore.liveContext.Service layer pointing at process.cwd()/.anscribe/captures.sqlite.
  • CaptureStore.layer({ projectRoot }) — factory variant; resolves the store path against an explicit project root.
  • makeCaptureStorePersistence({ projectRoot? }) — lower-level vanilla { write, close } writer used internally by mcpSink. Useful if you're wiring your own sink wrapper.
  • runAnscribeMcpServer({ name?, version?, transport? }) — Effect-returning MCP server bootstrap. Defaults to StdioServerTransport.

License

MIT © msmps