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

@kolplayorg/sdk

v1.1.0

Published

Official TypeScript SDK for KOLPLAY Developer API

Readme

@kolplayorg/sdk

NPM Version License: MIT TypeScript

The official TypeScript SDK for the KOLPLAY Developer API. Build high-performance trading tools, social mindmaps, and AI-powered autonomous agents on the Solana blockchain.


🚀 Features

  • Isomorphic Support: Seamlessly transitions between Node.js, modern browsers, and Edge runtimes.
  • Full Type Safety: Comprehensive TypeScript interfaces for all metrics, trades, and social data.
  • Flexible Auth: Support for both developer API Keys and user-facing JWT Bearer Tokens.
  • Real-time Streaming: Built-in Socket.IO management for live KOL trade feeds and mindmap shifts.
  • Enterprise Ready: Automatic retries, error handling, and optimized bundle sizes.

📦 Installation

npm install @kolplayorg/sdk
# or
yarn add @kolplayorg/sdk

🛠 Quick Start

1. Initialize the Client

You can initialize with a plain API Key or a configuration object (useful for JWT/Agents).

import { KolplayClient } from '@kolplayorg/sdk';

// Option A: Standard API Key
const client = new KolplayClient('sk_live_your_key_here');

// Option B: JWT (for AI Agents or Frontend sessions)
const agentClient = new KolplayClient({ 
  jwt: 'your_user_jwt_token',
  baseUrl: 'https://vps.kolplay.xyz/api/v1' 
});

2. Fetch On-Chain Insights

// Get real-time metrics for a Solana token
const metrics = await client.getTokenMetrics('So11111111111111111111111111111111111111112');
console.log(`Price: ${metrics.price} SOL | Liquidity: $${metrics.liquidity}`);

// Get social mindmap (KOL involvement)
const mindmap = await client.getTokenMindmap('So111...');
console.log(`Social Centrality: ${mindmap.networkMetrics.centrality}`);

3. Execute Trades

// Execute a high-speed swap (supports simulation)
const trade = await client.executeSwap({
  mint: 'So111...',
  amount: 0.1,
  tradeType: 'buy',
  slippage: 15, // 15%
  isSimulation: true
});

console.log(`Trade Status: ${trade.status} | ID: ${trade.tradeId}`);

4. Real-time Subscriptions

const socket = client.connectWebSocket();

// Listen for global KOL trade updates
client.subscribeToKOLTrades((update) => {
  console.log(`KOL ${update.trade.kolId} just bought ${update.trade.mint}`);
});

📚 API Reference

| Module | Method | Description | | :--- | :--- | :--- | | Tokens | getTokenMetrics(mint) | Real-time price, liquidity, and supply data. | | | getTokenMindmap(mint) | Social influence network and KOL connections. | | | predictTokens(mints[]) | AI-powered win probability for token addresses. | | KOLs | getFeaturedKols() | List of high-performing traders currently featured. | | | getLeaderboard(limit) | Top traders ranked by PnL and Win Rate. | | Trades | executeSwap(params) | Execute buy/sell orders via KOLPLAY engine. | | | getTradeHistory(limit) | Global feed of recent high-value trades. | | User | getUserStats() | Personal PnL, Win Rate, and Volume analytics. | | | getUserTrades(filter)| Filterable history of your own trades. |


🧪 Testing

The SDK is fully tested with Vitest.

npm test

🔗 Links

📄 License

MIT © KOLPLAY Team