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

spanexx-rlm

v0.1.5

Published

RLM CLI (Go) for searching and chunking large context files

Readme

RLM

rlm is a fast Go CLI for working with large context files: listing files, searching text, peeking byte ranges, and chunking files for LLM/agent workflows.

Install

npm (recommended)

Requires Go to be installed (the package builds the Go binary during install).

npm install -g spanexx-rlm@latest
rlm --version

From source

go build -o rlm ./cmd/rlm
./rlm --help

Quick start

1) Set your context directory

The context directory is where you keep your large files.

Precedence:

--dir > RLM_CONTEXT_DIR > workspace config > global config > default

Default:

<workspace>/large context files

Examples:

# Per-workspace
rlm config set --scope workspace --context-dir "/absolute/path/to/large context files"

# Global
rlm config set --scope global --context-dir "/absolute/path/to/large context files"

# Verify
rlm config show --json

2) List files

rlm files

3) Search

JSON output is default (agent-friendly).

rlm search --query "SOFTBANK"
rlm search --query "term" --ignore-case
rlm search --query "EX-2\\.1" --regex
rlm search --query "term" --max-matches 20 --max-per-file 5

Exit codes:

  • 0 matches found
  • 1 no matches
  • 2 error

4) Peek (byte ranges)

rlm peek "somefile.txt" --start 0
rlm peek "somefile.txt" --start 0 --end 2000
rlm peek "somefile.txt" --start 0 --end -1   # to EOF

5) Chunk

rlm chunk "somefile.txt" --size 200000 --overlap 2000
rlm chunk "somefile.txt" --size 200000 --overlap 2000 --out "/tmp/rlm-chunks"

Docs

rlm readme

Repository

  • Repo URL: https://github.com/spanexx/RLM.git
  • npm package: spanexx-rlm

Repository structure

.
├── .agent/
│   └── skills/
│       └── rlm/
│           └── SKILL.md
├── cmd/
│   └── rlm/
│       └── main.go
├── internal/
│   ├── rlmchunk/
│   ├── rlmconfig/
│   ├── rlmfiles/
│   └── rlmsearch/
├── scripts/
│   └── postinstall.js
├── large context files/
├── LICENSE
├── package.json
└── deployment.md

License

MIT — see LICENSE.