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

@earnforge/cli

v1.4.0

Published

CLI for the LI.FI Earn API: vault discovery, risk scoring, deposit and withdrawal quoting, and API diagnostics

Readme

@earnforge/cli

Terminal interface for the LI.FI Earn API: vault discovery, risk scoring, deposit quoting, and diagnostics.

npm i -g @earnforge/cli
export LIFI_API_KEY=...   # required; create one at https://portal.li.fi
earnforge list --chain 8453

Complements @lifi/cli, which covers swaps and bridges but has no Earn commands. Both read the same LIFI_API_KEY.

Commands

earnforge list             # list vaults with filters
earnforge top              # top vaults by APY for an asset
earnforge vault <slug>     # detailed vault info
earnforge compare          # side-by-side vault comparison
earnforge portfolio <addr> # portfolio positions
earnforge quote            # build a deposit quote
earnforge withdraw         # build a withdrawal quote
earnforge allowance        # check ERC-20 allowance
earnforge approve          # build an approval transaction
earnforge risk <slug>      # risk score breakdown with flags
earnforge suggest          # portfolio allocation
earnforge watch            # live APY/TVL monitoring
earnforge apy-history      # 30-day DeFiLlama APY chart
earnforge preflight        # pre-deposit validation
earnforge simulate         # eth_call dry-run
earnforge doctor           # API pitfall diagnostics
earnforge chains           # chains with indexed vaults
earnforge protocols        # protocols with indexed vaults
earnforge init <name>      # scaffold a new project

Every command supports --json for machine-readable output.

Flagged vaults are surfaced everywhere

LI.FI flags roughly 10% of vaults through an undocumented verificationStatus field: usually for zero_apy, occasionally apy_outlier. earnforge vault and earnforge compare show a verification badge, and earnforge risk lists the reasons:

$ earnforge risk aave:1:_:0x9277...
4.5/10 (high)

  flagged by LI.FI verification: zero_apy
  reward APY not reported by the protocol

A flagged vault can never score ≥ 8, so it can never read as low risk. This matters most for --strategy max-apy, where a vault flagged for apy_outlier would otherwise sort straight to the top.

Notes

  • APY values are percentages (4.63 means 4.63%). LI.FI's own quickstart multiplies by 100, which overstates every figure 100×.
  • --min-tvl maps to the API's minTvlUsd. Sending the wrong param name returns the entire fleet unfiltered, with no error.

License

Apache-2.0