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

@fbraza/pi-cite

v2.0.0

Published

Pi extension with PubMed, Zotero, and literature search tools.

Readme

@fbraza/pi-cite

A Pi extension and bundled skill for literature research. It searches PubMed and Zotero, retrieves open-access article sections from Europe PMC, and helps turn evidence into structured reviews.

Install

Requires Pi 1.0.1 or later within v1 and Node.js 22.19.0 or later.

Install for Pi with:

pi install npm:@fbraza/pi-cite

Or load it for one session without changing your settings:

pi -e npm:@fbraza/pi-cite

Set NCBI_API_KEY for PubMed rate limits. Set ZOTERO_API_KEY to search your Zotero library and flag PubMed results you already own; Zotero access is read-only.

Features

  • PubMed search with MeSH, title/abstract, publication-type, and Boolean queries.
  • Zotero search by title, creator, year, or indexed full text.
  • Europe PMC full text for open-access articles, addressed by DOI, PMID, or PMCID. Returns structured section excerpts with licensing, source, and truncation details.
  • Literature skill for focused searches, citation verification, experiment extraction, and evidence-based synthesis. Full-text use is opt-in.

Example

After installing, ask Pi:

Find recent preclinical studies of NLRP3 inhibition in Alzheimer’s disease. Search PubMed, check which papers are in my Zotero library, and retrieve Europe PMC sections for the most relevant open-access papers.

The extension provides literature_search, pubmed_search, zotero_search, and europe_pmc_fulltext tools for this workflow.

Codemode (optional)

Tools work directly by default. When Pi's codemode is active, default literature tools are available to scripts under the literature namespace. Registered-but-inactive codemode does not change this behavior. Explicit tool selections are preserved; the extension never enables codemode for you.

To enable codemode without restricting the tool registry, use Pi settings:

{
  "defaultTools": ["+codemode"]
}

Codemode search calls return structured objects; access result.papers directly. Full-text calls return status: "full_text" with sections or status: "unavailable" with a fallback recommendation (not an automatically fetched abstract).

const result = await tools.literature_search({
  pubmed_query: 'NLRP3[tiab] AND "Alzheimer Disease"[mh]',
  max_results: 10,
});
text(result.papers.map(paper => ({ title: paper.title, pmid: paper.pmid })));

Large direct results provide evidence previews and a path to complete JSON. Follow that path with read or bash before relying on omitted evidence; copy the file into your review folder if you need to keep it.

Development

npm ci
npm test
npm run typecheck
npm run pack:check

The test suite also requires python3 for the bundled literature scripts.

See CHANGELOG.md for changes and migration notes.