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

mdflow-crypt

v1.0.2

Published

Encrypt and decrypt MDflow documents locally (mdflow-enc:v1). A standalone, zero-dependency CLI you run on your own machine — plaintext and password never leave it.

Readme

mdflow-crypt

Encrypt and decrypt MDflow documents locally, from the command line.

MDflow lets you encrypt a document's body in your browser; the server only ever stores ciphertext (mdflow-enc:v1:…). This tool does the same crypto on your own machine, so you can take an encrypted document out of MDflow and read or write it offline — your plaintext and your password never leave your computer, and never go to a server or an AI model.

Zero dependencies. One file. Works on Node ≥ 18.

Usage

# decrypt: mdflow-enc:v1 file  →  <name>_decrypted.md
npx mdflow-crypt decrypt notes.md

# encrypt: markdown file  →  <name>_encrypted.md  (paste the result into MDflow)
npx mdflow-crypt encrypt notes.md

# password from a file (first line; keep it chmod 600) instead of the prompt
npx mdflow-crypt encrypt notes.md --password-file ~/.secrets/notes.pw

Password — resolved in this order (first match wins):

  1. --password <pw> — an inline flag
  2. --password-file <path> — read from a file (the first line; spaces preserved, a trailing newline ignored)
  3. the [password] positional argument
  4. otherwise you're prompted (hidden; encrypt asks twice to confirm)

--password and the positional argument are visible to other processes and land in your shell history — for anything sensitive prefer the hidden prompt or a chmod 600 --password-file.

The output file is written next to the input, with the original extension dropped:

| Command | report.md → | |---|---| | encrypt | report_encrypted.md | | decrypt | report_decrypted.md |

Install it as a permanent command instead of using npx:

npm install -g mdflow-crypt
mdflow-crypt encrypt notes.md

Behavior

  • decrypt requires an mdflow-enc: file; a wrong password or corrupted data exits non-zero and writes nothing.
  • encrypt refuses a file that is already encrypted, and asks for the password twice (there is no recovery — a forgotten password means the document is unrecoverable; store it in a password manager).
  • Exit codes: 0 ok · 1 usage / unreadable / wrong-shape input · 2 no or mismatched password · 3 decrypt failed.

Security notes

  • This is a local tool by design. The point is that decrypting never exposes your content to a server or a model — so don't pipe it through a remote runner; install it (or npx) and run it on your own machine.
  • For a security tool, pin a version you trust — npx [email protected] — rather than always pulling the latest.
  • There is no password recovery and no backdoor. The format is PBKDF2-HMAC-SHA256 (600k iterations) → AES-256-GCM, matching MDflow's in-browser encryption exactly.

License

MIT