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

sahu-fca

v12.0.1

Published

Unofficial Facebook Chat API for Node.js with enhancements by SHAHADAT SAHU

Readme

🚀 SAHU-FCA: Unofficial Facebook Chat API

npm License GitLab

A lightweight, fast, and unofficial API to interact with Facebook Chat programmatically — ideal for building bots, automation systems, and custom messaging tools.

This project is customized and enhanced for improved performance and stability.

Customized by SHAHADAT SAHU
FCA Enhanced by Sheikh Tamim

✨ Features

  • MQTT message listening and sending
  • Automatic MQTT reconnection
  • Text, reply, attachment, reaction, edit and unsend support
  • Improved DM and group detection
  • OldMessage fallback
  • Experimental button messages
  • Optional End-to-End Encryption (E2EE)
  • E2EE messages, reactions, edits, unsend, typing and media
  • Clean SAHU-FCA connection output
  • No automatic package update or forced restart

📦 Installation

npm install sahu-fca@latest

🚀 Basic Usage

const fs = require("fs");
const login = require("sahu-fca");

const appState = JSON.parse(
  fs.readFileSync("appstate.json", "utf8")
);

login({ appState }, { listenEvents: true }, (err, api) => {
  if (err) return console.error(err);

  const listener = api.listenMqtt((listenErr, event) => {
    if (listenErr) return console.error(listenErr);
    if (event.type !== "message" || !event.body) return;

    if (event.body.toLowerCase() === "/stop") {
      listener.stopListening();
      return;
    }

    api.sendMessage(`Echo: ${event.body}`, event.threadID);
  });
});

📤 Send a Message

api.sendMessage("Hello!", threadID, callback);

Send an attachment:

api.sendMessage(
  {
    body: "Photo",
    attachment: fs.createReadStream("./photo.jpg")
  },
  threadID,
  callback
);

🔐 E2EE

E2EE requires:

e2ee.js
lib/index.mjs
build/messagix.so   (Linux x64)
build/messagix.dll  (Windows x64)

Enable it in the bot project's root config.json:

{
  "e2ee": {
    "enable": true,
    "saveType": "memory"
  }
}

Native E2EE binaries are currently included for Linux x64 and Windows x64 only.

🔗 Links

📄 License

MIT — original source credits are preserved in the source files and license.

⚠️ Disclaimer

Note: This is an unofficial Facebook API. Use at your own risk. This project is not affiliated with or endorsed by Meta / Facebook in any way.

🚀 DEVELOPMENT APPROACH

  • 💻 Copy-paste techniques with customizations
  • 🤝 Collaborative development with friends
  • 🤖 AI-powered using AI and other advanced tools

Thanks for using FCA