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

opencode-research-papers

v1.4.8

Published

OpenCode plugin to search research papers from arXiv and OpenAlex with filtering by recency and citation impact

Readme

opencode-research-papers

OpenCode plugin npm version CI license: MIT

screenshot

An opencode plugin that adds a research_papers tool. This is an AI-facing tool, not a slash command — ask the AI to search for papers and it will call the tool for you.

Install. Restart. Ask for papers. It works.

Features

  • No API keys required. Uses arXiv for fresh preprints and OpenAlex for broader scholarly metadata, citation counts, and open-access links.
  • Smart auto source routing — arXiv for latest, OpenAlex for top_cited and trending, both merged when available.
  • Markdown output with title, authors, date, PDF link, abstract, and citation count where available.
  • Filter by recency (latest, trending) or citation impact (top_cited).
  • Narrow results to the past week, month, or year.
  • strict mode applies anchor + concept-group filtering to reduce loosely matched results.
  • Source-level fallback: if one source fails or is rate-limited, the other handles the request transparently.
  • arXiv requests are spaced 3 seconds apart per arXiv's public API terms.

Installation

Add this to your opencode.json:

{
  "plugin": [
    "opencode-research-papers"
  ]
}

Restart opencode. The tool registers automatically.

Updating

OpenCode caches plugin packages and does not auto-update on restart. After updating to a new version, clear the cache before restarting:

Windows (PowerShell):

Remove-Item -Recurse -Force "$env:USERPROFILE\.cache\opencode\packages\opencode-research-papers@latest"

macOS / Linux:

rm -rf ~/.cache/opencode/packages/opencode-research-papers@latest

Then restart opencode.

Usage

This is an AI tool — you do not invoke it with a slash command. Ask naturally:

"Find the latest papers on Image Segmentation"

"Show me trending Scene Text Recognition papers"

"Get top-cited Retinal Vessel Segmentation papers"

"Find 20 latest papers on Generative Adversarial Networks from the last month"

Configuration

Pass options as a tuple:

["opencode-research-papers", {
  "defaultMaxResults": 15,
  "defaultSource": "auto"
}]

| Option | Default | Description | |--------|---------|-------------| | defaultMaxResults | 10 | How many results to return (1–50) | | defaultSource | "auto" | Source routing: auto, arxiv, or openalex |

Source routing

The auto default selects the primary source per filter:

| Filter | Primary | Fallback | |--------|---------|----------| | latest | arXiv | OpenAlex | | top_cited | OpenAlex | arXiv | | trending | OpenAlex | arXiv |

Override with source: "arxiv" or source: "openalex" to use a single source.

Data Sources

arXiv

Provides fresh preprints across AI, CS, math, and physics. Delivers direct PDF links and clean metadata. No signup required. Requests are rate-limited to one per 3 seconds per arXiv's public API terms.

OpenAlex

Broader scholarly search with citation counts, DOI metadata, and open-access links. Works without an API key at 10 requests per second.

Error Handling

If one source is down or rate-limited, the plugin returns the other source's results with the specific error noted. If both fail, you receive a consolidated error message. The tool does not crash.

License

MIT

Roadmap

Potential future additions:

  • GitHub paper-list repos — Search curated repository lists (e.g. scene-text-detection-recognition-papers) alongside paper results.
  • Better deduplication — Title normalization is a rough heuristic; smarter deduplication could avoid showing the same paper twice.
  • Synonym expansion — Expand common terms in strict mode (e.g. GAN → cGAN, WGAN, StyleGAN) to improve recall.
  • Semantic strict mode — Use embeddings or cross-encoder reranking instead of keyword matching for relevance filtering.
  • Citation counts for arXiv papers — Cross-reference arXiv results with OpenAlex to retrieve citation data.