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

ripley-code

v1.1.3

Published

AI coding agent CLI powered by local LM Studio models and remote providers (Anthropic, OpenAI, OpenRouter)

Readme

Ripley Code

A coding agent with local + remote model support. Run local LM Studio models, or connect Anthropic/OpenAI/OpenRouter with /connect.

What's New in v4.0.0

  • Multi-provider support - Local LM Studio + remote Anthropic/OpenAI/OpenRouter
  • Named model profiles - 7 models with friendly names and /model switching
  • Auto-discovery - Model IDs detected from LM Studio on startup
  • Local vision - Send images directly to vision models (Qwen3 VL)
  • Extensible prompts - Drop .md files in prompts/ for custom system prompts
  • Agentic mode built-in - Tool-calling loop runs locally (read_file, list_files, search_code)
  • Model shown in prompt - [nemotron] You → so you always know what model you're using

Prerequisites

  1. LM Studio running on localhost:1234 (only required for local models)
  2. Node.js 18+

Installation

npm install -g ripley-code

Upgrade

npm install -g ripley-code@latest

Usage

cd your-project
ripley

One-Shot Mode

ripley "Add a dark mode toggle to the header"

YOLO Mode (auto-apply all changes)

ripley yolo

Model Switching

Switch between models with friendly names:

/model              Show all models
/model nemotron     Switch to Nemotron (daily driver)
/model coder        Switch to Qwen2.5 Coder 32B
/model max          Switch to 80B max quality (slow)
/model vision       Switch to Qwen3 VL 30B
/model vision-fast  Switch to Qwen3 VL 8B
/model chat         Switch to GPT-OSS 20B
/model mistral      Switch to Mistral Small 24B
/model anthropic:claude-sonnet-4.6   Switch to connected Anthropic model
/model openai:codex-5.3-medium       Switch to connected OpenAI Codex model
/model search gemini                 Search OpenRouter catalog and add/switch model

Connect remote providers:

/connect                   Interactive provider wizard
/connect anthropic         Connect Anthropic with API key
/connect openrouter        Connect OpenRouter with API key
/connect openai            Connect OpenAI via OAuth device code
/connect status            Show connection status

Model choice persists across sessions. The active model shows in your prompt:

⚡ [nemotron] You → fix the auth bug
⚡ [coder] You → refactor this whole module

Prompt System

Ripley ships with two prompts:

  • base - General coding assistant (default)
  • code-agent - Optimized for agentic tool-calling mode

Add custom prompts by dropping .md files in the prompts/ directory:

/prompt             Show available prompts
/prompt base        Switch to base prompt

Commands

File Commands

| Command | Description | |---------|-------------| | /files | List files currently in context | | /read <path> | Add file to context (supports globs) | | /unread <path> | Remove file from context | | /tree | Show project structure | | /find <pattern> | Find files matching pattern | | /grep <text> | Search for text in files | | /image <path> | Add image (vision model or Gemini fallback) |

Mode Commands

| Command | Description | |---------|-------------| | /plan | Toggle PLAN mode (preview only) | | /ask | Toggle ASK mode (questions only) | | /yolo | Toggle YOLO mode (auto-apply) | | /agent | Toggle agentic mode (AI reads files on demand) | | /steer <message> | Steer next turn, or interrupt + redirect a running turn | | /model [name] | Show/switch model | | /connect [provider] | Connect/manage remote providers | | /prompt [name] | Show/switch system prompt |

Git, Session, Config, System

| Command | Description | |---------|-------------| | /git | Git status | | /diff | Uncommitted changes | | /log | Recent commits | | /clear | Clear conversation & context | | /save <name> | Save session | | /load <name> | Load session | | /config | Show configuration | | /run <cmd> | Run shell command | | /undo | Show backups | | /restore <path> | Restore from backup | | /help | All commands |

Keyboard Shortcuts

| Key | Action | |-----|--------| | / | Navigate command history | | Tab | Auto-complete | | Shift+Tab | Cycle modes (code → plan → ask) | | Alt+V | Paste screenshot from clipboard | | Escape | Cancel current request |

Architecture

Ripley Code v4.0.0  ──────────▶  Local + Remote Providers
├── ripley.js                     Any local model
├── models.json
├── prompts/
│   ├── base.md
│   └── code-agent.md
└── lib/
    ├── lmStudio.js       Local LM Studio API client
    ├── providerStore.js  Global provider credentials/aliases
    ├── providerManager.js Provider routing + auth handling
    ├── modelRegistry.js   Model switching
    ├── promptManager.js   Prompt loading
    ├── agenticRunner.js   Tool-calling loop
    ├── streamHandler.js   SSE processing
    ├── visionAnalyzer.js  Vision + Gemini fallback
    └── [9 more modules]

Vision Support

When a vision model is loaded (/model vision or /model vision-fast):

  • Images are sent directly to LM Studio as multimodal content
  • Supports clipboard paste (Alt+V) and file path (/image screenshot.png)

When a non-vision model is loaded:

  • Falls back to Gemini API to convert images to text descriptions
  • Requires GEMINI_API_KEY or GOOGLE_API_KEY environment variable

Project Instructions

Create RIPLEY.md in your project root for project-specific AI context (like CLAUDE.md for Claude Code):

# RIPLEY.md

This file provides project-specific instructions to Ripley Code.

## Project Overview
- React 18 with TypeScript
- Use functional components
- API is in src/api/

Also supports the legacy .ripley/instructions.md as a fallback.

Steering Messages

Use /steer to inject additional guidance into the next turn without editing prompts:

/steer Focus on minimal diffs and skip refactors unless requested
/steer status
/steer show
/steer clear
/steer on
/steer off

Queued steering messages are inserted as extra user guidance before your next request, then automatically consumed after a successful turn. If a turn is currently running, enter /steer <text> and press Enter to interrupt and continue with the new steering.

Environment Variables

| Variable | Purpose | Default | |----------|---------|---------| | RIPLEY_LM_STUDIO_URL | LM Studio URL | http://localhost:1234 | | GEMINI_API_KEY | Gemini vision fallback | — | | ANTHROPIC_API_KEY | Anthropic API key fallback (if not saved via /connect) | — | | OPENROUTER_API_KEY | OpenRouter API key fallback (if not saved via /connect) | — | | RIPLEY_DEBUG | Enable/disable debug logging (1/0) | 1 (enabled by default) | | RIPLEY_DEBUG_PATH | Debug log file path | ~/.ripley/logs/ripley-YYYY-MM-DD.log |

By default, Ripley writes debug logs to ~/.ripley/logs/ on every run. Set RIPLEY_DEBUG=0 to turn this off.

Changelog

v4.0.0

  • Direct LM Studio connection (removed AI Router dependency)
  • Named model profiles with /model switching
  • Auto-discovery of model IDs from LM Studio
  • Local vision model support with Gemini fallback
  • Extensible prompt system (drop .md files in prompts/)
  • Agentic tool-calling loop runs locally
  • Model name shown in prompt prefix

v3.0.0

  • Streaming responses, command history, tab completion
  • Token tracking, image support, watch mode
  • Session persistence, project instructions

License

MIT