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

pi-pubmed

v1.0.1

Published

Search PubMed and fetch article abstracts directly from Pi using NCBI E-utilities

Downloads

27

Readme

pi-pubmed

A Pi package for searching PubMed and fetching biomedical literature articles directly from your coding agent.

Features

  • Search PubMed — Find articles using full PubMed query syntax (boolean operators, field tags, MeSH terms, date ranges)
  • Fetch article details — Retrieve titles, authors, journals, publication dates, DOIs, and full abstracts
  • Zero dependencies — Uses the NCBI E-utilities REST API directly
  • Configurable — Optional API key support for higher rate limits

Installation

pi install npm:pi-pubmed

Or install from a local path:

pi install /path/to/pi-pubmed

Tools

pubmed_search

Search PubMed for articles matching a query.

| Parameter | Type | Required | Description | |----------------|----------|----------|------------------------------------------------------------------------------------| | query | string | ✅ | PubMed search query (supports boolean operators, field tags, MeSH terms) | | max_results | number | ❌ | Max results to return (1–100, default 10) | | sort_by | string | ❌ | Sort: relevance, pub_date, Author, JournalName | | date_range | string | ❌ | Date range as YYYY:YYYY or YYYY/MM:YYYY/MM |

pubmed_fetch

Fetch detailed article information for specific PubMed IDs.

| Parameter | Type | Required | Description | |-------------------|------------|----------|-------------------------------------------------| | pmids | string[] | ✅ | List of PubMed IDs to fetch | | include_abstract| boolean | ❌ | Include full abstract (default true) |

Usage Examples

Once installed, just ask Pi naturally:

Search PubMed for recent articles about CRISPR gene therapy
Find review articles about machine learning in drug discovery from the last 5 years
Fetch the abstract for PMID 38312345

Configuration (Optional)

Set environment variables for enhanced access:

| Variable | Description | |---------------|----------------------------------------------------| | NCBI_API_KEY| NCBI API key — increases rate limit to 10 req/s | | NCBI_EMAIL | Your email — helps NCBI contact you if needed |

Get a free API key at: https://www.ncbi.nlm.nih.gov/account/settings/

Package Structure

pi-pubmed/
├── package.json          # Package manifest with Pi configuration
├── extensions/
│   └── pubmed.ts         # Extension with pubmed_search & pubmed_fetch tools
├── skills/
│   └── pubmed/
│       └── SKILL.md      # Skill instructions for the agent
└── README.md

License

MIT