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

@lunexfinance/sdk

v0.1.1

Published

TypeScript SDK for the Lunex protocol on Arc Network. Swap, liquidity, yield, and Circle CCTP V2 bridge.

Readme

@lunex/sdk

TypeScript-first SDK for the Lunex protocol on Arc Network. Quote, swap, manage liquidity, and bridge USDC across chains via Circle CCTP V2 in a few lines of code.

import { Lunex } from "@lunex/sdk";

const lunex = new Lunex({ apiKey: process.env.LUNEX_KEY! });

const quote = await lunex.quote({ tokenIn: "USDC", tokenOut: "EURC", amountIn: "100" });
const tx    = await lunex.swap({ walletAddress: "0x...", tokenIn: "USDC", tokenOut: "EURC", amountIn: "100" });

Install

npm install @lunex/sdk

DEX methods

  • lunex.quote(params) | executable quote
  • lunex.swap(params) | unsigned swap tx
  • lunex.price({ base, quote }) | live mid price
  • lunex.liquidity({ pool? }) | reserves + LP supply
  • lunex.info() | adapter metadata
  • lunex.waitForTx(hash) | poll Arc RPC for receipt

Bridge (Circle CCTP V2)

The bridge module always returns unsigned tx payloads. The integrator signs every transaction with their own wallet | Lunex never holds keys.

const prepared = await lunex.bridge.prepare({
  sourceChain: "base-sepolia",
  amount: "100000000",                 // 100 USDC, 6 decimals
  mintRecipient: "0xUserDcwAddress",   // optional | defaults to source EOA
});

// 1. Sign approve on source chain
await wallet.sendTx(prepared.approveTx);
// 2. Sign burn on source chain
const burnHash = await wallet.sendTx(prepared.burnTx);

// 3. Wait for Circle attestation (Lunex relays)
const att = await lunex.bridge.attestation(burnHash);

// 4. Build the unsigned receiveMessage tx for Arc, sign it on Arc
const { receiveTx } = await lunex.bridge.mint({ message: att.message!, attestation: att.attestation! });
await arcWallet.sendTx(receiveTx);

Or use the convenience helper:

await lunex.bridge.execute({
  signer: { sendTx, arcSendTx },
  params: { sourceChain: "base-sepolia", amount: "100000000", mintRecipient: dcw },
  onStatus: (s) => console.log(s),
});

Supported source chains

ethereum-sepolia, base-sepolia, arbitrum-sepolia, avalanche-fuji, polygon-amoy, optimism-sepolia.

mintRecipient

Configurable. If you pass it, USDC mints at that address on Arc regardless of which EOA signed the burn | useful for Distributed Custody Wallets (DCW) where the signing key is separate from the destination address.

Burn, mint, and recover endpoints

  • lunex.bridge.burnt({ sourceTxHash, sourceChain }) checks whether a source burn has a ready attestation.
  • lunex.bridge.mint({ message, attestation }) builds the unsigned Arc receiveMessage tx.
  • lunex.bridge.recover({ sourceTxHash, sourceChain }) rebuilds the Arc mint tx for funds stuck after burn.

Integrator calls receiveMessage on Arc. The SDK builds the unsigned tx | you keep custody. The bridge.execute() helper wraps the full flow if you provide an Arc signer.

Features

  • TypeScript-first | strict types on every payload
  • Automatic retries on 429 / 5xx with jittered backoff
  • Configurable timeout, base URL, and fetch implementation
  • LunexError with status, code, and raw response data
  • Zero React deps | works in Node 18+, Bun, Deno, browsers, edge runtimes

Auth

Pass your key via the apiKey constructor option. The SDK sends it as x-api-key on every authenticated request. Get a key from the Lunex SDK developer portal at /lunexsdk.

Publishing

cd packages/sdk
npm install
npm run build
npm login                         # one-time, requires npm 2FA
npm publish --access public       # publishes the current version
# bump:
npm version patch && git push --tags

prepublishOnly runs tsup to emit ESM + CJS + .d.ts into dist/ before publishing.