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

@staccoverflow/offerbook-sdk

v0.1.2

Published

Isolated TypeScript client for the Jupiter Offerbook program (meme lending for launchpad coins). Pinned to anchor 0.30 — do NOT consume from pump's 0.29 graph.

Readme

@stacc/offerbook-sdk

Isolated TypeScript client for the Jupiter Offerbook program — the rail for meme lending on launchpad coins.

Offerbook is time-based P2P lending: no oracle, no price liquidation, lender sets the terms. Crucially, the on-chain program (offerbkFMvVfpQhL8ZQ5iromnjct5rz3r52B9ewu3ie) has no token allowlist — any SPL / Token-2022 mint or NFT can be collateral or principal. The "verified tokens, USDC-only quote" you see on offerbook.jup.ag is purely their frontend + indexer curation. Drive the program directly and you can borrow/lend against any coin minted on the launchpad.

Why a separate package

The pump launchpad pins @coral-xyz/[email protected], but the Offerbook IDL is the Anchor 0.30+/Codama format (address + discriminator arrays). 0.29's Program cannot parse it. This package pins anchor 0.30 and is isolated so pump's graph is untouched. Do not import it into a 0.29 dependency tree.

Install & prove the unlock

cd pump/offerbook-sdk
pnpm install
pnpm demo:read           # lists Offerbook offers/loans for stacSOL, straight from chain
# RPC=... MINT=<any mint> pnpm demo:read

Read path (indexer)

const client = new OfferbookClient(new Connection(RPC));
const offers = await client.getOffersForCollateral(coinMint); // the per-coin book
const loans  = await client.getLoansForCollateral(coinMint);
const config = await client.getConfig();

Write path (offer creation)

import { createBorrowOfferIxs, createLendOfferIxs, cancelOfferIx } from "@stacc/offerbook-sdk";

// Borrow USDC against a meme coin you hold:
const ixs = await createBorrowOfferIxs(client, borrower, coinMint, {
  principalAmount: 100_000000,   // 100 USDC (raw, 6dp)
  collateralAmount: 500_000000000,
  apyBps: 2800, durationSecs: 7*86400, expirySecs: 86400,
});

Status / next

  • ✅ read path (offers, loans, config) + create/cancel offer instructions
  • fill_* / repay_token_loan / claim_token_loan (need counterparty accounts derived from the fetched offer/loan) — next slice, with the NestJS lending indexer module in pump-v2-client-server.

Landmines

  • One offer per wallet: the offer PDA seeds are ["offer", signer, signer_user], so a wallet has a single offer slot — cancel/fill before opening another.
  • disable_repayment = 1 in live config (decoded 2026-06-28). Verify repay semantics before wiring the repay flow.
  • Governance: admin can pause + retune fees; program is upgradeable. Not trustless.
  • USDC-only is a product choice; the program accepts any principal mint, but non-USDC offers won't be surfaced/filled by anyone else's UI.