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

mantisai-cli

v3.7.0

Published

Mantis CLI — spaces, maps, and MCP tools for AI coding agents

Readme


Mantis is a spatial data workspace. It embeds records (dataset rows, documents, code files, anything with text) into a 2D semantic map where proximity means similarity, then auto-groups them into labelled clusters so the shape of a dataset is visible at a glance.

This CLI puts the whole workspace in your terminal. Every Mantis MCP tool is reachable through mantis use <tool> (no editor plugin required), so AI coding agents (Claude Code, OpenCode, Codex, Cursor, and more) can inspect, search, and reshape spatial data directly.


Quick Start

npm install -g mantisai-cli      # Node ≥18, no Bun needed
mantis setup                     # API key + space + thread
mantis setup claude              # optional: install Claude Code skills
mantis use get_space_context     # confirm you're connected

Config lives at ~/.mantis/config.json. Grab a developer key at mantis.csail.mit.edu/developer.

Naming: repo KellisLab/mantis-cli · npm package mantisai-cli · binary mantis.

Using with Claude Code

Run mantis setup claude once to install the Mantis skills, then drive your spaces and maps straight from a Claude Code session, no MCP plugin required.

See the Claude Code guide for the full workflow.

Commands

| Command | Description | | --- | --- | | mantis setup [editor] | API + space/thread, or sync skills for claude/opencode/codex/cursor/windsurf/copilot/antigravity | | mantis status | Show current space, thread, and config | | mantis select [space\|thread\|both] | Switch the active space and/or thread | | mantis spaces list\|resolve\|set | Scriptable space ops (JSON) | | mantis threads list\|new\|set | Scriptable thread ops (JSON) | | mantis tools | List every MCP tool and its arguments | | mantis use <tool> | Call any MCP tool (JSON output) | | mantis create map <file> | Build a map from a local CSV/XLSX | | mantis create codebase [root] | Index a repo into CSV; add --create-map to embed it |

The mantis use toolbox

Reach for these through mantis use <tool> (run mantis tools for full argument schemas):

| Tier | Tools | | --- | --- | | Orient | get_space_context, inspect | | Reason | search, compare, intersect, diff, union, export | | Act | create_bag, add_to_bag, remove_from_bag, rename_bag, delete_bag, filter_to_bag, set_plot_variables, legend_command, create_page, project, install_extension |

# Orient: what's in this space?
mantis use get_space_context

# Reason: semantically search a map
mantis use search --args '{"query":"memory systems","kind":"point","scope":["mantis://map/<id>"]}'

# Act: save a cluster as a reusable bag
mantis use create_bag --from-uri "mantis://map/<id>/cluster/<cid>" --name "My Bag"

# Act: project text (or a file's contents) onto a map as a new point, get its URI back
mantis use project --text "attention is all you need" --map-id <id>
mantis use project --file notes.md --map-id <id>

Documentation

Requirements

Contributing

git clone https://github.com/KellisLab/mantis-cli.git
cd mantis-cli
bun install          # or: npm install
bun run build        # bundles bin/mantis.js -> dist/mantis.js
node dist/mantis.js --version

Publishing is automated: push a v* tag and the GitHub Actions workflow builds the bundle and publishes to npm.