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

turnip-agent

v0.1.0

Published

An agent for generating and tokenizing unique AI art on-chain using OpenAI, PumpPortal, and Helius

Readme

🥕 Turnip Agent

An agent for generating and tokenizing unique AI art on-chain using OpenAI GPT Image 1.5, PumpPortal, and Helius APIs on Solana.

Features

  • AI Art Generation - Generate unique images using OpenAI's GPT Image 1.5
  • One-Click Token Launch - Deploy AI-generated art as tokens on pump.fun
  • Portfolio Dashboard - Track your deployed tokens and holdings
  • Prompt Enhancement - AI-powered prompt optimization for better images

Installation

npm install -g turnip-agent

Quick Start

  1. Initialize configuration:
turnip init
  1. Edit .env with your API keys:
OPENAI_API_KEY="sk-..."
HELIUS_API_KEY="..."
WALLET_PRIVATE_KEY="..."
  1. Generate and launch a token:
turnip launch "a cosmic turnip floating in space" --name "Cosmic Turnip" --ticker CTRNP

Commands

Generate AI Art

# Basic generation
turnip generate "a purple cat riding a skateboard"

# With options
turnip generate "abstract art" -q high -s 1024x1792 -o my-art.png

# With AI prompt enhancement
turnip generate "cool art" --enhance

Deploy as Token

# Deploy an existing image
turnip deploy ./my-art.png --name "My Token" --ticker MYT

# With metadata
turnip deploy ./art.png -n "Token Name" -t TICK --twitter @handle --website https://example.com

Launch (Generate + Deploy)

# Full launch in one command
turnip launch "vibrant pixel art of a turnip" -n "Pixel Turnip" -t PTRN

# With dev buy
turnip launch "rare pepe" -n "Rare Pepe" -t RPEPE --dev-buy 0.5

Dashboard

# Live dashboard
turnip dashboard

# Snapshot (no refresh)
turnip dashboard --snapshot

Utilities

# Check balance
turnip balance

# Validate configuration
turnip config --check

# Create .env template
turnip init

Programmatic Usage

import { TurnipAgent } from 'turnip-agent';

const agent = new TurnipAgent({
  openaiApiKey: 'sk-...',
  heliusApiKey: '...',
  walletPrivateKey: '...',
  network: 'mainnet-beta',
});

// Generate an image
const image = await agent.generate({
  prompt: 'a beautiful sunset over mountains',
  quality: 'high',
});

// Deploy as token
const result = await agent.deploy({
  image,
  name: 'Sunset Token',
  ticker: 'SUNSET',
});

// Or do it all in one step
const launched = await agent.launch({
  prompt: 'cosmic abstract art',
  name: 'Cosmic Token',
  ticker: 'COSM',
  devBuyAmount: 0.1,
});

console.log(`Token deployed: ${launched.token.pumpUrl}`);

Configuration

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | OPENAI_API_KEY | Yes | - | OpenAI API key for image generation | | HELIUS_API_KEY | Yes | - | Helius API key for Solana RPC | | WALLET_PRIVATE_KEY | Yes | - | Solana wallet private key (base58) | | SOLANA_NETWORK | No | mainnet-beta | Network (mainnet-beta or devnet) | | IMAGE_QUALITY | No | high | Image quality (low, medium, high) | | IMAGE_SIZE | No | 1024x1024 | Image dimensions | | IMAGE_FORMAT | No | png | Output format (png, jpeg, webp) | | DEFAULT_SLIPPAGE | No | 10 | Default slippage percentage | | DEV_BUY_AMOUNT | No | 0 | Default dev buy amount in SOL |

Costs

| Action | Estimated Cost | |--------|----------------| | Image Generation (high) | ~$0.04 | | Image Generation (medium) | ~$0.02 | | Image Generation (low) | ~$0.01 | | Token Deployment | ~0.02 SOL | | Prompt Enhancement | ~$0.001 |

Links

License

MIT © steph3n