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

@lombard.finance/sdk

v4.4.0

Published

TypeScript SDK for the Lombard protocol - stake BTC, mint LBTC, and interact with DeFi

Readme

@lombard.finance/sdk

The official Lombard SDK for Bitcoin staking and LBTC operations across Bitcoin, EVM, Solana, Sui, and Starknet.

Installation

npm install @lombard.finance/sdk

Peer Dependencies

The SDK requires these peer dependencies:

npm install axios@^1 bignumber.js@^9 @bitcoinerlab/[email protected] [email protected] @layerzerolabs/[email protected]

Note: viem is included as a direct dependency and does not need to be installed separately.

Quick Start

import { createLombardSDK, Chain, AssetId } from '@lombard.finance/sdk';

// Initialize SDK
const sdk = await createLombardSDK({
  env: 'prod',
  providers: {
    evm: () => window.ethereum,
    bitcoin: () => window.btc,
  },
});

// Create a BTC Stake action
const stake = sdk.chain.btc.stake({
  assetOut: AssetId.LBTC,
  destChain: Chain.ETHEREUM,
});

// Listen to events
stake.on('status-change', (status) => console.log('Status:', status));
stake.on('progress', (progress) => console.log('Progress:', progress));

// Execute the action lifecycle
await stake.prepare({ amount: '0.001', recipient: '0x...' });
await stake.authorize(); // If required
await stake.generateDepositAddress();

// User sends BTC to stake.depositAddress
// Funds auto-mint to LBTC

Configuration

The SDK provides two approaches:

Full SDK (Recommended)

// SDK initialization is async (fetches config)
const sdk = await createLombardSDK({
  env: 'prod',
  providers: { evm: () => window.ethereum },
});

Architecture

The SDK uses an action-based architecture where each operation (stake, unstake, deploy, etc.) is represented as an action object with a consistent lifecycle:

create → prepare → execute → complete

Available Actions

| Chain | Action | Description | |-------|--------|-------------| | BTC | sdk.chain.btc.stake() | Stake BTC → LBTC | | BTC | sdk.chain.btc.deposit() | Deposit BTC → BTC.b | | EVM | sdk.chain.evm.unstake() | Burn LBTC → BTC | | EVM | sdk.chain.evm.stake() | Stake BTC.b → LBTC | | EVM | sdk.chain.evm.redeem() | Redeem from DeFi vaults | | EVM | sdk.chain.evm.deploy() | Deploy to DeFi vaults | | Solana | sdk.chain.solana.unstake() | Burn LBTC on Solana | | Sui | sdk.chain.sui.unstake() | Burn LBTC on Sui | | Starknet | sdk.chain.starknet.unstake() | Burn LBTC on Starknet |

Data API

Query deposits, unstakes, points, and exchange rates:

const deposits = await sdk.api.deposits(address);
const unstakes = await sdk.api.unstakes(address);
const points = await sdk.api.points(address);
const rate = await sdk.api.exchangeRatio();

Playground

Try the SDK interactively at lombard.finance/playground.

The playground provides:

  • Live code examples for all actions
  • Real wallet connections
  • Testnet and mainnet environments
  • Step-by-step action execution

Documentation

Non-EVM Chains

For Solana, Sui, and Starknet, install the chain-specific modules:

# Solana
npm install @lombard.finance/sdk-solana

# Sui  
npm install @lombard.finance/sdk-sui

# Starknet
npm install @lombard.finance/sdk-starknet

Register modules when creating the SDK:

import { solanaModule } from '@lombard.finance/sdk-solana';
import { suiModule } from '@lombard.finance/sdk-sui';

const sdk = await createLombardSDK({
  env: 'prod',
  modules: [solanaModule(), suiModule()],
  providers: {
    solana: () => window.solana,
    sui: () => suiWallet,
  },
});

Requirements

  • TypeScript: 5.0+
  • Node.js: 18+ (ESM support required)
  • Browser: Modern browsers with ES2020 support

Environment

| Environment | Description | Use For | |-------------|-------------|---------| | prod | Production mainnet | Live deployments | | testnet | Public testnet | Integration testing | | stage | Staging environment | Internal testing |

License

MIT © Lombard Finance