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

rampart-monad

v0.1.1

Published

Monad-native AgentKit SDK - 55+ protocols, one import

Readme

Rampart

Monad AgentKit. Read every protocol with one import.

npm tests protocols license

Install

npm install rampart-monad

Peer deps: viem ^2 · ai ^6 · zod ^4

Why

Getting MON price without Rampart:

const client = createPublicClient({ chain: monad, transport: http() })
const pool = await client.readContract({ address: KURU_REGISTRY, abi: [...] })
// 35 more lines of parsing, decimals, error handling...

With Rampart:

import { getTokenPrice } from 'rampart-monad'
const { price } = await getTokenPrice('MON')

Usage

Layer 1 - Functions

import {
  getTokenPrice,
  getAllLSTStats,
  getLendingRates,
  getPortfolio,
  getMarketOverview,
  getBestSwapRoute,
  getVerifiedPrice,
} from 'rampart-monad'

// Cross-validated price from 4 oracles + DEX
const { bestPrice } = await getVerifiedPrice('MON')
// { bestPrice: 0.031, confidence: 'high', sources: ['kuru', 'pyth'] }

// Best liquid staking APR across all LSTs
const best = await getBestLST()
// { token: 'shMON', protocol: 'FastLane', apr: 12.1 }

// Best swap route across 5 DEXes
const route = await getBestSwapRoute('USDC', 'MON', 100)
// { dex: 'kuru', amountOut: 282.4, priceImpact: 0.0012 }

// Full wallet snapshot
const portfolio = await getPortfolio('0x...')
// { nativeBalance, tokens, lstPositions, ... }

Layer 2 - Class

import { Rampart } from 'rampart-monad'

const r = new Rampart()

await r.getMarketOverview()
await r.getBestYieldStrategy()
await r.compareYields()
await r.detectDexArbitrage('MON')

// Real-time streams (400ms Monad blocks)
const stop = r.subscribeToSwaps(swap => console.log(swap))
const stop2 = r.subscribeToNewBlocks(block => console.log(block.number))
stop()
stop2()

Layer 3 - AI Agent

import { RampartAgent } from 'rampart-monad'
import { generateText } from 'ai'
import { anthropic } from '@ai-sdk/anthropic'

const agent = new RampartAgent()

const { text } = await generateText({
  model: anthropic('claude-3-5-sonnet-20241022'),
  tools: agent.getTools(),
  maxSteps: 5,
  prompt: 'Best yield on Monad right now?',
})
// "shMON at 12.1% APR (FastLane), followed by aprMON at 9.6% (aPriori)..."

Protocols

| Protocol | Category | TVL | |---|---|---| | Morpho Blue | Lending | $186.7M | | Multipli.fi | RWA Yield | $50M | | Neverland | Lending | $43.3M | | Upshift | Yield | $40.2M | | Uniswap V4 | DEX | $39.2M | | Euler V2 | Lending | $29.2M | | Curve Finance | AMM | $25.5M | | Gearbox V3 | Lending | $19.7M | | Curvance | Lending | $18.6M | | FastLane (shMON) | LST | $15.3M | | Balancer V3 | AMM | $10.3M | | LFJ / Trader Joe | DEX | $5.3M | | Kintsu (sMON) | LST | $4.4M | | Renzo | Liquid Restaking | $3M | | Monday Trade | DEX + Perps | $3.2M | | PancakeSwap V3 | DEX | $3.3M | | Uniswap V3 | DEX | $2.4M | | Beefy | Yield | $2M | | Magma (gMON) | LST | $1.7M | | Kuru | CLOB | $1.1M | | Perpl | Perps | $1.1M | | WooFi | DEX | $134K | | Clober V2 | CLOB | $143K | | nad.fun | Launchpad | $125K | | aPriori (aprMON) | LST | live | | KyberSwap | Aggregator | live | | iZiSwap | DEX | live | | Bean Exchange | DEX | live | | Sablier | Streaming | live | | Covenant | CDP | live | | Chainlink | Oracle | live | | Pyth | Oracle | live | | Redstone | Oracle | live | | Chronicle | Oracle | live | | Envio | Indexer | live |

$800M+ TVL covered across 55+ protocols on Monad mainnet.

API Reference

Prices

getVerifiedPrice(token)        // median from 4 oracles + DEX
getPrices(tokens[])            // batch prices
getLSTRatios()                 // gMON/shMON/sMON/aprMON exchange rates
detectOracleDiscrepancy(token) // flags price gaps across sources

DEX

getTokenPrice(token)
getOrderbook(symbol, depth?)
simulateKuruSwap(tokenIn, tokenOut, amount)
getBestSwapRoute(from, to, amount)
getAllSwapQuotes(from, to, amount)
detectDexArbitrage(token)

LST

getAllLSTStats()
getBestLST()
compareLSTs()
getTotalStakedMON()

Lending

getLendingRates()
getBestSupplyAsset()
getEulerVaults()
getMorphoVaults()
getGearboxPools()

Portfolio

getPortfolio(address)
getNativeBalance(address)
getTokenBalances(address)
getLSTPositions(address)
getEulerPositions(address)

Market

getMarketOverview()
getBestYields()
getArbitrageAlerts()
compareAssetYields(asset)

Perps

getMondayMarkets()
getPerplMarkets()
getFundingRates()
getPerpVaultStats()

Real-time

subscribeToSwaps(callback)
subscribeToStaking(callback)
subscribeToNewBlocks(callback)

Architecture

Layer 1: Functions     src/protocols/* - direct protocol reads
Layer 2: Rampart       src/client.ts - aggregated methods
Layer 3: RampartAgent  src/agent.ts - 41 AI tools (Vercel AI SDK)

Live data from Monad mainnet (ChainID 143, https://rpc.monad.xyz).

Development

npm install
npm test        # 106 tests live against mainnet
npm run build   # ESM + CJS + DTS
npm run typecheck

Contributing

See CONTRIBUTING.md for how to add a new protocol.

License

MIT © 2026