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

torch-liquidation-bot

v2.0.8

Published

read-only lending market scanner for Torch Market on Solana

Readme

torch-liquidation-bot v2.0.7 (Read-Only)

Read-only lending market scanner for Torch Market on Solana. No wallet required. Only an RPC endpoint is needed.

v2.0.0 Breaking Change: All wallet-dependent code (bot mode, watch mode, transaction signing) was removed. The source tree contains only read-only code. No wallet, no keypair, no signing.

Install

npm install torch-liquidation-bot

Quick Start

# show lending info for all migrated tokens
RPC_URL=<rpc> npx torch-liquidation-bot

# show lending info for a specific token
MINT=<mint> RPC_URL=<rpc> npx torch-liquidation-bot

What It Does

Every migrated token on Torch has a built-in lending market. This skill discovers those markets and displays their parameters — interest rates, LTV thresholds, treasury balances, and active loan counts.

That's it. No wallet loaded. No transactions built. No state changes.

Configuration

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | RPC_URL | yes | -- | Solana RPC endpoint. If your provider embeds an API key in the URL, use a read-only key or a public endpoint. | | MINT | no | -- | Token mint address (omit to show all tokens) | | LOG_LEVEL | no | info | debug, info, warn, error |

No WALLET, no MODE, no bot-specific config.

Programmatic Usage

import { loadReadOnlyConfig } from 'torch-liquidation-bot/config'
import { Connection } from '@solana/web3.js'
import { getTokens, getLendingInfo } from 'torchsdk'

const config = loadReadOnlyConfig()
const connection = new Connection(config.rpcUrl, 'confirmed')

const { tokens } = await getTokens(connection, {
  status: 'migrated',
  sort: 'volume',
  limit: 50,
})

for (const t of tokens) {
  const lending = await getLendingInfo(connection, t.mint)
  console.log(`${t.symbol}: ${lending.active_loans} active loans`)
}

Architecture

src/
├── types.ts    — ReadOnlyConfig interface
├── config.ts   — loadReadOnlyConfig()
├── utils.ts    — sol() + bpsToPercent() helpers
└── index.ts    — read-only entry point

Lending Parameters

| Parameter | Value | |-----------|-------| | Max LTV | 50% | | Liquidation threshold | 65% LTV | | Interest rate | 2% per epoch (~7 days) | | Liquidation bonus | 10% of collateral | | Min borrow | 0.1 SOL |

Testing

Requires Surfpool running a mainnet fork:

surfpool start --network mainnet --no-tui
pnpm test    # read-only test

Security

  • No wallet loaded, no keypair decoded, no private key in memory
  • No transaction building, no signing, no state changes
  • Outbound connections: Solana RPC only
  • Minimal dependencies: @solana/web3.js + torchsdk
  • No post-install hooks, no remote code fetching
  • RPC_URL is used only for read-only RPC calls — never logged, transmitted externally, or stored

Links

License

MIT