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

@love-rox/kumihimo-cli

v0.11.1

Published

Command line interface for kumihimo AV signal flow diagrams (系統図)

Downloads

2,420

Readme

@love-rox/kumihimo-cli

Command line interface for kumihimo — AV signal flow diagrams (系統図) written as text.

pnpm add @love-rox/kumihimo-cli
kumihimo build studio.khm -o studio.svg   # draw it
kumihimo check studio.khm                 # validate only
kumihimo build studio.khm --watch         # redraw on save
kumihimo export studio.khm drawio         # editable draw.io file
kumihimo export studio.khm cable --stdout    # cable schedule as TSV
kumihimo export studio.khm wireless --stdout # radio paths and their channels

Diagnostics are printed against the line that caused them, with the offending span underlined. Warnings do not fail the build unless you pass --strict.

From a pipe

- reads standard input and --stdout writes the drawing to standard output, so a diagram can be produced from text that was never a file:

cat studio.khm | kumihimo - --stdout > studio.svg

The report goes to standard error, so redirecting standard output gives an SVG and nothing else. Imports inside a piped diagram resolve against the working directory, which is the only thing a pipe can be relative to.

This is what a note-taking tool needs when it renders a fenced block by running a command rather than by loading an extension.

Installs as both kumihimo and khm.

See kumihimo.love-rox.cc for the guide and an editor you can type into, or the project README for the other packages.

Markdown Preview Enhanced

MPE renders a fenced block by running a command, which is the only way in: it reads none of the VS Code extension's contributions. stdin=true hands the block to the command, and --quiet keeps the report out — MPE concatenates standard error into the output, so a clean run's would otherwise land in the page beside the drawing.

```kumihimo {cmd="kumihimo" args=["-", "--stdout", "--quiet"] stdin=true output="html"}
device cam "SONY FX3"  as camera   { out SDI : sdi }
device sw  "ATEM Mini" as switcher { in 1 : sdi }

cam.SDI -> sw.1 : sdi 30m "V-01"
```

MPE asks before it runs anything. $input_file in args works too — it is replaced with a temporary file — but stdin=true is better here: MPE runs the command in the document's own directory, so a use of a file beside the note resolves the way it reads.

A faulty diagram still draws, with the faults visible in the drawing rather than in a report that is not being shown.

License

MIT © SASAGAWA Kiyoshi