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

mtcute-workspace

v0.23.2

Published

Type-safe library for MTProto (Telegram API) for browser and NodeJS

Readme

[!WARNING] mtcute is currently in alpha stage: the api is not very stable yet, and there may be a lot of bugs feel free to try it out, though, any feedback is appreciated!

import { TelegramClient } from '@mtcute/node'
import { Dispatcher, filters } from '@mtcute/dispatcher'

const tg = new TelegramClient({
    apiId: Number.parseInt(process.env.API_ID),
    apiHash: process.env.API_HASH,
    storage: 'my-account'
})
const dp = Dispatcher.for(tg)

dp.onNewMessage(filters.chat('private'), async (msg) => {
    await msg.replyText('hiiii from mtcute! 🌸')
})

const self = await tg.start({ /* optional params */ })
console.log(`✨ logged in as ${self.displayName}`)

mtcute is a modern, performant and ✨ cute ✨ mtproto library and bot framework, supporting both web and nodejs.

quick start

🤖 just starting a (user)bot? use the scaffolding tool:

pnpm create @mtcute/bot

🏭 want to integrate it into your existing nodejs app? use the nodejs package:

pnpm add @mtcute/node

✨ building something for web? use the web package:

pnpm add @mtcute/web

🚀 using the newfangled runtimes? we've got you covered:

  • bun: bun add @mtcute/bun
  • deno: import { TelegramClient } from 'jsr:@mtcute/deno'

learn more: guide

features

  • 🍰 simple: mtcute hides all the complexity and provides a clean and modern api
  • compatible: mtcute supports almost everything bot api does, and even more!
  • 🍡 lightweight: running instance uses less than 50 mb of ram
  • 🛡️ type-safe: most of the apis (including mtproto) are strictly typed to help your workflow
  • ⚙️ hackable: almost every aspect of the library is customizable, including networking and storage
  • 🕙 up-to-date: mtcute uses the latest TL schema to provide the newest features as soon as possible

cat in the readme 🐈

project goals

mtcute strives to:

  • be customizable enough to fit most of the possible use-cases
  • be lightweight, both in terms of runtime and bundle size
  • support (theoretically) any environment without much hassle
  • provide a solid foundation for all kinds of applications on telegram platform
  • provide a convenient high-level api for the most commonly used features

mtcute is NOT and will never be:

  • a library for spam/flood or otherwise malicious activities
  • a fully feature-complete library - highlevel apis will never cover the entirety of the apis. feel free to contribute, though!
  • a drop-in replacement for (insert library name)
  • a teapot

setting up for development

git clone https://github.com/mtcute/mtcute
fnm use # or `nvm use`
cd mtcute
pnpm install --frozen-lockfile

# generate code from tl schema
pnpm -C packages/tl run gen-code

acknowledgements

some parts were based on or greatly inspired by these projects:

thanks @dotvhs for the logo <3