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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ape.swap/bonds-sdk

v3.0.25

Published

Ape Bond SDK

Downloads

8,482

Readme

@ape.swap/bonds-sdk

npm

The @ape.swap/bonds-sdk package provides an embeddable set of tools and UI components to integrate and manage bond-related functionalities for multi-chain environments. This SDK simplifies the process of displaying, interacting with, and customizing bond-related user interfaces in your projects.

Key Features

  • Fully customizable bond views powered by the following components: <FullBondsView />, <Bonds/> & <YourBonds />.
  • Multi-chain support for a ever-growing array of Blockchains that currently include BNB Chain, Ethereum, Base, Polygon, Arbitrum, Lightlink, Linea, Graphlinq, IOTA and Crossfi.
  • Prebuilt styles and layouts optimized for embedding.
  • Compatibility with the most popular web3 development library: Wagmi.
  • Plug-and-play configuration to fit various project requirements.

Installation

To install the package via npm or yarn, run the following command:

# With npm
npm install @ape.swap/bonds-sdk

# With yarn
yarn add @ape.swap/bonds-sdk

Basic Usage

Here's an example of how to integrate the @ape.swap/bonds-sdk package into your project:

import React from 'react'
import { FullBondsView, ChainId } from '@ape.swap/bonds-sdk'
import '@ape.swap/bonds-sdk/dist/styles.css'
import 'swiper/swiper.min.css'

const MyBondsComponent = () => {
  return (
    <FullBondsView
      referenceId="yourProjectId"
      chains={[
        ChainId.BSC,
        ChainId.BASE,
        ChainId.MATIC,
        ChainId.MAINNET,
        ChainId.ARBITRUM,
        ChainId.LIGHTLINK,
        ChainId.LINEA,
        ChainId.GRAPHLINQ,
        ChainId.IOTA,
        ChainId.CROSSFI,
        ]}
      useRainbowKit={true}
      useHotBonds={true}
      theme={{
        "radii": "10px",
        "colors": {
            "primaryButton": "#6560C5",
            "white1": "#0E0D16",
            "white2": "#161420",
            "white3": "#1F1D29",
            "white4": "#282632",
            "white5": "#312F3A",
            "text": "#FAFAFA",
            "primaryBright": "#FFF"
            }
        }}
    />
  )
}

export default MyBondsComponent

Configuration

The core of the SDK lies in its config object params, passed as a prop to its components. Below is a breakdown of key options:

| Property | Type | Description | |-----------------|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------| | referenceId | string | A unique identifier for the bonds, shall be provided by ApeBond team. | | chains | Array | An array of supported chain IDs (e.g., 56, 1, 137, etc). It also determines the order of the chains on the bond list. | | useRainbowKit | boolean | Whether to enable RainbowKit for wallet connections. Might be replaced for an enum in the near future. | | useHotBonds | boolean | Whether to show the "hot bonds" component. | | theme | Object (optional) | This is how you can customize the styles of the SDK. Override styles like colors, typography, and layout settings to match your project's branding. |
| tokenSymbol | string[] | This parameter is specific to the <SingleBond /> component. It defines the token(s) to display in the UI. Currently, only a single token (one element in the array) is supported.|

Chain Support

The SDK currently supports the following chains:

  • Binance Smart Chain (BSC)
  • Ethereum (MAINNET)
  • Polygon (MATIC)
  • Arbitrum
  • Base
  • Lightlink
  • Linea
  • Graphlinq
  • IOTA
  • CrossFi

The list get updated constantly, so make sure to use latest version of the SDK.


Customizing Styles

The package comes with prebuilt styles that you must import in your project. Make sure to include the following CSS files:

import '@ape.swap/bonds-sdk/dist/styles.css'
import 'swiper/swiper.min.css'

These styles ensure that the components render correctly and include all necessary design details. You can customize or override styles using your own branding.

You can test and visualize the different customization options on the SDK styling playground (beta):

https://sdk.ape.bond/

Once you are happy with the styles, make sure to copy the output styles object and paste it under the theme param on the SDK component you will be using.

Bear in mind, that the components of the SDK will use the width and height provided by the parent component.


Dependencies

The following are some key dependencies you must have for the SDK to work properly:

  • React: Required to build the UI. Ensure your project uses React v18 or later.
  • Wagmi: Used for handling wallet connections and blockchain interactions.

🦍 Built and Maintained by ApeSwap | ApeBond

For questions, issues, or contributions, reach out to ApeBond or contact us on Telegram .


License

This package is licensed under the MIT License.