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

create-telebot

v1.0.4

Published

A CLI tool to create Telegram bot projects with Bun and Telegraf

Readme

create-telebot

A CLI tool to quickly create Telegram bot projects with Bun and Telegraf.

Quick Start

Create a new Telegram bot project with one command:

npx create-telebot my-bot
# or
bunx create-telebot my-bot

Then:

cd my-bot
cp .env.example .env
# Add your bot token to .env
bun run dev

Global Installation

Install globally for repeated use:

npm install -g create-telebot
# or
bun install -g create-telebot

# Then use anywhere:
create-telebot my-new-bot

What's Included

The generated project includes:

  • Telegraf - Modern Telegram Bot API framework
  • TypeScript - Full TypeScript support
  • Bun - Fast JavaScript runtime
  • Hot reload - Development with auto-restart
  • Environment config - Secure token management
  • Basic commands - /start and /help handlers
  • Message echo - Example text message handling
  • Graceful shutdown - Proper bot lifecycle management

Project Structure

my-bot/
├── index.ts          # Main bot file
├── package.json      # Dependencies and scripts
├── tsconfig.json     # TypeScript configuration
├── .env.example      # Environment template
├── .gitignore        # Git ignore rules
└── README.md         # Project documentation

Development

After creating a project:

  1. Get your bot token from @BotFather
  2. Copy .env.example to .env and add your token
  3. Run bun run dev for development with hot reload
  4. Run bun run start for production

Adding Webhook Support

To add webhook support to your project, run the following command:

bun run add:webhook

This will install the necessary dependencies and create a server.ts file with a basic webhook setup.

You can also choose between fastify (default) and hono as the server framework:

bun run add:webhook --framework hono

Requirements

  • Bun installed on your system