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

@monpad/sdk

v0.3.0

Published

Monpad SDK for Monad: list, quote, buy, sell and launch on the Uniswap V4 pad (pay in MON or USDC)

Readme

@monpad/sdk

TypeScript SDK for Monpad on Monad mainnet. List coins, quote, buy, sell and launch on the Uniswap V4 pad. Pay and receive MON or USDC; the router converts for you. Built on viem.

npm i @monpad/sdk viem
import { createPublicClient, createWalletClient, http, parseEther } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { createMonpad } from '@monpad/sdk';

const chain = { id: 143, name: 'Monad', nativeCurrency: { name: 'MON', symbol: 'MON', decimals: 18 }, rpcUrls: { default: { http: ['https://rpc.monad.xyz'] } } };
const publicClient = createPublicClient({ chain, transport: http() });
const walletClient = createWalletClient({ account: privateKeyToAccount(process.env.PRIVATE_KEY), chain, transport: http() });
const monpad = createMonpad({ publicClient, walletClient }); // Monad mainnet addresses are built in

const { launches } = await monpad.listLaunches({ limit: 5 });
const token = launches[0].token;

await monpad.buy({ token, monIn: parseEther('0.5') });                 // min-out is set from a live quote (1% slippage)
await monpad.sell({ token, tokensIn: 1000n * 10n ** 18n });             // receive MON (default) or { receive: 'usdc' }
await monpad.launch({ name: 'Milk Baron', symbol: 'MILK', creatorTaxBps: 200, devBuyMon: parseEther('2') });

No wallet? Reads and quotes still work: createMonpad({ publicClient }).

API

| Call | What it does | |---|---| | listLaunches({ limit }) | Newest coins with price (USD), market cap, creator tax and pool id | | getToken(token) | One coin. Throws NotAMonpadToken for anything else | | quoteBuy({ token, monIn \| usdcIn }) | Tokens you would get. Works without a wallet | | buy({ token, monIn \| usdcIn, slippageBps?, minTokensOut?, simulate? }) | Buys. Handles the USDC approval. Reverts below the minimum | | quoteSell({ token, tokensIn, receive? }) / sell({ ... }) | Same for selling. Handles the token approval | | launch({ name, symbol, creatorTaxBps?, devBuyMon \| devBuyUsdc?, simulate? }) | Free launch with an optional first buy. Tax 0 to 500 bps | | claimable(account, asset) / claim(asset) | Creator earnings (USDC or a coin you launched) | | harvest(token) | Splits the fees a pool has earned. Anyone can call it | | getMonshiBurned() / getSpec() / monPriceUsd() | Burn counter, fee policy and addresses, MON price |

Every write takes simulate: true to run against the chain without sending. Errors are typed: SlippageExceeded, DeadlineExpired, Paused, NotAMonpadToken, WalletRequired.

Override any contract with createMonpad({ addresses: { launcher, hook, router, ... } }).

Test

FORK_URL=http://127.0.0.1:8545 npm test runs 18 checks against a local fork of Monad mainnet (see test/fork.mjs).