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

@ephremyuan/citeagent

v0.4.0

Published

OpenCode plugin for CiteAgent — AI research knowledge infrastructure with Merkle-verified retrieval and citation-indexed search

Downloads

1,233

Readme

@ephremyuan/citeagent

OpenCode plugin for CiteAgent — AI research knowledge infrastructure with Merkle-verified retrieval, citation-indexed search, and trace-bound chat.

Install

bunx @ephremyuan/citeagent@latest install

The installer automatically:

  • Adds the plugin to ~/.config/opencode/opencode.jsonc
  • Deploys skills to ~/.config/opencode/skills/
  • Deploys agent configs to ~/.config/opencode/agents/
  • Deploys rules to ~/.config/opencode/rules/
  • Generates agent model mappings in ~/.config/opencode/citeagent.json

Options

| Flag | Description | |------|-------------| | --reset | Overwrite existing configuration | | --dry-run | Simulate install without writing files |

Prerequisites

# Optional: citeindex CLI for document ingestion (PDF, URL, media)
# If not installed, cite_ingest/cite_tantivy_index will warn but other tools work fine
uv tool install citeindex

# Optional: OCR support
sudo apt install tesseract-ocr

# Optional: LLM backend (for chat/generation)
# https://ollama.ai

No Python runtime required — all citation tools run natively in TypeScript.

Uninstall

  1. Remove "@ephremyuan/citeagent" from ~/.config/opencode/opencode.jsonc plugin array
  2. Remove config: rm ~/.config/opencode/citeagent.json
  3. Remove assets: rm ~/.config/opencode/skills/citeagent-*.md ~/.config/opencode/agents/citeagent-*.md ~/.config/opencode/rules/citeagent-*.md

Agents

| Agent | Mode | Description | |-------|------|-------------| | citeagent-researcher | primary | Academic research with citation-verified evidence | | citeagent-verifier | subagent (hidden) | Independent Merkle proof audit | | citeagent-explore-corpus | subagent (hidden) | Fast corpus search and browsing | | citeagent-ingestor | subagent (hidden) | Document ingestion (PDF, URL, media) | | citeagent-reviewer | subagent (hidden) | Systematic literature review |

Tools

The plugin provides 25+ tools via the native TypeScript CiteAgentEngine:

  • cite_search — BM25 full-text search
  • cite_verify — Merkle proof verification
  • cite_render — CSL citation rendering (Chicago, APA, MLA...)
  • cite_ingest — Document ingestion with Merkle hashing
  • cite_tree / cite_tree_traverse — PageIndex document tree
  • cite_argument_query — Argument graph (claims, contradictions)
  • cite_memory_* — 4-tier persistent memory (working → episodic → long_term → corpus)
  • And more (see source)

Architecture

User question
     │
     ▼
citeagent-researcher (OpenCode agent)
     │
     ├── cite_search ──→ CiteAgentEngine (TypeScript, in-process)
     ├── cite_verify ──→ CiteAgentEngine
     ├── cite_ingest ──→ citeindex CLI (optional sidecar)
     │
     ├── @citeagent-explore-corpus (OpenCode subagent)
     └── @citeagent-verifier (OpenCode subagent)

All tools except cite_ingest/cite_tantivy_index run natively in TypeScript — no Python subprocess or MCP stdio bridge required. The engine reads the on-disk corpus directly and implements BM25 search (MiniSearch), Merkle verification, CSL rendering, memory store, and audit trail in-process.

License

MIT