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

mastermind-md

v0.1.0

Published

Review Markdown with your coding agent — local-first, CriticMarkup review loop, bilingual, the file is the protocol

Readme

█▀▄▀█ ▄▀█ █▀ ▀█▀ █▀▀ █▀█ █▀▄▀█ █ █▄░█ █▀▄
█░▀░█ █▀█ ▄█ ░█░ ██▄ █▀▄ █░▀░█ █ █░▀█ █▄▀

Review markdown with your coding agent — local-first, the file is the only channel.

An agent writes a plan or doc as .md; you read and mark it up in the browser with CriticMarkup; you hand it back; the agent re-reads the same file. No database, no accounts, no cloud — just localhost and the file on disk. Mastermind also renders any doc bilingually: your agent translates it into your two reading languages, toggled live.

Mastermind Reading view

The Reading view — rendered Markdown with the heading outline on the left.

Requirements

  • Node 20+ and a desktop browser (macOS is the tested platform).
  • A coding agent (Claude Code, Cursor, Gemini, …) — it drives the review loop and does translation.

Install

npm i -g mastermind-md        # installs the `mastermind` command
mastermind install-agents     # add the /mastermind + /master skills to your agent(s)
git clone https://github.com/Jingquank/Mastermind.git
cd Mastermind
npm install
npm run build
npm link                      # puts `mastermind` on your PATH
mastermind install-agents

install-agents writes the skills for every coding agent it finds (~/.claude, ~/.cursor, ~/.gemini) and, where it can, a one-line rule so finished plans open in Mastermind automatically. Undo any time with mastermind uninstall-agents.

How it works

  • The file is the protocol. Open a .md and Mastermind serves it at 127.0.0.1:5173. Your edits, comments, and accept/reject decisions round-trip through that one file as CriticMarkup — nothing else, nowhere else.
  • The review loop. An agent writes a plan → you review and mark it up → Save & hand back → the agent re-reads the file and revises. Repeat until you approve. Suggestions flow one direction only (the agent proposes, you accept); nothing reaches disk until you do.
  • Bilingual, no API key. Your coding agent is the translator. Mastermind shows the doc in your Preferred and Secondary languages (default English ⇄ 简体中文), toggled live, cached on disk (.mastermind/translations/) so the toggle is instant and keeps working offline once warmed.

The same document toggled to Simplified Chinese

One click flips the whole doc to your second language; code and inline literals stay put.

The /mastermind skills

After install-agents, type these in your agent:

| Command | What it does | | --- | --- | | /mastermind setup | Pick your two reading languages, preferred browser, and color / font theme. | | /mastermind demo | Open a bilingual demo doc — see the marks and the language toggle in action. | | /mastermind <file> | Translate any .md into both languages and open it. Bare /mastermind uses the most recent .md from the chat. | | /master <file> | Shorthand for /mastermind <file>. |

Every open translates first, so the language toggle is warm the instant the page loads. With the global rule installed, finished plans (in plan mode) open in Mastermind automatically, in both languages.

Reviewing

Three views over the same file (Cmd+E cycles, Cmd+S saves):

  • Reading — rendered markdown with CriticMarkup as a visual diff: green insertions, struck deletions, paired substitutions, gold highlights, and comment threads in a margin rail. Select text → Comment / Suggest deletion / Highlight. Hover a suggestion → Accept / Reject (Cmd+Z undoes review actions). Task-list checkboxes are live.
  • Editing — WYSIWYG; opening a file and saving it unchanged produces a byte-identical file.
  • Source — raw markdown with CriticMarkup highlighting.

All five marks work inline anywhere: {++ins++}, {--del--}, {~~old~>new~~}, {==highlight==}, {>>comment<<}. A highlight directly followed by a comment anchors it to that span; consecutive comments form a thread; comments carry @author: tags.

CriticMarkup review marks

An insertion, a substitution, a struck deletion, a highlight, and a margin comment — all CriticMarkup.

The language toggle (top bar) flips the whole document between your two languages, block by block. Cmd+F is a mark-aware find (filter by comments / edits / highlights); Cmd+P prints ink-on-white with comments as numbered footnotes. Reviews are multi-round: when the agent rewrites the open file, a banner offers a reload so you pick up the new version in place.

Settings & themes

Open Settings (the gear, bottom-right) to choose your color theme (seven ship — Grid, the Swiss-red default, plus Mint, Sepia, Carbon, Slate, Cobalt, Rose), typeface and code font, an optional code-color scheme, your reading languages (Preferred + Secondary), and the browser Mastermind opens in. Everything persists to ~/.config/mastermind/config.json and is scriptable:

mastermind config set langPair.a=English langPair.b=Japanese theme=sepia browser="Google Chrome"

Themes are just data — drop a themes/<id>/{theme.json,tokens.css} folder in and it shows up in Settings.

Settings panel

Themes, typeface, code font, code-color scheme, and your two reading languages — all in Settings.

Commands

mastermind open <file>             # open a file for review
mastermind open --wait <file>      # block until "Save & hand back" (the agent loop)
mastermind new                     # start a blank draft
mastermind workspace .             # browse a directory as a file tree (alias: ws)
mastermind config get | set …      # read / write preferences
mastermind translate-blocks <file> # pre-translate a doc into both languages (the skills use this)
mastermind install-agents          # install the skills + global rule (undo: uninstall-agents)
mastermind status | stop           # daemon status / shutdown

More: AGENT_SETUP.md — the agent protocol, assist channel, and exit-code contract.