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

@villagelabs/merlin

v0.2.5

Published

Village Labs Merlin CLI

Readme

Merlin CLI

Merlin is a powerful AI-powered command-line assistant for developers, created by Village Labs.

Installation

# Install globally from npm
npm install -g @villagelabs/merlin

After installation, verify that the command is available:

merlin --help

Quick Start

# Start Merlin in your current directory
merlin

Merlin will guide you through a one-time setup process to configure your API key and set your network.

Features

  • AI-Powered Assistance: Get help with coding tasks, debugging, and more
  • Context-Aware: Understands your codebase and working directory
  • Command Integration: Execute shell commands directly from the interface
  • Conversation History: Save and review your interactions

Commands

Once inside the Merlin interface, you can use these commands:

/help       - Display help message
/quit       - Exit the application
/cd <path>  - Change working directory
/clear      - Clear the screen
/history    - Show conversation history
/save <file>- Save conversation history to file
/root       - Show current working directory
/restart    - Restart the conversation

Bash Mode

Type ! at the beginning of a line to enter bash mode and execute shell commands directly.

Canceling queries

If you see Merlin start down the wrong path, or you change your mind just press Escape to cancel the current generation, and let Merlin know how they should proceed instead.

Configuration

Command Line Options

# Use a specific model
merlin --model claude-sonnet-4-20250514

# Specify a working directory, otherwise uses the launchred directory
merlin --root /path/to/project

# Enable verbose logging
merlin --verbose

# Use a specific API key and network
merlin --api-key YOUR_API_KEY --network YOUR_NETWORK_ID

# Skip the configuration screen
merlin --skip-config --api-key YOUR_API_KEY --network YOUR_NETWORK_ID

# Run in single-shot mode (process one query and exit)
merlin --single-shot "What does this code do?"

Managing Configuration

# View current configuration
merlin config --show

# Reset configuration
merlin config --reset

# Run the configuration wizard
merlin config

Local configuration can also be edited at

~/.village-merlin

Safety System

Merlin includes a built-in safety system that protects your system by requiring confirmation before executing potentially sensitive operations.

How It Works

When Merlin attempts to perform a sensitive operation (like editing files or running certain commands), you'll see a safety prompt asking for permission. You have four options:

  • [o]nce: Allow this specific operation one time only
  • [a]lways: Always allow similar operations in the future
  • [n]ever: Never allow this type of operation (you'll be asked again if needed)
  • [c]ancel: Cancel the current operation

Your preferences are saved between sessions, so Merlin will remember which operations you've approved.

Understanding Tool Keys

The safety system identifies similar operations using "tool keys" that follow these patterns:

  • For bash commands: bash(command) - Examples: bash(git), bash(npm install)
  • For file operations: toolname(path) - Examples: edit_file(src/*), view(/etc/nginx/)

System directories and sensitive commands receive more specific keys to ensure proper protection.

Support

For support, please contact Village Labs or visit our website.

License

View license in LICENSE.md