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

fireforchat

v2.3.3

Published

FireForChat is a real-time chat tool based on Firebase and Firestore, allowing developers to easily integrate a messaging system into their web or mobile applications. Note that **FireForChat is a paid package**. For more information, visit [https://www.f

Readme

FireForChat - Installation & Setup Guide

FireForChat is a real-time chat tool based on Firebase and Firestore, allowing developers to easily integrate a messaging system into their web or mobile applications. Note that FireForChat is a paid package. For more information, visit https://www.fireforchat.com/.

Installation

To install FireForChat in your project, run the following command:

npm install fireforchat

Firebase Configuration

To use FireForChat, you need to configure Firebase. Follow these steps:

  1. Go to Firebase Console and create a new project.
  2. Once the project is created, navigate to the Firestore Database section and enable it.
  3. Go to Project settings > General, and under "Your apps", register a new web app.
  4. Copy the Firebase configuration object from the settings and use it in your project:
const firebaseConfig = {
    apiKey: "YOUR_API_KEY",
    authDomain: "YOUR_AUTH_DOMAIN",
    projectId: "YOUR_PROJECT_ID",
    storageBucket: "YOUR_STORAGE_BUCKET",
    messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
    appId: "YOUR_APP_ID",
    measurementId: "YOUR_MEASUREMENT_ID"
};

FireForChat Integration

  1. Go to the FireForChat Dashboard and copy your License Key.
  2. Pass the Firebase config, license key, and user data to FireForChat.
  3. Inside the data object, you must set up the channelId, which can be any string to identify the conversation.
    • The channelId is a unique identifier for a chat conversation. It helps FireForChat distinguish between different chats. You can use any string, but it should be unique to avoid mixing conversations.
    • Examples:
      • For customer support chat, use a ticket ID: "support-ticket-12345".
      • For private chat between two users, use a combination of their user IDs: "user-123-user-456".
      • For group chats, use a room name or group ID: "team-discussion-789".
  4. Inside the data object, if you already have the user information, you can pass it as a prop to prevent the chat from asking for a username and email.
    • If the email and username is null, FireForChat may ask the user for their email and username before they start chatting. However, if you already have this information (e.g., from your app's authentication system), you can provide it inside the user object. This allows the chat to start immediately without asking the user to enter their details.
const data = {
    channelId: "support-ticket-12345", // Unique identifier for this chat
    user: {
        email: "[email protected]", // Pre-fill user email to avoid asking
        username: "JohnDoe" // Pre-fill username so chat starts immediately
    }
};

<FireForChat 
    licenseKey="YOUR_LICENSE_KEY"
    firebaseConfig={firebaseConfig}
    data={data}
    width="300px"  // Defaults to 300px if no width is provided, similar to the CSS `width` property.
    height="450px" // Defaults to 450px if no height is provided, similar to the CSS `height` property.
/>;

Important Notes

  • If handling multiple conversations, dynamically update the channelId.
  • channelId can be any unique string, such as a user ID, support ticket ID, or room name.
  • If the user already has an account, they can start chatting without entering additional details.
  • Ensure Firestore security rules are properly configured.

With this guide, you'll be ready to integrate FireForChat into your application. 🚀