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

@fredlackey/cli-mailu

v0.0.3

Published

AI-first CLI for managing the Mailu email server (domains, users, aliases, archived mail)

Readme

@fredlackey/cli-mailu

Command-line interface for the Mailu email server. Manage domains, user mailboxes, aliases, and (over IMAP) archived mail from the terminal. JSON output by default so AI agents and scripts can consume it directly, with a human-friendly mode when you're working interactively.

Install

npm install -g @fredlackey/cli-mailu

Usage

Every command accepts credentials directly as flags. No setup step is required.

mailu domain list \
  --base-url https://mail.example.com \
  --api-key <key>

mailu user create \
  --base-url https://mail.example.com \
  --api-key <key> \
  --email [email protected] \
  --password <password> \
  --name "Hello World"

IMAP-based archive commands also accept their credentials inline:

mailu archive fetch \
  --base-url https://mail.example.com \
  --api-key <key> \
  --imap-host mail.example.com \
  --imap-port 993 \
  --imap-user [email protected] \
  --imap-password <password> \
  --email [email protected] \
  --data-dir ./backup

If you've already run mailu configure, you can omit the credential flags:

mailu domain list
mailu alias create \
  --email [email protected] \
  --destination [email protected]
mailu domain dns --name example.com
mailu archive fetch \
  --email [email protected] \
  --data-dir ./backup

Configure (Optional)

The configure command is optional. Every command accepts credentials directly as flags (e.g. --api-key, --base-url). You never need to run configure to use this tool. It exists as a convenience so you don't have to pass the same flags on every invocation.

mailu configure \
  --base-url https://mail.example.com \
  --api-key <key>

Running mailu configure without flags prompts for each value interactively. Credentials are stored in ~/.config/cli-mailu/config.json and that file is the only config source. There are no environment variables to set.

To use the IMAP-based archive commands, add IMAP credentials in the same configure step or a separate one:

mailu configure \
  --imap-host mail.example.com \
  --imap-port 993 \
  --imap-user [email protected] \
  --imap-password <password>

If a required credential is missing at runtime, the error tells you exactly what to do:

{
  "error": "Missing required value: --api-key. Pass it as a flag or run \"mailu configure\"."
}

Full Command Reference

For the complete list of commands and flags, see COMMANDS.md.

Output

All commands write JSON to stdout by default. When run in an interactive terminal, output switches to a human-friendly format with colors. Use the global --json and --interactive flags to override the auto-detection.

Contributing

If you find a gap or have a feature request, open an issue or submit a pull request on GitHub.

Questions?

If you have questions, comments, or just want to talk shop, feel free to reach out.

Fred Lackey
[email protected]
https://fredlackey.com

License

Apache-2.0