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

@quantabit/im-sdk

v1.0.3

Published

QuantaBit IM SDK - Private chat, group chat, chatrooms, and encrypted message transmission

Readme

@quantabit/im-sdk

QuantaBit IM SDK - Private chat, group chat, chatrooms, and encrypted message transmission

✨ Features

  • 💬 Real-time Messaging - WebSocket-based instant message delivery
  • 👤 Private Chat - One-on-one messaging with read receipts
  • 👥 Group Chat - Multi-user chat rooms and group management
  • 📎 Rich Messages - Text, images, files, and custom message types
  • 🔔 Unread Count - Real-time unread message tracking
  • 🎨 Advanced Components - Message bubbles, chat windows, member lists
  • 🌍 Multi-Language - Built-in Chinese/English translations

📦 Installation

npm install @quantabit/im-sdk
# or
yarn add @quantabit/im-sdk

🚀 Quick Start

1. Connect to IM Server

import { imClient } from "@quantabit/im-sdk";
import "@quantabit/im-sdk/styles";

// Connect to WebSocket server
await imClient.connect({
  url: "wss://im.example.com/ws",
  token: "your-auth-token",
  onMessage: (message) => console.log("New message:", message),
  onStatusChange: (status) => console.log("Connection:", status),
});

// Send text message
await imClient.sendText("conv_123", "Hello!");

// Send image
await imClient.sendImage("conv_123", imageFile);

// Get conversation list
const conversations = await imClient.getConversations();

// Get message history
const messages = await imClient.getHistory("conv_123", { limit: 50 });

2. Using Components

import {
  ChatRoom,
  ConversationList,
  ChatMessage,
  ChatInput,
} from '@quantabit/im-sdk';

// Full chat room
<ChatRoom
  conversationId="conv_123"
  onSend={(msg) => console.log('Sent:', msg)}
/>

// Conversation list
<ConversationList
  onSelect={(conv) => openChat(conv)}
/>

// Individual message
<ChatMessage message={messageData} isSelf={true} />

// Chat input
<ChatInput
  onSend={(text) => sendMessage(text)}
  onImage={(file) => sendImage(file)}
  placeholder="Type a message..."
/>

3. Advanced Components

import {
  MessageBubble,
  ChatWindow,
  MemberList,
} from '@quantabit/im-sdk';

// Chat window (full-featured)
<ChatWindow
  conversationId="conv_123"
  showHeader
  showMemberList
  onClose={() => closeChat()}
/>

// Member list for group chat
<MemberList
  conversationId="conv_123"
  onMemberClick={(member) => viewProfile(member)}
/>

4. Using Hooks

import { useIM, useConversation, useUnreadCount } from "@quantabit/im-sdk";

function ChatApp() {
  const { connected, conversations, connect, disconnect } = useIM();
  const { messages, sendMessage, loadMore } = useConversation("conv_123");
  const { totalUnread, getUnread } = useUnreadCount();

  return <div>...</div>;
}

📚 Components

| Component | Description | | ------------------ | -------------------------------------------- | | ChatRoom | Full-featured chat room component | | ConversationList | Conversation list with search and filtering | | ChatMessage | Single message display (text, image, file) | | ChatInput | Message input with emoji, file attachment | | ChatWindow | Complete chat window with header and members | | MessageBubble | Customizable message bubble | | MemberList | Group member list with roles |

📖 Type Definitions

import {
  ConversationType,
  IMMessageType,
  MessageStatus,
} from "@quantabit/im-sdk";

// Conversation types
ConversationType.PRIVATE; // Private chat
ConversationType.GROUP; // Group chat
ConversationType.CHATROOM; // Chat room

// Message types
IMMessageType.TEXT; // Text
IMMessageType.IMAGE; // Image
IMMessageType.FILE; // File
IMMessageType.AUDIO; // Audio
IMMessageType.VIDEO; // Video
IMMessageType.SYSTEM; // System message

// Message status
MessageStatus.SENDING; // Sending
MessageStatus.SENT; // Sent
MessageStatus.DELIVERED; // Delivered
MessageStatus.READ; // Read
MessageStatus.FAILED; // Failed

📄 License

MIT License


🌐 Brand & Links