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

@rigline/core

v1.0.0-alpha.10

Published

Harvest, codegen, injection and the update flow for Rigline, as a Node library

Readme

@rigline/core

The Node library behind Rigline, a plugin layer for the Claude Code VS Code extension.

If you want to use Rigline, install rigline instead. It fetches this package for you and runs it; that is the whole of what it does.

This is the engine. It carries the loader that gets injected, the four first-party plugins, and every command that reads or drives an installed extension. rigline is a retrieval layer above it, because a process cannot replace the package it is running out of.

What it injects into, and on whose terms, is Anthropic compliance.

npm install -D @rigline/core

Declare it if you are writing plugins, and never rigline: a project that can declare dependencies does not need a delivery mechanism. npm create rigline-plugin scaffolds a workspace that way.

The command

It carries a bin, rigline-engine, which answers every verb rigline does except update — that one belongs to the layer above, for the reason this package is separate from it.

rigline-engine --help

In a plugin workspace it is what build and codegen run:

"scripts": {
  "codegen": "rigline-engine codegen",
  "build": "rigline-engine build"
}

build resolves rolldown lazily, from wherever the engine sits, so a workspace that runs it declares rolldown itself.

What it does

  • Locate every installed version of the extension, and tell a pristine bundle from a patched one by its backup rather than by inspecting it.
  • Harvest the identifiers a plugin depends on from the installed bundle: CSS-module classes with their application counts, the message protocol in four directions, outbound payload fields, host replies, and the React internals. Each layer is a module implementing one interface, so adding a sixth is a module and a table row.
  • Generate the identifier types a plugin workspace compiles against, and the runtime tables the injected loader reads — byte-stable, so --check is a real check.
  • Inject and restore with byte-faithful I/O, keeping the untouched bundle as the one authority on how to undo it.
  • Discover plugins, validate each manifest as data without executing anything, check what it declares against what the installed extension actually contains, and bake a registry.
  • Diff two extension directories, so an update is a report naming what moved.

Zero third-party runtime dependencies, which for a package that rewrites an editor's own bundle is worth something on its own.

Reading it

The architecture map is where to start: what runs in Node and what in the webview, the one channel between them, the three registries, and the install and boot pipelines. The decisions each part rests on are recorded in decisions.md, and the code cites them by number.

Changelog — every package in this workspace shares it, and one version number.

MIT.