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

@yafldev/cli

v0.1.3

Published

yafl – the command-line client for YAFL, an agent-first, end-to-end-encrypted file-transfer layer.

Readme

yafl

The command-line client for YAFL, an agent-first, end-to-end-encrypted file-transfer layer. Log in once, then move an encrypted, auto-expiring file with a single command, no clone and no build step.

Install

npm i -g @yafldev/cli

Quickstart

yafl login

This prints a verification URL and a short code, tries to open your browser automatically, and polls until you approve it there. Approving needs a YAFL account with a verified email – signing in with an email link verifies you by construction. The minted API key is stored locally (mode 0600).

yafl put ./report.pdf

Encrypts the file locally and prints a share link (24h expiry, 100MB cap). The decryption key lives only in the URL fragment (after #) and is never sent to the server.

yafl get https://yafl.dev/t/{id}#{key} ./downloads

Resolves the link, downloads the ciphertext, decrypts it locally, and writes the original file into the given directory (default: the current directory).

yafl status https://yafl.dev/t/{id}#{key}
yafl whoami

status checks whether a link is still live, expired, or not found. whoami prints your stored key's prefix and name only; the full key is never printed by any command.

Global flags

  • --json – machine-readable output for every command
  • --api-url <url> – override the API base (default https://yafl.dev, or YAFL_API_URL)
  • --no-browser – skip the automatic browser open during login
  • --version, --help

yafl login --json is NDJSON, not a single object: one JSON object per stdout line, in order. An agent can JSON.parse each line and switch on status:

{"status":"pending","verificationUri":"...","userCode":"WXYZ-2345","verificationUriComplete":"..."}
{"status":"ok","keyName":"..."}

Every other command still prints a single JSON object under --json.

Exit codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | Unexpected error | | 2 | Usage error (unknown command or missing argument) | | 3 | Auth error (not logged in, or an invalid/revoked key) | | 4 | Not found or expired transfer |

Configuration

The stored credential lives at ~/.config/yafl/config.json by default. Override the directory with YAFL_CONFIG_DIR or XDG_CONFIG_HOME. Setting YAFL_API_KEY in the environment always wins over the stored file – useful for CI or a headless agent that injects a key directly.

Security note

All encryption and decryption happen locally, inside this process – YAFL's server and storage never see plaintext file contents or the decryption key.