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

@amxv/icloud-cli

v0.2.0

Published

A command-line interface for iCloud, starting with a comprehensive iCloud Mail client

Readme

icloud

icloud is a command-line interface for Apple's iCloud ecosystem. iCloud Mail is the comprehensive service today: read, search, synchronize, draft, send, reply, organize, import, export, secure, and automate your mailbox from one predictable command tree.

The project is designed to grow beyond Mail over time. Contacts, Reminders, Calendar, and other iCloud services can live under the same icloud command as they become implemented and reliable.

Install

npm install --global @amxv/icloud-cli@latest
icloud version

Get started

Use an Apple app-specific password, not your normal Apple Account password:

icloud account add --name Personal --email [email protected]
icloud account test Personal
icloud mail folders refresh
icloud mail sync
icloud mail messages list

Search locally:

icloud mail search invoice

Read one selected message:

icloud mail message show msg_… --full

Preview a reply before sending it:

icloud mail reply msg_… --body-file reply.txt --dry-run

Then send the reviewed reply with a stable idempotency key:

icloud mail reply msg_… \
  --body-file reply.txt \
  --idempotency-key reply-01 \
  --yes

The Quickstart walks through the full first-use flow.

Mail today

The current CLI includes:

  • multiple iCloud Mail accounts and safe credential sources;
  • folder discovery, current sync, foreground watch, and historical backfill;
  • local search plus explicit fresh provider search;
  • messages, conversations, attachments, and exact EML access;
  • drafts, send, reply, reply-all, forward, aliases, and signatures;
  • read/flag state, move/copy, archive, trash, junk, restore, and delete;
  • reviewed bulk actions and bounded empty-folder workflows;
  • mailbox and EML import/export;
  • mailing-list unsubscribe and local VIP/blocked sender preferences;
  • S/MIME inspection, decryption, signing, and encryption;
  • outbound operation history and safe-retry Outbox recovery;
  • compact text, JSON, JSONL, strict request schemas, completion, and man pages.

Check the exact feature set of the binary you installed with:

icloud capabilities
icloud capabilities --json

Built for agents too

Normal output is compact so an agent can explore without pulling full message bodies into context. Stable IDs such as msg_…, thr_…, att_…, and drf_… make multi-step workflows easy to compose.

icloud mail search invoice
icloud mail message show msg_… --full
icloud mail attachments list msg_…
icloud mail reply msg_… --body-file reply.txt --dry-run

Use --json when you need structured parsing, --jsonl for event streams or per-item results, and --no-input to prevent implicit prompts in automation.

See the Agent guide and Automation recipes.

Documentation

The documentation is organized around user tasks rather than implementation details:

Raw Markdown is available from /docs.md and each guide's .md route for agent-friendly retrieval.

Project direction

Mail is the first complete command family, not the intended limit of the project. The top-level icloud command leaves room for additional iCloud services without pretending they already exist. The installed command tree and icloud capabilities remain the source of truth for what is available in a particular release.

Development

Prerequisites: Go 1.26.5+, Node.js 18+, and Bun 1+ for the docs site.

make references
make check
make build-all
make docs-check
make docs-build

make references regenerates schemas, the exhaustive command reference, man pages, and shell completion from the current CLI sources.

License

Apache 2.0