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

@erfan_bahramali/tping

v1.0.0

Published

Ping for Telegram Proxies - Test connectivity to Telegram Proxies (MTProto, SOCKS5)

Readme

🏓 tping

Ping for Telegram Proxies - Test connectivity to Telegram Proxies, just like ping for IP addresses.

A simple and clean CLI tool to continuously ping Telegram proxies (MTProto and SOCKS5) and measure latency in real-time using official Telegram API.


✨ Features

  • 🏓 Continuous ping mode - Like standard ping command
  • 🔄 Multiple proxies - Ping simultaneously
  • ⚙️ Configurable - Custom count and interval
  • 📊 Statistics - min/avg/max latency, packet loss
  • 🚀 Simple & clean - Easy to use

📦 Installation

npm install -g @erfan_bahramali/tping

Or use directly with npx:

npx @erfan_bahramali/tping <proxy>

🚀 Usage

You can pass proxy as text or file path. For multiple proxies, separate by newlines (in text or file).

# Single proxy
tping "https://t.me/proxy?server=proxy.example.com&port=443&secret=0123456789abcdef"

# Multiple proxies
tping "https://t.me/proxy?server=proxy1.com&port=443&secret=abc
https://t.me/socks?server=proxy2.com&port=1080"

# From file (single or multiple proxies)
tping proxies.txt

# Ping 5 times
tping -c 5 "https://t.me/socks?server=proxy.example.com&port=1080"

# Ping unlimited times with custom interval (500ms)
tping -i 500 "https://t.me/socks?server=proxy.example.com&port=1080"

# Ping 10 times with custom interval (500ms)
tping -c 10 -i 500 proxies.txt

⚙️ Options

| Option | Description | |--------|-------------| | -c, --count <n> | Number of pings to send (default: unlimited) | | -i, --interval <ms> | Interval between pings in milliseconds (default: 1000) | | -t, --timeout <ms> | Timeout for each ping in milliseconds (default: 10000) | | -v, --version | Show version number | | -h, --help | Show help |


📊 Example Output

🏓 PING proxy.example.com:443 (MTProto)
Sending pings with 1000ms interval... (Press Ctrl+C to stop)

✓ proxy.example.com:443 │ MTProto │ seq=1 │ 45ms
✓ proxy.example.com:443 │ MTProto │ seq=2 │ 48ms
✓ proxy.example.com:443 │ MTProto │ seq=3 │ 43ms
^C
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Statistics for proxy.example.com:443
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Packets: 3 sent │ 3 received │ 0% loss
Latency: 43ms min │ 45ms avg │ 48ms max
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔍 How it Works

tping performs a real MTProto handshake through the proxy — the same first step every official Telegram client does:

  1. Transport obfuscation — a 64-byte header is generated with AES-256-CTR keys derived from the proxy secret (per the official MTProto transport obfuscation).
  2. Fake TLS (secrets with ee prefix) — a TLS 1.3 ClientHello with a valid HMAC digest is sent; the proxy's signed ServerHello is verified before any data is trusted. Wrong secrets are detected immediately.
  3. MTProto ping — a req_pq_multi request is sent through the proxy to the Telegram datacenter. The measured latency is the round trip of receiving a valid resPQ reply with our echoed nonce. A proxy only passes if the datacenter actually answers — dead or fake proxies are reported as failures, never as successes.

SOCKS5 proxies are checked by negotiating a connection to a Telegram datacenter through them.


📋 License

MIT © 2026 ErfanBahramali