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

@superadnim/rlm-pro

v1.0.3

Published

RLM PRO - Enterprise-grade Recursive Language Models for infinite context code analysis. Analyze entire codebases with AI.

Readme

RLM PRO

Analyze any corpus of unstructured data using Recursive Language Models - enables LLMs to handle near-infinite context through recursive decomposition.

Works with codebases, document collections, research papers, logs, and any text-based data corpus.

Based on the RLM research from MIT OASYS lab.

Installation

# Using npx (recommended - auto-installs Python package from GitHub)
npx @superadnim/rlm-pro ./my-project -q "Explain the architecture"

# Or install globally
npm install -g @superadnim/rlm-pro

Prerequisites

  • Node.js 18+
  • uv (Python package manager) - will be prompted to install if missing
  • OpenAI API key (set as environment variable)
# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install the Python package (auto-installed on first run, or install manually)
uv pip install git+https://github.com/CG-Labs/RLM-PRO.git

# Set your API key
export OPENAI_API_KEY="your-key"

Usage

Command Line

# Basic usage
npx @superadnim/rlm-pro ./my-project -q "Explain the architecture"

# Get JSON output (for programmatic use)
npx @superadnim/rlm-pro ./my-project -q "List all API endpoints" --json

# Use a specific model
npx @superadnim/rlm-pro ./my-project -q "Find potential bugs" -m gpt-5.2

# Use Anthropic backend
npx @superadnim/rlm-pro ./my-project -q "Review this code" -b anthropic

# Verbose output for debugging
npx @superadnim/rlm-pro ./my-project -q "How does authentication work?" -v

# Only build context (no LLM call)
npx @superadnim/rlm-pro ./my-project -q "" --context-only

Programmatic Usage (Node.js)

const { analyzeCodebase } = require('@superadnim/rlm-pro');

async function main() {
  const result = await analyzeCodebase('./my-project', {
    query: 'Summarize the codebase structure',
    backend: 'openai',
    model: 'gpt-5.2',
  });

  console.log(result.response);
  console.log('Execution time:', result.execution_time, 'seconds');
}

main();

Options

| Option | Description | Default | |--------|-------------|---------| | -q, --query <query> | Question or task to perform (required) | - | | -b, --backend <backend> | LLM backend (openai, anthropic, etc.) | openai | | -m, --model <model> | Model name | gpt-5.2 | | -e, --env <env> | Execution environment (local, docker) | local | | --max-depth <n> | Maximum recursion depth | 1 | | --max-iterations <n> | Maximum iterations | 30 | | --max-file-size <bytes> | Max size per file | 100000 | | --max-total-size <bytes> | Max total context size | 500000 | | --no-tree | Exclude directory tree from context | - | | --json | Output as JSON | - | | -v, --verbose | Enable verbose output | - | | --context-only | Only output built context | - |

Environment Variables

| Variable | Description | Required | |----------|-------------|----------| | OPENAI_API_KEY | OpenAI API key | Yes (for OpenAI backend) | | ANTHROPIC_API_KEY | Anthropic API key | For Anthropic backend |

How It Works

RLM (Recursive Language Models) enables LLMs to handle near-infinite context by:

  1. Context Building: Intelligently reads and formats your codebase
  2. Recursive Decomposition: Breaks complex queries into manageable sub-tasks
  3. Code Execution: Runs Python code in a sandboxed environment to explore and analyze
  4. Iterative Refinement: Continues until a complete answer is found

This allows answering complex questions about large codebases that would exceed normal context limits.

Examples

Architecture Analysis

npx @superadnim/rlm-pro ./backend -q "Describe the system architecture and key design patterns"

Bug Finding

npx @superadnim/rlm-pro ./src -q "Find potential security vulnerabilities" --json

Documentation Generation

npx @superadnim/rlm-pro ./api -q "Generate API documentation for all endpoints"

Code Review

npx @superadnim/rlm-pro ./feature-branch -q "Review this code for best practices"

License

MIT

Links