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

redichat

v1.2.1

Published

A simple, real-time, multi-room terminal chat application using Node.js and Redis.

Readme

redichat

Real-time Redis terminal chat.

npm install -g redichat

A simple, real-time multi-room terminal chat powered by Redis Pub/Sub.

redichat is a CLI chat application built with Node.js, React (Ink), and Redis.
It allows multiple users to join chat rooms and communicate in real time directly from the terminal.

✨ Features

  • Real-time messaging powered by Redis Pub/Sub
  • Multi-room chat (create or join rooms instantly)
  • Private rooms with password protection
  • Chat history loaded when entering a room
  • Private messaging between users
  • Multi-language support (English / Korean) (coming soon)
  • Dynamic nickname colors for readability
  • Built with React for the terminal using Ink

📦 Installation

Install globally:

npm install -g redichat

or run instantly with:

npx redichat

⚙️ Configuration

redichat requires a running Redis instance to connect to. Think of this server as a shared digital space or a playground. To chat with others, you must all be in the same playground.

You configure which playground to connect to by creating a .env file in the directory where you run the redichat command.

1. For Private Chat with Friends

If you want to create a private space for you and your friends, you must all connect to the same Redis server.

  1. Create a Server: One person in the group should create a free database on a service like Redis Cloud or Upstash.

  2. Get Connection Info: From the service's dashboard, get the Host, Port, and Password.

  3. Share Securely: Share this information privately with your friends.

  4. Create .env File: Each person must create a .env file and fill it with the shared details.

    # .env - Example for a private group
    REDIS_HOST=redis-12345.c1.us-east-1-2.ec2.cloud.redislabs.com
    REDIS_PORT=12345
    REDIS_PASSWORD=the-secret-password-you-shared

2. For Developers (Local Testing)

When developing or testing on your own, you can connect to a Redis server running on your local machine.

  1. Clone the repository: git clone https://github.com/geunseonkim/redichat.git

  2. Install dependencies: npm install

  3. Copy the example file: cp .env.example .env

  4. The default values in .env are usually correct for a local Redis setup.

    # .env - Default for local development
    REDIS_HOST=127.0.0.1
    REDIS_PORT=6379
    REDIS_PASSWORD=

A Note on the "random" Room

When you enter random as the room name, redichat finds a public room on the currently connected Redis server. This means:

  • If you and your friends are connected to the same Redis Cloud server, entering random will place you in the same public chat room.
  • If you are connected to your local machine and your friend is connected to theirs, you will each be in a separate, isolated random room. You will not be able to chat.

🚀 Usage

Start the chat client:

redichat

You will be prompted to:

  1. Select a language
  2. Enter your nickname
  3. Join or create a chat room

💬 Commands

Inside a chat room you can use:

/users

View users in the current room.

/rooms

View all active rooms and their member counts.

/join <room>

Switch to another room.

/whisper <nick> <message>

Send a private message.

/back

Return from the password input screen.

/exit

Exit the chat application.


🧰 Development

Clone the repository:

git clone https://github.com/geunseonkim/redichat.git
cd redichat

Install dependencies:

npm install

Build the project:

npm run build

Run locally:

npm start

🤝 Contributing

Contributions are welcome!

If you'd like to improve the project:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

📜 License

MIT License © 2026 Geunseon Kim