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

moth-ai

v1.0.4

Published

Local, LLM-agnostic code intelligence CLI

Readme

🦋 Moth AI

npm version License: ISC

The World's First Truly Open CLI Assistant for Local & Open Source Models


Overview

Moth AI is the first terminal-native coding assistant built from the ground up to treat local and open-source LLMs as first-class citizens. While others lock you into proprietary models or cloud subscripts, Moth is truly open source—in code, philosophy, and model support.

It empowers you to write, debug, refactor, and reason about code using your own models on your own hardware. Whether you're running Llama 3 on a MacBook or GPT-4 in the cloud, Moth gives you the same powerful agentic capabilities without the compromise.


🚀 Key Features

🔓 Truly Open & Local-First

Moth is the only CLI tool designed to democratize AI access.

  • Local Native: Optimized deeply for Ollama. Run Llama 3, Mistral, Gemma, or DeepSeek locally with zero latency, 100% privacy, and no internet connection required.
  • Open Source First: We support any OpenAI-compatible endpoint, making it universally compatible with the open ecosystem of model servers (LM Studio, LocalAI, etc.).
  • Cloud Optional: Seamlessly integrate OpenAI (GPT-4), Anthropic (Claude), or Google (Gemini) when you need extra horsepower—but only when you choose to.

🤖 Agentic Capabilities with Role-Based Modes

Moth operates in three distinct modes to match your current task intensity:

  1. 🔵 Default Mode: A balanced assistant that asks for permission before executing sensitive actions.
  2. � Plan Mode: Prioritizes detailed architectural planning. Moth creates comprehensive markdown plans for review before writing a single line of code.
  3. 🚀 Autopilot Mode: For trusted workflows. Moth executes authorized tool calls automatically, streamlining repetitive tasks.

🛡️ Secure & Transparent

  • Permission-First Architecture: You approve every significant file edit or shell command.
  • Context-Aware: Moth intelligently scans your project structure to provide relevant answers, not hallucinations.

📦 Installation

Global Installation (Recommended)

Install Moth AI globally to access the moth command from any directory.

npm install -g moth-ai

Local Installation

For project-specific constraints.

npm install moth-ai
npx moth-ai

Requirements: Node.js >= 18.0.0


⚡ Quick Start

  1. Initialize Moth:

    moth
  2. Configure Your First Profile: Run the interactive setup wizard to connect your preferred model.

    moth llm add
  1. Execute Commands:
    • Chat: Simply type your query.
    • Command Palette: Press Ctrl+U to manage profiles and settings.
    • Switch Modes: Press Ctrl+B to cycle operational modes.


*Moth AI — Coding at the speed of thought.*