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

mind-hiro

v0.2.6

Published

Generate a self-contained interactive mind-map website from Markdown files

Readme

Mind Hiro

Generate a self-contained, interactive mind-map site from a folder of Markdown files — single HTML file, works offline, no server needed.

Powered by markmap + Vite.


Features

  • Three-panel UI — file sidebar, Markdown editor, live mind-map renderer
  • Command palette⌘K to search files and run actions (toggle theme, share, …)
  • Live editing — edit Markdown in the browser; mind map updates in real time
  • Full-text search — filter files by filename or content
  • Share links — compress the current file into a URL hash and copy to clipboard
  • Dark / light mode — toggled via toolbar or command palette, persisted to localStorage
  • Local edits saved — browser remembers edits per file across sessions
  • Fully self-contained — all JS/CSS inlined; no CDN, works offline

Quick start

npx mind-hiro generate ./docs -o site.html

Open site.html in any browser — no server needed.


CLI

mind-hiro generate <dir> [options]

Options:
  -o, --output <file>   Output HTML file  (default: mind-hiro.html)
  -r, --recursive       Scan subdirectories recursively
  -h, --help            Show help
# Generate from a docs folder
npx mind-hiro generate ./docs -o site.html

# Include subdirectories
npx mind-hiro generate ./notes -r -o notes.html

Install globally

npm install -g mind-hiro
mind-hiro generate ./docs -o site.html

Programmatic API

import { generate } from 'mind-hiro'
import { writeFileSync } from 'fs'

const html = generate([
  { name: 'Architecture', content: '# Architecture\n## Frontend\n## Backend' },
  { name: 'Roadmap',      content: '# Roadmap\n## Q1\n## Q2' },
])

writeFileSync('output.html', html)

generate(files): string

| Parameter | Type | Description | |-----------|-----------------|------------------------------------------------| | files | MindMapFile[] | Array of { name: string, content: string } objects | | returns | string | Self-contained HTML string |

interface MindMapFile {
  name: string     // Shown in the sidebar
  content: string  // Raw Markdown content
}

Development

git clone https://github.com/minhonglolz/mind-hiro
cd mind-hiro
npm install

npm run dev          # Vite dev server (hot reload)
npm run build        # Build app template + CLI
npm run type-check   # TypeScript check without emitting

Project structure

app/          Vite app — the embedded viewer UI (TS + Tailwind)
src/          CLI + programmatic API (Node.js)
shared/       Types shared between app and src
index.html    Dev entry point

npm run build:app bundles app/ into template/index.html (the inlined shell). npm run build:lib compiles src/ into dist-lib/ (the CLI + API).


License

MIT