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

@furkankoykiran/telegram-wallet-p2p

v1.0.1

Published

Unofficial Node.js/TypeScript SDK for the Telegram Wallet P2P API

Readme

Telegram Wallet P2P SDK — Node.js / TypeScript

⚠️ Unofficial SDK — This project is not affiliated with, endorsed by, or related to Telegram or Wallet.

A fully typed TypeScript SDK for the Telegram Wallet P2P API.

Features

  • 🔷 TypeScript-first — Full type safety with strict mode
  • 🌐 Zero dependencies — Uses native fetch (Node.js 18+)
  • 🔁 Auto-retry — Exponential backoff on rate limits and server errors
  • 📊 Analytics — Built-in utilities for price analysis and filtering
  • 🔑 Safe auth — API key passed via constructor, never logged

Installation

npm install @furkankoykiran/telegram-wallet-p2p

Quick Start

import { WalletP2PClient, TradeSide } from "@furkankoykiran/telegram-wallet-p2p";

const client = new WalletP2PClient({
  apiKey: process.env.WALLET_P2P_API_KEY!,
});

const response = await client.getOnlineItems({
  cryptoCurrency: "USDT",
  fiatCurrency: "RUB",
  side: TradeSide.SELL,
});

for (const item of response.data) {
  console.log(`${item.nickname}: ${item.price} ${item.fiatCurrency}`);
}

Analytics

import { bestPrice, priceSpread, marketSummary, TradeSide } from "@furkankoykiran/telegram-wallet-p2p";

// Find the best sell price
const best = bestPrice(response.data, TradeSide.SELL);

// Get price statistics
const spread = priceSpread(response.data);
// => { min: "95.0000", max: "102.5000", avg: "98.7500", ... }

// Full market summary
const summary = marketSummary(response.data);

API Reference

new WalletP2PClient(options)

| Option | Type | Default | Description | |---|---|---|---| | apiKey | string | required | Your Wallet P2P API key | | baseUrl | string | https://p2p.walletbot.me | API base URL | | timeout | number | 30000 | Request timeout in ms | | maxRetries | number | 3 | Retry attempts on 429/5xx | | retryBaseDelay | number | 1000 | Base delay in ms for exponential backoff |

client.getOnlineItems(params)

Fetches active P2P ads. Returns Promise<GetOnlineItemsResponse>.

Error Handling

import {
  BadRequestError,       // 400 — unsupported currency
  AuthenticationError,   // 401 — invalid API key
  AccessDeniedError,     // 403 — access denied
  RateLimitError,        // 429 — rate limit exceeded
  ServerError,           // 5xx — server error
} from "@furkankoykiran/telegram-wallet-p2p";

License

MIT