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

bibguard

v0.3.0

Published

Detect hallucinated and broken citations in academic papers

Readme

bibguard

npm version License

Detect hallucinated and broken citations in academic papers.

TypeScript implementation — works in Node.js (>=18) and modern browsers. Zero dependencies.

npx bibguard paper.bib

Install

# CLI (no install needed)
npx bibguard paper.bib

# As a library
npm install bibguard

CLI Usage

npx bibguard references.bib
npx bibguard references.bib --json --out report.json

Library Usage

import { parseBib, verifyAll } from "bibguard";

// Parse .bib text
const entries = parseBib(bibFileContent);

// Verify all entries (with progress callback)
const results = await verifyAll(entries, (i, total, key, status) => {
  console.log(`[${i}/${total}] ${key}: ${status}`);
});

// Check results
for (const r of results) {
  if (r.overall === "FAIL") {
    console.log(`${r.key}: ${r.checks.filter(c => c.status === "FAIL").map(c => c.field).join(", ")}`);
  }
}

Browser Usage

All 5 API sources support CORS — bibguard works directly in the browser without a proxy:

<script type="module">
  import { parseBib, verifyEntry } from "https://esm.sh/bibguard";

  const bib = `@article{test, title={Attention Is All You Need}, author={Vaswani}, year={2017}}`;
  const entries = parseBib(bib);
  const result = await verifyEntry(entries[0]);
  console.log(result.overall, result.sourcesHit);
</script>

This makes it possible to build:

  • Browser extensions for reviewing papers
  • Overleaf plugins for real-time citation checking
  • Zotero/Mendeley integrations
  • VS Code extensions for .bib file validation

API Sources

| Source | Lookup | CORS | Coverage | |--------|--------|------|----------| | arXiv | ID resolution | Yes | CS, Physics, Math | | Crossref | DOI resolution | Yes | 150M+ records | | DBLP | Title search | Yes | CS papers | | Semantic Scholar | Title search | Yes | 200M+ papers | | OpenAlex | Title search | Yes | 250M+ works |

All queries respect rate limits. No API keys required.

Features

  • Phantom ID detection: DOI/arXiv that looks valid but doesn't resolve
  • Kill-shot logic: Phantom IDs can never be overridden by search results
  • Author guard: Stricter matching when phantom IDs are detected
  • Auto-fix suggestions: Missing DOIs collected from API results
  • Zero dependencies: Only uses fetch (built into Node 18+ and browsers)

Also available in Python

pip install bibguard

See bibguard (Python) for the full Python version with TeX cross-audit, duplicate detection, Markdown reports, and .bib auto-fix.

Related

  • IntegriRef — Full L0-L4 verification stack (semantic NLI, citation graph, Bayesian risk)

License

Apache License 2.0

bibguard (TypeScript 版)

TypeScript 实现的学术引用验证工具。支持 Node.js 和浏览器环境,零依赖。

npx bibguard paper.bib

所有 5 个 API 源均支持 CORS,可直接在浏览器中运行——适合构建审稿人插件、Overleaf 扩展、Zotero 集成等。

Python 版请使用 pip install bibguard