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

@kaylee1337/mxr

v0.1.19

Published

mxr — AI Model Router CLI

Readme

mxr

AI Model Router command-line client.

Install

npm install --global mxr
mxr login

Requires Node.js 18 or newer.

Commands

Run mxr --help for the current command list.

Long agent sessions compact automatically before the active model reaches its context limit. Use mxr, then /compact, to compact immediately; /status shows the current token estimate. Older tool output is pruned automatically, while goals, decisions, completed work, and relevant files are retained in a continuation summary.

Use /reasoning to choose auto, none, low, medium, or high. Auto mode selects a level per request and shows the effective choice in the header, for example think:auto→medium. Grok 4.5 safely falls back from none to low. The same default can be set outside the TUI with mxr config --reasoning auto.

The TUI keeps messages left-aligned, persists tool activity as compact cards, and renders file edits as a unified diff in narrow terminals or a side-by-side diff when the terminal is wider than 120 columns. Grok requests reuse a stable prompt cache key and report live streaming progress. Grok 4.3, Grok 4.5, and Grok Build 0.1 are supported by the xAI Responses adapter.

MCP and Codex-format plugins

MXR is an autonomous MCP client; Codex does not need to be installed. Every model available through MXR receives the same connected MCP tools.

Add a Streamable HTTP server:

mxr mcp add docs --url https://example.com/mcp

Add a local STDIO server (the JSON form keeps command arguments portable):

mxr mcp add context7 --command npx --args '["-y","@upstash/context7-mcp"]'

Browser automation on Windows using the built-in Edge installation:

mxr mcp add playwright --command npx --args '["-y","@playwright/mcp@latest","--browser=msedge"]'

Playwright accessibility snapshots linked from tool output are expanded back into the model context. Screenshot image-content is forwarded through MXR's multimodal message path, so vision-capable models can inspect the actual frame.

Configurations are stored in ~/.mxr/mcp.json. Inside the TUI, /mcp shows connection state and /mcp reload reconnects all servers. You can also ask the agent in plain language to install an MCP; it uses the built-in install_mcp tool, asks for confirmation, saves the config, and connects it immediately.

MXR also accepts plugin packages that use the Codex layout .codex-plugin/plugin.json plus a manifest mcpServers entry:

mxr plugin install ./my-plugin
mxr plugin install https://github.com/example/my-plugin.git

Plugins are copied into ~/.mxr/plugins, so their original source and a Codex installation are not needed afterward. MCP tools are namespaced as mcp__<plugin>__<server>__<tool> to prevent collisions between plugins.

Check for a new release or install it from npm:

mxr update --check
mxr update

mxr checks for releases at most once every 24 hours and only shows a notification by default. Optional automatic updates can be enabled with:

mxr config --auto-update on
mxr config --auto-update off