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

mensa-cli

v0.1.0

Published

Terminal chat interface for Claude AI with MCP support, session management, and agentic tools

Readme

mensa-cli Documentation

mensa is a terminal-based chat interface for Claude AI, built with Bun, React, and Ink. It uses the Claude Agent SDK to provide an agentic chat experience with tool use capabilities.

Table of Contents

Installation

Prerequisites

  • Bun runtime (v1.0+)
  • Logged into Claude Code

From Source

git clone <repository-url>
cd mensa-cli
bun install
bun run build
bun install --global .

From npm (when published)

bun install -g mensa-cli

Quick Start

  1. Make sure you're authenticated with Claude Code.

  2. Run mensa:

    mensa
  3. On first run, you'll be guided through model selection.

  4. Start chatting! Type your message and press Enter.

Features

Agentic Tools

mensa gives Claude access to powerful tools:

  • Read/Write/Edit - File operations
  • Bash - Execute shell commands
  • Glob/Grep - Search files and content
  • WebFetch/WebSearch - Browse the web
  • TodoWrite - Track tasks

Session Management

Continue previous conversations:

mensa --continue       # Resume most recent session
mensa --resume <id>    # Resume specific session by ID

Undo Support

Made a mistake? Use /undo to revert file changes from the last assistant response.

MCP Integration

Connect to Model Context Protocol servers for extended capabilities. See MCP documentation.

Budget Limits

Set spending limits to control costs:

mensa budget set 5.00   # Set $5 limit
mensa budget show       # View current limit
mensa budget clear      # Remove limit

Markdown Rendering

Assistant responses are rendered with proper markdown formatting including:

  • Code blocks with syntax highlighting
  • Headers, lists, and emphasis
  • Links and inline code

Slash Commands

Type / to see available commands with autocomplete:

  • /config - Open settings
  • /mcp - Manage MCP servers
  • /undo - Revert file changes
  • /help - Show help

Configuration

Configuration is stored at ~/.mensa/config.json:

{
  "model": "claude-sonnet-4-5-20250929",
  "createdAt": "2024-01-01T00:00:00.000Z",
  "mcpServers": {},
  "maxBudgetUsd": 10.00,
  "lastSessionId": "session-uuid"
}

Changing Models

Use /config or /settings in the app to change the Claude model.

Available models:

  • Claude Sonnet 4.5 (Recommended)
  • Claude Opus 4.5
  • Claude Haiku 4.5

Keyboard Shortcuts

| Shortcut | Action | |----------|--------| | Enter | Submit message | | Ctrl+C | Interrupt current operation | | Backspace | Delete character | | Option+Backspace | Delete word | | Cmd+Backspace | Delete line | | Tab | Complete slash command | | Up/Down | Navigate suggestions |

Troubleshooting

Session not resuming

Sessions are stored locally. If you clear ~/.mensa/, session history is lost.

MCP server not connecting

  1. Check the server is running: mensa mcp list
  2. Verify the URL/command is correct
  3. Check authentication headers if required

License

MIT