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 🙏

© 2025 – Pkg Stats / Ryan Hefner

barechat-web

v2.1.1

Published

Anonymous chat anywhere with localhost web interface - Web Package

Readme

BareChat Web

Anonymous chat anywhere with localhost web interface

|project |version | |--------|--------| | terminal | NPM Version | | web (this) | NPM Version |

Features

  • Instant chat with localhost web UI
  • Fully p2p as barechat, no server required
  • Modern web interface with real-time messaging
  • Compatible with barechat CLI clients

Prerequisite

Need bare runtime installed through npm. Could install globally using:

npm i -g bare

Normal Usage with Web Interface

Could install with command npm i -g barechat-web or run directly with npx barechat-web.

To test this chat app, in one terminal run:

> npx barechat-web soccer
==================
BareChat Web server started on port 54321
Open your browser and navigate to http://localhost:54321
==================
[info] Attempting to join room with topic: 8f27f432fcbaa4b5180a1cc7a8fa166a93cda3c1bce6f19922dd519d02f4bb39
[info] Successfully joined room: 8f27f432fcbaa4b5180a1cc7a8fa166a93cda3c1bce6f19922dd519d02f4bb39

You can send soccer, p2p or any string you like to discover the room.

In another terminal use the same command, or the hashcode received from the first terminal's output:

> npx barechat-web 8f27f432fcbaa4b5180a1cc7a8fa166a93cda3c1bce6f19922dd519d02f4bb39
==================
BareChat Web server started on port 54322
Open your browser and navigate to http://localhost:54322
==================
[info] Attempting to join room with topic: 8f27f432fcbaa4b5180a1cc7a8fa166a93cda3c1bce6f19922dd519d02f4bb39
[info] Successfully joined room: 8f27f432fcbaa4b5180a1cc7a8fa166a93cda3c1bce6f19922dd519d02f4bb39

And it's fully compatible to chat with barechat CLI clients

Or you can simply call:

npx barechat-web

Which will randomly generate a room with hashcode. By announcing the hashcode somewhere you can chat anonymously through the web interface.

Web Interface Features

  • Real-time Messaging: Messages appear instantly without page refresh
  • Peer Status: See when peers join or leave the chat
  • Room Information: Display current room topic and connected peers count
  • Command Support: Use commands like join <topic> and info
  • Responsive Design: Works on desktop and mobile browsers

Development

This package is part of the BareChat monorepo. See the root README for development setup instructions.

Local Development

# From the packages/web directory
npm run dev

# Or from the root directory
bun run web:start

The web server will start on a random available port and you can open your browser to access it.

Using BareChat Web as a Package

You can also import and use the web server functionality in your project:

import { createChatServer } from 'barechat-web/lib/server'
import { createWebSocketServer } from 'barechat-web/lib/ws'
import { getBackend } from 'barechat/lib/chat-core'

// Create your own web chat interface
const backend = getBackend()
const server = createChatServer(htmlContent)
const wsServer = createWebSocketServer({
  webServer: server,
  // ... your configuration
})

Reference

  • Built on top of barechat core functionality
  • Uses RPGUI for UI components
  • WebSocket implementation for real-time communication

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.