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

pumpswap

v0.0.2

Published

SDK for PumpSwap DEX

Downloads

9

Readme

PumpSwap SDK

A powerful and user-friendly SDK for interacting with the PumpSwap Decentralized Exchange (DEX). This SDK provides essential functionality for trading, liquidity provision, and price checking on the PumpSwap protocol.

Features

Current Features

  • Token Swapping:
    • [ ] Easily swap between different tokens with optimal routing
  • Liquidity Management:
    • [ ] Add liquidity to trading pairs
    • [ ] Remove liquidity from pools
    • [ ] View current liquidity positions
  • Price Checking:
    • [ ] Real-time price feeds
    • [ ] Price impact calculations

Installation

npm install pumpswap-sdk
# or
yarn add pumpswap-sdk

Quick Start

1. Set up your Client

First, set up your client with a desired RPC endpoint and network cluster.

import { createPumpSwapClient, rpcConnection } from 'pumpswap'
import { mainnet } from 'pumpswap/networks'

const client = createPumpSwapClient({
  network: mainnet,
  transport: rpcConnection('https://api.mainnet-beta.solana.com'),
})

In a production app, it is highly recommended to use a dedicated RPC provider (Helius, GenesysGo, QuickNode, etc).

2. Consume Actions

Now that you have a client set up, you can interact with the PumpSwap protocol and consume actions!

// Example: Get token price
const tokenPrice = await client.getTokenPrice({
  token: 'SOL'
})

// Example: Perform a token swap
const swapResult = await client.swap({
  tokenIn: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
  tokenOut: 'So11111111111111111111111111111111111111112', // SOL
  amountIn: '10.0',
  slippageBps: 50, // 0.5%
})

// Example: Add liquidity
const liquidityResult = await client.addLiquidity({
  tokenA: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
  tokenB: 'So11111111111111111111111111111111111111112', // SOL
  amountA: '100.0',
  amountB: '1.0',
})

Documentation

For detailed documentation and examples, please refer to our documentation.

Development

Prerequisites

  • Node.js (v16 or higher)
  • Yarn or npm

Setup

  1. Clone the repository
git clone https://github.com/yourusername/pumpswap-sdk.git
cd pumpswap-sdk
  1. Install dependencies
yarn install
# or
npm install
  1. Build the project
yarn build
# or
npm run build

Testing

yarn test
# or
npm test

Contributing

We welcome contributions! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Security

If you discover a security vulnerability, please send an e-mail to [email protected].

Support

For support and questions, please join our Discord community or open an issue on GitHub.