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

@ncbijs/icite

v0.1.1

Published

Typed client for the NIH iCite API — citation metrics, Relative Citation Ratio, and impact analysis

Readme

@ncbijs/icite

Runtime: Browser + Node.js

Typed client for the NIH iCite API. Retrieve citation metrics including Relative Citation Ratio (RCR), NIH percentile, and clinical citation data for PubMed articles.

Installation

npm install @ncbijs/icite

Usage

import { ICite } from '@ncbijs/icite';

const icite = new ICite();

const pubs = await icite.publications([33533846, 25613900]);
for (const pub of pubs) {
  console.log(`${pub.pmid}: RCR=${pub.relativeCitationRatio}, cited by ${pub.citedByCount}`);
}

API

new ICite(config?)

| Option | Default | Description | | ------------ | ------- | ----------------------------------- | | maxRetries | 3 | Number of retries on 429/5xx errors |

iCite is a fully public API with no API key required. Rate limit: 2 requests/second.

Publications

publications(pmids: ReadonlyArray<number>): Promise<ReadonlyArray<ICitePublication>>

Get citation metrics for up to 1000 PMIDs in a single request.

citedBy(pmid: number): Promise<ReadonlyArray<ICitePublication>>

Fetch full citation metrics for all publications that cite a given article. Retrieves the source article first, then batch-fetches metrics for every citing PMID.

references(pmid: number): Promise<ReadonlyArray<ICitePublication>>

Fetch full citation metrics for all publications referenced by a given article. Retrieves the source article first, then batch-fetches metrics for every referenced PMID.

Bulk CSV parsing

Parse iCite Figshare monthly CSV snapshots without making any API calls:

import { parseIciteCsv } from '@ncbijs/icite';
import * as fs from 'node:fs';

const publications = parseIciteCsv(fs.readFileSync('icite.csv', 'utf-8'));

parseIciteCsv(csv)

Parses an iCite Figshare monthly CSV snapshot and returns ReadonlyArray<ICitePublication>.

Download snapshots from figshare.com/articles/dataset/iCite_Database_Snapshots.

Error handling

import { ICite, ICiteHttpError } from '@ncbijs/icite';

try {
  await icite.publications([0]);
} catch (err) {
  if (err instanceof ICiteHttpError) {
    console.error(`HTTP ${err.status}: ${err.body}`);
  }
}

The client automatically retries on HTTP 429, 500, 502, 503 and network errors with exponential backoff + jitter. iCite is rate-limited to 2 requests/second.

Response types

ICitePublication

interface ICitePublication {
  pmid: number;
  year: number;
  title: string;
  authors: string;
  journal: string;
  isResearchArticle: boolean;
  relativeCitationRatio: number | undefined;
  nihPercentile: number | undefined;
  citedByCount: number;
  referencesCount: number;
  expectedCitationsPerYear: number | undefined;
  fieldCitationRate: number | undefined;
  citationsPerYear: number | undefined;
  isClinical: boolean;
  provisional: boolean;
  human: number;
  animal: number;
  molecularCellular: number;
  apt: number;
  citedByPmids: Array<number>;
  citedByClinicalPmids: Array<number>;
  referencesPmids: Array<number>;
  doi: string;
}