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

telegram-console

v0.4.1

Published

A terminal-based Telegram client

Downloads

1,273

Readme

telegram-console

A terminal-based Telegram client for technical users. Seamlessly and discretely keep track of your group chats while you watch Claude do your job.

Installation

npm install -g telegram-console

Setup

Step 1: Get Telegram API Credentials

Telegram allows third-party clients to access their platform through an official API. Unlike some services that require centralized API keys, Telegram's model lets each user generate their own credentials. This means:

  • You control your credentials — your API ID and Hash are generated by you and stored only on your machine
  • No middleman — this client connects directly to Telegram's servers using your credentials
  • Full transparency — the code is open source, so you can verify exactly what data is sent

To get your credentials:

  1. Go to my.telegram.org and log in with your phone number
  2. You'll receive a confirmation code in Telegram — enter it
  3. Click on "API development tools"
  4. Fill in the form:
    • App title: Any name (e.g., "My Console Client")
    • Short name: A short identifier (e.g., "console")
    • Platform, description, and other fields can be left as default
  5. Click "Create application"
  6. You'll see your API ID (a number) and API Hash (a string) — save these

Important: Never share your API credentials. They are unique to your account and should be treated like a password.

By using the Telegram API, you agree to Telegram's API Terms of Service.

Step 2: Run the Client

  1. Run telegram-console
  2. Enter your API ID and API Hash when prompted
  3. Authenticate using one of these methods:
    • QR Code (default): Scan the QR code with Telegram mobile app (Settings → Devices → Link Desktop Device)
    • Phone Code: Enter your phone number and the code sent to your Telegram

Usage

telegram-console

Keyboard Shortcuts

| Key | Action | | ------ | -------------------------------- | | ↑/↓ | Navigate chats / scroll messages | | ←/→ | Switch panels | | Enter | Select chat / send message | | Tab | Focus input | | Esc | Go back | | Ctrl+C | Exit |

Features

  • View chat list (private chats + groups)
  • Read messages
  • Send text messages
  • Unread indicators
  • Connection status display
  • Session persistence
  • QR code + phone code authentication

Configuration

Config file location: ~/.config/telegram-console/config.json

Environment Variables

| Variable | Description | | ----------------- | --------------------------- | | TG_API_ID | Telegram API ID | | TG_API_HASH | Telegram API Hash | | TG_SESSION_MODE | persistent or ephemeral | | TG_AUTH_METHOD | qr or phone |

Contributing

Contributions are welcome! Feel free to open issues and pull requests.

License

MIT