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

chatbortui

v1.0.5

Published

Chat application.

Readme

📘 ChatbortUI – React Chat Components

ChatbortUI is a lightweight React UI package that provides ready-to-use chat components for private and group messaging using Socket.io.

It is designed to plug into any React application with minimal setup.

✨ Features

👥 User & Group chat support

💬 Real-time messaging (Socket.io)

✏️ Edit messages

🗑 Delete messages

➖ Minimize / Close chat window

🧩 Easy API-based integration

📦 Installation Install from npm npm install chatbortui

or

yarn add chatbortui

🛠 Local Package Development (Using npm link) Build & link the package npm run build npm link

Use linked package in another project npm link chatbortui

🚀 Components Overview

ChatbortUI provides two main components:

1️⃣ ChatList

Displays:

All users

All groups

Allows:

Selecting a user or group

Creating a new group

Closing the chat list

2️⃣ ChatWindow

Displays:

Chat messages

Allows:

Sending messages

Editing messages

Deleting messages

Private & group chats

Minimize / Close window

🧩 Integration Guide Step 1: Import Components import { ChatList, ChatWindow } from "chatbortui";

Step 2: ChatList Props 📌 Required Props Prop Type Description getAllUsers () => Promise<any[]> Fetch all users getAllGroups () => Promise<any[]> Fetch all groups onSelectChat (id, type, name) => void Fired when a chat is selected onClose () => void Close chat list createGroup (groupData) => Promise Create new group currentUserId string Logged-in user ID currentUserName string Logged-in username

✔ Example Usage

Step 3: ChatWindow Props 📌 Required Props Prop Type Description chatId string Selected chat ID chatType "user" | "group" Chat type approachName string Header display name getMessages (id, type) => Promise<any[]> Fetch messages onClose () => void Close window onMinimize () => void Minimize window onEditMessage (id, text) => void Edit message onDeleteMessage (id) => void Delete message currentUserId string Logged-in user ID currentUserName string Logged-in username SOCKET_URL string Socket.io server URL ✔ Example Usage

Step 4: Full Integration Example {showChatList && ( )}

{currentChat && ( )}

🧪 Expected API Response Formats getAllUsers [ { "id": "1", "username": "Alice" }, { "id": "2", "username": "Bob" } ]

getAllGroups [ { "id": "101", "groupName": "Developers" } ]

getMessages [ { "id": "msg1", "fromUserId": "1", "messageText": "Hello!", "createdAt": "2024-01-01T12:30:00" } ]

🔌 Socket.io Events (Backend Requirement)

Your backend must support the following events:

Receive Message socket.on("receiveMessage")

Edit Message socket.on("handleEditMessage")

Delete Message socket.on("handleDeleteMessage")