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

@telvok/librarian

v2.2.0

Published

Knowledge capture for Claude Code and MCP clients

Readme

Librarian

npm version License: MIT Downloads

A knowledge management MCP server for AI coding assistants. Capture insights, search with semantic understanding, and access a library of developer knowledge.

Installation

Plugin (full experience)

Includes MCP tools, slash commands, and hooks.

/plugin marketplace add telvokdev/librarian
/plugin install librarian@librarian

MCP only

claude mcp add librarian -- npx @telvok/librarian-mcp

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "librarian": {
      "command": "npx",
      "args": ["@telvok/librarian-mcp"]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "librarian": {
      "command": "npx",
      "args": ["@telvok/librarian-mcp"]
    }
  }
}

Add to your MCP config:

{
  "mcpServers": {
    "librarian": {
      "command": "npx",
      "args": ["@telvok/librarian-mcp"]
    }
  }
}

Or install globally:

npm install -g @telvok/librarian-mcp

Quick Start

// Search before making decisions
brief({ query: "stripe webhook handling" })

// Capture what you learned
record({
  insight: "Stripe retries webhooks but doesn't dedupe - always check idempotency key",
  context: "payments, webhooks"
})

// Mark helpful entries to boost their ranking
mark_hit({ path: "local/stripe-webhooks-need-idempotency.md" })

// Browse the library
library_search({ query: "react patterns" })

API Reference (Beta)

Local Knowledge

| Tool | Purpose | |------|---------| | brief(query?, limit?) | Semantic search across your library | | record(insight, ...) | Capture knowledge worth keeping | | adopt(path, title?) | Copy imported entry to local library | | mark_hit(path) | Mark an entry as helpful (increases ranking) | | import_memories(format, path) | Import from other AI tools | | rebuild_index(force?) | Rebuild semantic search embeddings | | delete(path?, query?, confirm?) | Delete entries from local library |

Library

Browse and publish books at telvok.com. Free and paid content supported.

| Tool | Purpose | |------|---------| | library_search(query, filters?) | Search Telvok library | | library_download(slug) | Download a free book locally | | library_publish(name, attestation, ...) | Publish entries as a book | | my_books(filter?) | View published and downloaded books | | sync(slug?, force?) | Check for updates to owned books | | rate_book(slug, rating, ...) | Rate a book (1-5 stars) | | seller_analytics() | View download stats for your books |

Bounties

| Tool | Purpose | |------|---------| | bounty_create(title, ...) | Post a knowledge request | | bounty_list(query?, tags?, status?) | Browse available bounties | | bounty_claim(bounty_id) | Claim a bounty to fulfill | | bounty_submit(bounty_id, book_slug) | Submit fulfillment | | my_bounties(role?) | View your bounties |

Account

| Tool | Purpose | |------|---------| | auth(action) | Login, logout, status, complete | | help(topic?) | Get help on any tool | | feedback(message, type?) | Send feedback |

How Search Works

Librarian uses local AI embeddings for semantic search:

You saved:   "Stripe webhooks need idempotency checks"
You search:  "handling duplicate payment events"
→ It finds it.
  • all-MiniLM-L6-v2 model (384-dim embeddings)
  • ~30MB download on first run, cached locally
  • No API calls — fully offline

Results ranked by semantic similarity, recency (60%), and hit count (40%).

Import Formats

| Format | Sources | |--------|---------| | jsonl | Anthropic MCP Memory, mcp-knowledge-graph | | markdown | Obsidian, Basic Memory MCP | | cursor | Cursor Memory Bank | | json | Simple memory servers | | sqlite | mcp-memory-service, SQLite-vec |

Authentication

  1. auth({ action: "login" }) — returns code + URL
  2. Visit telvok.com/device, enter the code
  3. auth({ action: "complete" }) — saves API key locally

Keys stored in .librarian/.auth, expire after 90 days.

Library Structure

.librarian/
├── local/        # Your entries
├── imported/     # Downloaded books
├── packages/     # Purchased content
├── archived/     # Stale but searchable
├── index.json    # Semantic embeddings
├── models/       # Cached embedding model
└── .auth         # API key (git-ignored)

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Commit changes (git commit -m 'Add my feature')
  4. Push (git push origin feature/my-feature)
  5. Open a Pull Request

License

MIT - Telvok