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.5

Published

Opencode plugin to fetch latest and trending research papers from arXiv and OpenAlex

Downloads

2,665

Readme

opencode-research-papers

OpenCode plugin npm version CI license: MIT

screenshot

An opencode plugin that adds a research_papers tool. You do not type a slash command — you ask the AI naturally and it calls the tool for you.

Install. Restart. Ask for papers. It works.

Features

  • No API keys needed. arXiv covers fresh preprints, OpenAlex covers broader scholarly metadata, citation counts, and open-access links.
  • Smart source routing — arXiv for latest papers, OpenAlex for top_cited and trending. Both run together with duplicates merged.
  • Markdown output with title, authors, date, PDF link, abstract, and citation counts where available.
  • Filter by recency (latest, trending) or citation impact (top_cited).
  • Narrow results to the past week, month, or year.
  • strict mode uses anchor + concept-group filtering to cut down loosely matched results.
  • If one source goes down or gets rate-limited, the other keeps going.
  • arXiv requests are spaced 3 seconds apart to respect their 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 pull new versions on restart. After updating, clear the cache first:

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 a tool the AI calls — you do not invoke it directly. Just 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

Options as a tuple:

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

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

Source routing

The auto default picks the best source for each filter:

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

Force a single source with source: "arxiv" or source: "openalex".

Data Sources

arXiv

Fresh preprints in AI, CS, math, and physics. Direct PDF links, clean metadata, no signup required. The plugin spaces out requests to respect arXiv's public API terms.

OpenAlex

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

Error Handling

If one source is down or rate-limited, the plugin shows what the other returned and tells you which error occurred. If both fail, you get one consolidated message. Nothing crashes.

License

MIT

Roadmap

Things I might add eventually:

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