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

term-chat

v0.2.8

Published

Lightweight Chat Client CLI

Downloads

9

Readme

Term-chat

Lightweight terminal chat server and client

Term-chat is a simple server and client npm package that allows users to send and receive messages in the terminal. It can be opened as an interactive chat client, or used as a command to send a single message.

Perhaps the most useful feature is the ability to pipe in messages to quickly send ssh-keys, tokens, urls, or whatever you need to your coding buddies and teammates.

Installation and Usage

npm install -g term-chat

# Server Mode
termchat --server

# Client Mode
termchat --host http://localhost

Run termchat --help for all options.

Default Server

While this project remains small, I am running a default server at http://alexrowe.net. Just run termchat to connect! (Don't post any sensitive information...)

Example Output

Example output (real output is colored!):

$ termchat -h localhost
connected to http://localhost:2797/
channel: general
users in channel: punky, alex
user connected: alex

alex: hello!
punky: hi

Piping and One-off messages

Term-chat can have input piped into it or have a message as a paramter like so:

cat id_rsa.pub | termchat

# Or
termchat $(cat id_rsa.pub)

This way, you can easliy whip those credentials over to your inpatient colleague.

Server Mode

To run a server, use the --server option. Port can be changed with --port

Channels and Nickname

Term-chat has support for channels / rooms and user names.

termchat -c my_cool_channel -u my_fun_name

JSON Client

If you want to display recent messages in some other app, you can try

curl http://<my-server>:2797/json/<channel_name>/<message_count>

and it will return a json structure of recent messages.

License

Quite liberal. Go ahead, use this repository to commit atrocious crimes.