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

@possumtech/rummy.repo

v2.2.4

Published

Rummy plugin for symbol extraction via antlrmap and ctags

Readme

rummy.repo

File scanning and symbol extraction plugin for Rummy. Discovers project files via git, syncs them into the known store, and extracts symbols using antlrmap (formal ANTLR4 grammars) with Universal Ctags as a fallback.

Antlrmap relies on ANTLR4's Grammar Zoo, mapping the symbol extraction process from formal EBNF grammars. More academically rigorous than tree-sitter heuristics, more accurate than ctags regex patterns, and more amenable to obscure and domain-specific languages. Don't like it? This is why symbol extraction is a plugin -- swap it out.

What It Does

Every turn, this plugin:

  1. Enumerates project files from git (via CLI git, with isomorphic-git fallback)
  2. Stats and hashes files to detect changes since the last scan
  3. Extracts symbols inline from changed files during the scan
  4. Writes file entries to the store with symbols attached as attributes
  5. Generates diffs for files that changed since the last scan
  6. Removes entries for files deleted from disk
  7. Writes a one-shot log://turn_0/repo/manifest entry listing every file with its token cost (turn 0 only)

Files start at "archived" visibility regardless of constraint type -- a 5000-file repo doesn't dump its full content into context. The model orients via log://turn_0/repo/manifest (a flat path list with token costs, written once at turn 0 and never rewritten) and promotes files to "summarized" (symbol tree) or "visible" (full content) as needed. The plugin preserves the model's visibility choices across re-scans.

Supported Languages

Antlrmap provides grammar-based parsing for 36+ languages: JavaScript, TypeScript, Python, Rust, Go, Java, C, C++, Kotlin, PHP, Lua, SQL, Dart, Scala, Clojure, Elixir, Zig, R, Objective-C, Verilog, VHDL, Terraform, Fortran, Erlang, Thrift, GraphQL, AWK, JSON, TOML, Dockerfile, and more.

Files with unsupported extensions fall back to Universal Ctags (if installed).

Installation

Configure via environment variable in your .env:

RUMMY_PLUGIN_REPO=@possumtech/rummy.repo

Install the package:

npm install @possumtech/rummy.repo

Rummy loads external plugins from RUMMY_PLUGIN_* env vars on startup. No other configuration required.

Usage

The plugin registers automatically via the Rummy v2 plugin contract. No manual setup needed.

import RummyRepo from "@possumtech/rummy.repo";
new RummyRepo(core);

Optional Dependencies

  • isomorphic-git -- Pure JS git implementation. Used as a fallback when CLI git is not available. CLI git is preferred when present.
  • Universal Ctags -- Fallback symbol extractor for languages not supported by antlrmap. Not required.

Development

npm test          # lint + unit tests (80% coverage threshold)
npm run lint      # biome check

Requires Node.js >= 25.

License

MIT -- PossumTech Laboratories