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

@flipflop-sdk/cli

v1.3.18

Published

FlipFlop CLI tool for common operations

Readme

FlipFlop CLI ✨

A command-line interface for Flipflop token operations.

Installation

npm install -g @flipflop-sdk/cli

Usage

Authentication

The CLI supports two ways to provide your keypair:

  1. Base58 format: Use --keypair-bs58 with your private key in base58 format
  2. File format: Use --keypair-file with path to a JSON file containing your private key as an array of 64 numbers

Note: If both parameters are provided, --keypair-file takes priority.

Commands

Launch a new token

flipflop launch --name "MyToken" --symbol "MTK" --keypair-file ./keypair.json --rpc <your_rpc_url>
# or
flipflop launch --name "MyToken" --symbol "MTK" --keypair-bs58 "your_base58_private_key" --rpc <your_rpc_url>

Set URC code

flipflop set-urc --mint <mint_address> --urc "mycode" --keypair-file ./keypair.json --rpc <your_rpc_url>
# or
flipflop set-urc --mint <mint_address> --urc "mycode" --keypair-bs58 "your_base58_private_key" --rpc <your_rpc_url>

Mint tokens

flipflop mint --mint <mint_address> --urc "mycode" --keypair-file ./keypair.json --rpc <your_rpc_url>
# or
flipflop mint --mint <mint_address> --urc "mycode" --keypair-bs58 "your_base58_private_key" --rpc <your_rpc_url>

Display mint information

flipflop display-mint --mint <mint_address> --rpc <your_rpc_url>

Display URC information

flipflop display-urc --urc "mycode" --rpc <your_rpc_url>

View system configuration

flipflop system-config --rpc <your_rpc_url>

Displays comprehensive system configuration including:

  • System admin address
  • Token count
  • Fee rates and accounts
  • Pool settings
  • System status

Upload metadata and get URI

flipflop metadata --name "MyToken" --symbol "MTK" --description "My awesome token" --image-path ./token-image.png --rpc <your_rpc_url>

Uploads token metadata (including image) and returns the metadata URI for use in token creation.

Keypair File Format

The keypair file should be a JSON file containing an array of 64 numbers representing your private key:

[174, 47, ..., 238, 135]

Global Options

  • --rpc <url>: RPC endpoint (default: https://api.mainnet-beta.solana.com)
  • --keypair-bs58 <bs58>: Keypair in base58 format
  • --keypair-file <path>: Path to keypair file (JSON array format)

Command-specific Options

Launch Command

  • --name <name>: Token name (required)
  • --symbol <symbol>: Token symbol (required)
  • --uri <uri>: Token metadata URI (optional)
  • --token-type <type>: Token type - meme or standard (default: meme)

Set URC Command

  • --mint <address>: Mint account address (required)
  • --urc <code>: URC referral code (required)

Mint Command

  • --mint <address>: Mint account address (required)
  • --urc <code>: URC referral code (required)

Display Commands

  • --mint <address>: Mint account address (for display-mint)
  • --urc <code>: URC code (for display-urc)

Metadata Command

  • --name <name>: Token name (required)
  • --symbol <symbol>: Token symbol (required)
  • --description <description>: Token description (required)
  • --image-path <path>: Path to image file (required)

Features

  • 🚀 Token Launch: Create new tokens with customizable metadata
  • 🎯 URC Management: Set and manage referral codes
  • 💰 Token Minting: Mint tokens using URC codes
  • 📊 Information Display: View mint and URC details
  • ⚙️ System Configuration: Check current system settings
  • 🖼️ Metadata Upload: Upload token images and metadata
  • 🔐 Flexible Authentication: Support for both file and base58 keypairs
  • 🌐 Multi-network Support: Configurable RPC endpoints

Dependencies

This CLI tool uses the following key libraries:

  • @flipflop-sdk/node: Core FlipFlop SDK functionality
  • @solana/web3.js: Solana blockchain interaction
  • @coral-xyz/anchor: Solana program framework
  • commander: Command-line interface framework
  • decimal.js: Precise decimal arithmetic
  • bs58: Base58 encoding/decoding

Requirements

  • Node.js >= 16.0.0
  • npm or yarn package manager

Support

For issues and questions, please visit our GitHub repository.