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

@solard/sdk

v0.2.44

Published

Public Solard SDK for wallets, trading, history, live market subscriptions and token metadata.

Readme

@solard/sdk

Public Solard SDK. It intentionally contains no duplicate business logic; it re-exports the supported @solard/core API.

import { createSolard } from "@solard/sdk";

const slrd = createSolard();
await slrd.addToken(mint, undefined, { venueHint: "pumpswap", pool: poolAddress });
const buy = await slrd.buy(
  { wallet: "trader-1", token: mint, amount: { sol: 0.001 }, slippageBps: 500 },
  { intentKey: "example:buy:1", priorityFee: { cuLimit: 600_000, microLamports: 200_000 } },
);
if (buy.status === "confirmed") {
  console.log(buy.solPrincipalDeltaLamports, buy.networkFeeLamports, buy.targetTokenDeltaRaw);
}
// Sell through the same atomic quote-token -> SOL route.
// await slrd.sell({ wallet: "trader-1", token: mint, amount: "all", slippageBps: 500 });

The trader preset supports Pump/PumpSwap, Meteora DBC and DAMM v2. Custom quote routes require a supported SOL market for the quote token and suitable lookup tables when needed. Composer routes fall back to Jupiter instructions. Unavailable converted prices are null. unresolved means reconcile with resumeTrade(intentKey) before another trade. Buy accepts minOutputRaw; sell accepts minOutputLamports. Both use confirmed/failed/unresolved results with phase, code, attempts and accounting. quote, curveLiquidity, maxSendableSol, transferToken and exitWallet share the core implementation. Raydium AMM/CPMM execution does not supply live pool prices.

In 0.2.32, sell an exact positive integer number of raw token units with the object API. For a six-decimal mint, "1000000" is one token:

const sold = await slrd.sell(
  { wallet: "trader-1", token: mint, amountRaw: "1000000", slippageBps: 500 },
  { intentKey: "example:sell:1", priorityFee: { cuLimit: 200_000, microLamports: 20_000 } },
);

amountRaw also accepts bigint and is mutually exclusive with amount. An economic sell guard rejects output at or below the selected network fee plus tip before broadcasting, with UNECONOMIC_SELL. Its sellEconomics fields describe the expected output and selected costs; they are not charges already paid. networkFeeLamports is the actual on-chain charge only when known. Selected priority cost reserves the chosen CU limit, so it differs from consumed CUs.

The configured client inherits its database path and RPC endpoints for listeners. Live history is recorded by default; disable recording with history: false:

const slrd = createSolard({ dbPath: "./slrd.db", rpcUrl });
const listener = await slrd.listenTrades({ tokens: [mint] });
listener.onTrade((event) => console.log(event));
// await slrd.listenTrades({ tokens: [mint], history: false });
await listener.close(); // Wait for queued history writes to flush.

The collected live tail is partial history, not a complete backfill. Processed events can later disappear; slrd.historicalTape(mint) excludes them by default. Pass { includeProcessed: true } to inspect that provisional tail and check the returned completeness information before using it for backtests.