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 🙏

© 2024 – Pkg Stats / Ryan Hefner

tgbooru

v1.2.1

Published

a builtin personal inline booru for Telegram

Downloads

10

Readme

Telegram Booru

Maybe you meant: Unlimited Telegram Gallery

A builtin personal inline booru for Telegram.

demo demo

Commands

/help – display all commands
/lang – change the language bot speaks
/add <tags...> – add a media to your booru
/delete – delete the media from your booru
/info – display some information about the media
/replace <tags...> – replace all tags of the media
/addtag <tags...> – add one or more tags of the media
/deltag <tags...> – remove one or more tags from the media
/edittag <old> <new> – replace the any tag everywhere
/stats – display your summary

Supported media types

  • 🖼️ photo
  • 📹 GIF
  • 🎬 video

TLDR

  1. Create and setup a bot via @BotFather
  2. Install PostgreSQL if you didnt
  3. Create an empty database 'tgbooru' in PSQL owned to your user
  4. Install npm & node.js
  5. npm i tgbooru
  6. export TOKEN=<TOKEN_FROM_BOTFATHER>
  7. npx tgbooru
  8. To stop the bot type to console with it stop and press enter

Preparing

  1. Create your bot via @BotFather, it will guide you on that
  2. The bot uses DBMS PostgreSQL. Install if you dont have it
  3. Create a database in PSQL for you bot
  4. The bot works using node.js. Install it

Installation

npm i tgbooru

Launch

The bot requires some environment variables. Here is a list of them:
TOKEN – bot token from @BotFather
DBURI – URI-string for connection to PSQL in format postgres://<USER>:<PASSWORD>@<HOST>/<DATABASE>:<PORT>

Instead of the environment you can set launch parameters in a file config.toml.

After setup the environment run

npx tgbooru

If everything went well, you will see something like this in the console:

> [email protected] start
> node index.js

Bot @myboorubot started.
> _

Control

After the launch, there are available commands stop & reload for safe stop and restart respectively.

Usage

To see how the bot works, you can refer to @myboorubot.
So far, the bot doesnt use any query language, just returning media with all given tags.

Support

If something doesnt work, or you just wanna talk to the bot creator or his mom, write @arelive. There also accepted kicks from volunteer project managers.