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

pump-fun-token-launcher

v1.0.0

Published

Programmatically launch pump.fun tokens with TypeScript support

Readme

Pump.Fun Token Launcher

A TypeScript/JavaScript package for programmatically launching tokens on pump.fun.

Installation

npm install @bilix-software/pump-fun-token-launcher

Usage

Basic Usage

import { launchToken } from '@bilix-software/pump-fun-token-launcher';

const config = {
  name: "My Awesome Token",
  symbol: "MAT",
  description: "A revolutionary token that will change everything",
  imageUrl: "https://example.com/token-image.png",
  initialBuy: 0.5, // SOL amount for initial buy
  slippage: 5, // 5% slippage tolerance
  priorityFee: 0.001 // SOL amount for priority fee
};

const privateKey = "your_base64_encoded_private_key";

try {
  const result = await launchToken(config, privateKey);
  
  if (result.success) {
    console.log("Token launched successfully!");
    console.log("Token Address:", result.tokenAddress);
    console.log("Transaction Signature:", result.signature);
  } else {
    console.error("Launch failed:", result.error);
  }
} catch (error) {
  console.error("Error:", error);
}

Advanced Usage with Custom RPC

import { launchToken, TokenLaunchConfig } from '@bilix-software/pump-fun-token-launcher';
import { Keypair } from '@solana/web3.js';

const config: TokenLaunchConfig = {
  name: "My Token",
  symbol: "MTK",
  description: "Token description",
  initialBuy: 1.0,
  slippage: 3,
  priorityFee: 0.005
};

// You can pass a Keypair instead of a string
const keyPair = Keypair.generate();
const customRpcUrl = "https://your-custom-rpc-endpoint.com";

const result = await launchToken(config, keyPair, customRpcUrl);

Using Individual Utilities

import { validateTokenConfig, GLOBAL, PUMP_FUN_PROGRAM } from '@bilix-software/pump-fun-token-launcher';

// Validate configuration before launching
try {
  const isValid = validateTokenConfig(config);
  console.log("Configuration is valid:", isValid);
} catch (error) {
  console.error("Invalid configuration:", error.message);
}

// Access constants
console.log("Global Address:", GLOBAL.toString());
console.log("Pump Fun Program:", PUMP_FUN_PROGRAM.toString());

API Reference

launchToken(config, privateKey, rpcUrl?)

Launches a new token on pump.fun.

Parameters:

  • config (TokenLaunchConfig): Token configuration object
  • privateKey (string | Keypair): Base58 encoded private key or Keypair instance
  • rpcUrl (string, optional): Custom Solana RPC URL

Returns: Promise<LaunchResult>

TokenLaunchConfig

interface TokenLaunchConfig {
  name: string;           // Token name (required)
  symbol: string;         // Token symbol (required, max 10 chars)
  description: string;    // Token description (required)
  imageUrl?: string;      // Token image URL (optional)
  initialBuy?: number;    // Initial buy amount in SOL (default: 0.1)
  slippage?: number;      // Slippage tolerance % (default: 5)
  priorityFee?: number;   // Priority fee in SOL (default: 0.001)
}

LaunchResult

interface LaunchResult {
  success: boolean;       // Whether the launch was successful
  signature?: string;     // Transaction signature (if successful)
  tokenAddress?: string;  // Created token address (if successful)
  error?: string;         // Error message (if failed)
}

validateTokenConfig(config)

Validates a token configuration object.

Parameters:

  • config (TokenLaunchConfig): Configuration to validate

Returns: boolean - Returns true if valid, throws error if invalid

Environment Setup

  1. Ensure you have a Solana wallet with sufficient SOL for:

    • Transaction fees
    • Initial token purchase (if specified)
    • Priority fees
  2. Your private key should be base64 encoded or you can pass a Keypair object directly.

Error Handling

The package includes comprehensive error handling:

const result = await launchToken(config, privateKey);

if (!result.success) {
  switch (result.error) {
    case 'Token name and symbol are required':
      // Handle missing required fields
      break;
    case 'Insufficient balance':
      // Handle insufficient wallet balance
      break;
    default:
      // Handle other errors
      console.error('Launch failed:', result.error);
  }
}

Development

Building from Source

git clone https://github.com/bilix-software/pump-fun-token-launcher.git
cd pump-fun-token-launcher
npm install
npm run build

Running the Example

npm run example

Requirements

  • Node.js 16 or later
  • A Solana wallet with sufficient SOL balance
  • Valid Solana RPC endpoint access

License

MIT License - see LICENSE file for details.

Support

For issues and support:

  • GitHub Issues: https://github.com/bilix-software/pump-fun-token-launcher/issues
  • Telegram: https://t.me/bilixsoftware
  • Email: [email protected]

Contributing

Contributions are welcome! Please read the contributing guidelines and submit pull requests for any improvements.

Tips

JATt1ta9GcbVMThdL18rXUqHn3toCMjWkHWtxM5WN3ec