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

cross-bot-bridge

v1.3.1

Published

A simple and customizable cross-bot bridge package that connects Discord and Telegram with admin and owner features, auto-reconnecting, media handling, message formatting conversion, user identity mapping, emoji and reaction support, and a command system.

Readme

Cross Bot Bridge

npm version Build Status License: MIT

A simple and customizable cross-bot bridge package that connects Discord and Telegram with admin and owner features, auto-reconnecting, media handling, message formatting conversion, user identity mapping, emoji and reaction support, and a command system.

Features

  • Cross-Platform Messaging: Relay messages between Discord and Telegram.
  • Admin and Owner Features: Special handling for messages from admins and the owner.
  • Auto-Reconnecting: Automatically reconnects on disconnection.
  • Media Handling: Handles images, videos, documents, and stickers.
  • Message Formatting Conversion: Consistent message formatting across platforms.
  • User Identity Mapping: Maps user identities between platforms.
  • Emoji and Reaction Support: Handles emojis and reactions.
  • Unified Messaging: Consistent message formatting across platforms.
  • Real-time Communication: Instant message relay.
  • Secure & Reliable: Built with security and reliability in mind.
  • Command System: Customizable commands.
  • Multi-Cross Bridge: Reply to messages across platforms.
  • Message Caching: Caches messages to handle rate limits and ensure consistent message delivery.
  • Advanced Command System: Supports complex commands and subcommands.
  • Customizable Prefixes: Allows users to set custom prefixes for commands.
  • Low Overhead: Lightweight and efficient.

Installation

Install the package using npm:

npm install cross-bot-bridge

Configuration

Create a config.json file in the root of your project with the following structure:

{
  "discordToken": "YOUR_DISCORD_BOT_TOKEN",
  "telegramToken": "YOUR_TELEGRAM_BOT_TOKEN",
  "telegramChatId": "YOUR_TELEGRAM_CHAT_ID",
  "discordPrefix": "Discord",
  "telegramPrefix": "Telegram",
  "commandPrefix": "!",
  "logLevel": "info",
  "admins": ["admin1", "admin2"],
  "owner": "ownerUsername",
  "userMapping": {},
  "customPrefixes": {
    "discord": "!",
    "telegram": "/"
  },
  "messageCacheSize": 100
}

Replace the placeholders with your actual tokens, chat ID, admin usernames, and owner username.

Usage

Create an index.js file and use the package as follows:

const CrossBotBridge = require('cross-bot-bridge');
const bridge = new CrossBotBridge();

bridge.start();

Run your bot using the following command:

npm start

Example

Here is an example of how you can set up the config.json and index.js files:

config.json

{
  "discordToken": "YOUR_DISCORD_BOT_TOKEN",
  "telegramToken": "YOUR_TELEGRAM_BOT_TOKEN",
  "telegramChatId": "YOUR_TELEGRAM_CHAT_ID",
  "discordPrefix": "Discord",
  "telegramPrefix": "Telegram",
  "commandPrefix": "!",
  "logLevel": "info",
  "admins": ["admin1", "admin2"],
  "owner": "ownerUsername",
  "userMapping": {},
  "customPrefixes": {
    "discord": "!",
    "telegram": "/"
  },
  "messageCacheSize": 100
}

index.js

const CrossBotBridge = require('cross-bot-bridge');
const bridge = new CrossBotBridge();

bridge.start();

Contributing

We welcome contributions to the project! Here are a few ways you can help:

  • Report bugs and suggest features via GitHub Issues.
  • Fork the repository and submit pull requests.
  • Improve documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments


Made with ❤️ by RishBroProMax