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

zotero-bridge

v0.2.1

Published

Agent-friendly CLI for Zotero via JS Bridge. Clean JSON, always.

Readme

zotero-bridge

Agent-friendly CLI for Zotero via JS Bridge. Clean JSON, always.

A thin Node.js CLI that talks directly to Zotero's JS Bridge plugin endpoint. Designed for AI agents (Claude, GPT, Gemini, etc.) that need reliable, structured access to Zotero libraries.

Why

Existing Zotero CLI tools produce inconsistent output (NDJSON, mixed formats), have poor error messages, and break in agent workflows. zotero-bridge fixes this:

  • Always valid JSON — every command returns a JSON object or array
  • Structured errors{"error": "...", "hint": "..."} tells agents what went wrong and how to fix it
  • Detailed help — every command has description, examples, and option docs
  • Minimal — 3 files, ~400 lines, one dependency (commander)

Prerequisites

  1. Zotero desktop must be running
  2. CLI Bridge plugin must be installed in Zotero — install the .xpi from cli-anything-zotero via zotero-cli app install-plugin, or manually

Install

npm install -g zotero-bridge

Commands

zotero-bridge ping                     Check Zotero connection
zotero-bridge search <query>           Search items by title
zotero-bridge search-fulltext <query>  Search PDF full text
zotero-bridge item <key>               Get full item metadata
zotero-bridge read <key>               Extract PDF full text
zotero-bridge tags <key>               List tags on an item
zotero-bridge tag-add <key> <tags...>  Add tags
zotero-bridge tag-rm <key> <tags...>   Remove tags
zotero-bridge annotations <key>        Read PDF annotations
zotero-bridge import-doi <doi>         Import paper by DOI
zotero-bridge collections              Show collection tree
zotero-bridge collection-items <key>   List items in collection
zotero-bridge collection-create <name> Create collection
zotero-bridge find-pdf <key>           Trigger PDF download
zotero-bridge note <key> <text>        Add child note
zotero-bridge vocab                    Show tag vocabulary
zotero-bridge sync                     Trigger Zotero sync
zotero-bridge js <code>                Execute raw JavaScript

Run zotero-bridge help <command> for detailed usage and examples.

Architecture

zotero-bridge (Node.js CLI)
    ↓ HTTP POST text/plain → localhost:23119/cli-bridge/eval
CLI Bridge plugin (.xpi in Zotero)
    ↓ eval() in Zotero's privileged JS context
Zotero database

The CLI sends JavaScript code to Zotero's JS Bridge endpoint and parses the JSON response. All Zotero API operations happen inside Zotero itself — the CLI is a thin transport layer.

License

MIT