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

@lealt/tohru

v1.0.0

Published

🦋 A CLI for managing Discord bot tokens and application emojis securely.

Readme

Features

  • Secure Token Storage: Encrypted vault using AES-256-GCM
  • Emoji Management: Upload, list, delete, and export Discord application emojis
  • Batch Operations: Support for directories, zip archives, and JSON configuration files
  • User-Friendly: Interactive CLI with beautiful styling and helpful prompts

Installation

🧩 Option 1 — Run instantly (recommended)

You can run Tohru without installing anything using npx:

npx @lealt/tohru

🪄 This downloads and runs the latest version directly from npm. Works on Node 18+ and supports both macOS, Linux, and Windows (PowerShell).

🧱 Option 2 — Local installation

# Install dependencies
pnpm install

# Build the project
pnpm run build

# Run the CLI
pnpm start
# or directly
node dist/index.js

Setup

1. Set Encryption Key

Tohru requires a TOHRU_KEY environment variable to encrypt your token vault:

# Set for current session
export TOHRU_KEY='your-secure-key-here'

# Or add to your shell config (~/.bashrc, ~/.zshrc, etc.)
echo 'export TOHRU_KEY="your-secure-key-here"' >> ~/.bashrc

Important: Use a strong, unique key and keep it secure. Without this key, you won’t be able to decrypt or access your stored tokens.


2. Initialize Vault

npx @lealt/tohru
# Select: Manage Tokens → Initialize vault

Usage

🗝 Token Management

Store and retrieve Discord bot tokens securely:

  • Add Token — Store a new bot token with optional description
  • List Tokens — View all stored bots
  • Get Token — Retrieve a specific bot token (with security warnings)
  • Delete Token — Remove a bot from the vault

😄 Emoji Management

Manage Discord application emojis:

Upload Emojis

Upload emojis from multiple sources:

# Single file
./emoji.png

# Multiple files
./emoji1.png ./emoji2.gif ./emoji3.jpg

# Directory (recursive)
./emojis/

# Zip archive
./emoji-pack.zip

# JSON configuration file
./emoji-config.json

JSON Configuration Format

Create a JSON file to define custom emoji names and paths:

{
  "emojis": [
    { "name": "customName", "path": "./path/to/emoji.png" },
    { "name": "anotherEmoji", "path": "/absolute/path/to/emoji.gif" }
  ]
}

Paths can be relative (to the JSON file) or absolute. Supported formats: .png, .jpg, .jpeg, .gif


Other Emoji Operations

  • List Emojis — View all application emojis (organized by static/animated)
  • Delete Emojis — Remove specific emojis by ID or delete all
  • Generate JSON — Export all current emojis to emojis.json

Development

# Run in development mode (without building)
pnpm run dev

# Build TypeScript
pnpm run build

Security Notes

  • Tokens are encrypted at rest using AES-256-GCM
  • The TOHRU_KEY must be at least 8 characters
  • Token vault is stored at: ~/.config/tohru/vault.json.enc
  • Avoid revealing tokens in terminal history or shared logs

License

MIT