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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jmap-cli

v1.5.1

Published

A command-line interface for JMAP servers.

Readme

jmap-cli

A command-line interface for interacting with a JMAP server.

Installation

For detailed installation and configuration instructions, please see INSTALL.md.

Configuration

Configuration is stored in ~/.config/jmap-cli/config. To create or update the configuration, run:

jmap-cli init

Usage

jmap-cli <command> [options]

Commands

mailboxes

Lists the mailboxes in your account.

Usage:

jmap-cli mailboxes [options]

Options:

  • -j, --json: Output mailboxes as JSON
  • -h, --help: Show this help message

messages

Lists the messages in a mailbox.

Usage:

jmap-cli messages [mailbox] [options]

Arguments:

  • mailbox: Mailbox to list messages from (defaults to "Inbox")

Options:

  • -l, --limit <number>: Number of messages to list (defaults to 10)
  • -j, --json: Output messages as JSON
  • -h, --help: Show this help message

message

Fetches a message.

Usage:

jmap-cli message <message-id> [options]

Arguments:

  • message-id: The ID of the message to fetch

Options:

  • -j, --json: Output message as JSON
  • -h, --help: Show this help message

send

Sends an email.

Usage:

jmap-cli send <to> [options]

Arguments:

  • to: Recipient's email address

Options:

  • --from <email>: Sender's email address (defaults to MAIL_FROM env var)
  • --from-name <name>: Sender's name (defaults to MAIL_FROM_NAME env var)
  • --subject <subject>: Email subject
  • --text <text>: Email body (reads from stdin if not provided)
  • --attach <file>: Attach a file to the email.
  • -h, --help: Show this help message

search

Searches for messages with various criteria.

Usage:

jmap-cli search [options] [freeform_query]

Options:

  • --from <string>: Search by sender email address or name
  • --to <string>: Search by recipient email address or name
  • --subject <string>: Search by subject
  • --body <string>: Search by body content
  • --before <date>: Search for messages received before a specific date (YYYY-MM-DD)
  • --after <date>: Search for messages received after a specific date (YYYY-MM-DD)
  • -l, --limit <number>: Number of messages to list (defaults to 10)
  • --sort <string>: Sort by property (e.g., receivedAt, from, to, subject, size)
  • --order <string>: Sort order (asc or desc, defaults to desc)
  • -j, --json: Output messages as JSON
  • -h, --help: Show this help message