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

@asura21232/fca-unofficial-nextgen

v2.0.1

Published

Elite NextGen Evolution: A highly scalable, reactive, and observable Facebook Messenger Framework. Features an event-driven micro-kernel, Zod validation, and real-time dashboard.

Downloads

243

Readme

🚀 Fca-Unofficial NextGen Framework

npm version Build Status license

Fca-Unofficial NextGen là một framework mạnh mẽ, hiện đại và tối ưu hóa dành cho việc xây dựng Bot Messenger. Được tái cấu trúc hoàn toàn với kiến trúc cốt lõi mới, framework này giải quyết triệt để các vấn đề nhức nhối của các phiên bản FCA cũ như rớt mạng MQTT, chết Cookie và khó mở rộng.

A high-performance, modular, protocol-driven framework for Facebook Messenger automation. Optimized for Stability, Anti-Checkpoint protection, and Automated Session Recovery.


✨ Tính năng nổi bật (Features)

  • 🛡️ Bypass Checkpoint & Auto Login: Tích hợp Puppeteer chạy ngầm, tự động vượt rào bảo mật và giải mã 2FA để cấp mới Cookie 100% tự động.
  • 📡 MQTT v5 Core: Kết nối WebSockets thời gian thực (edge-chat) siêu ổn định, đồng bộ lastSeqId thông minh.
  • 📦 Thread Database (SQLite): Hệ thống lưu trữ thông minh, tự động thu thập và đồng bộ thông tin nhóm.
  • 🔌 Dynamic Command Handler: Hệ thống Plugin cho phép tải lệnh (Commands) linh hoạt.
  • 🖼️ Media Utilities: Xử lý luồng Stream mượt mà, tải và upload ảnh/video/voice trực tiếp từ URL.
  • 📊 Pro Logger & Monitor: Giao diện Console siêu gọn gàng, tích hợp theo dõi RAM, CPU và Uptime.

🛠️ Cài đặt (Installation)

npm install @asura21232/fca-unofficial-nextgen

[!TIP] Puppeteer is optional! To use autoLogin (automated browser login), install it manually: npm install puppeteer


🚀 Quick Start (Khởi chạy nhanh)

const FcaNextGen = require("@asura21232/fca-unofficial-nextgen");

(async () => {
    const bot = new FcaNextGen();
    const api = await bot.login(require("./appstate.json"));

    // 1. Gửi tin nhắn
    await api.sendMessage("Chào bạn, tôi là Bot NextGen!", "threadID_here");

    // 2. Lắng nghe sự kiện
    api.listen((err, event) => {
        if (err) return console.error(err);
        console.log("Sự kiện mới:", event);
    });
})();

🧩 Advanced: Command Manager (Opt-in)

const CommandManager = FcaNextGen.CommandManager;
const commands = new CommandManager(bot, {
    prefix: "!",
    commandsPath: path.join(__dirname, "plugins")
});

await commands.loadAll();

api.listen(async (err, event) => {
    await commands.handle(event, api);
});

🛠️ Danh sách API tiêu biểu

  • sendMessage(text, threadID)
  • unsendMessage(messageID)
  • changeNickname(nickname, threadID, userID)
  • changeThreadTitle(title, threadID)
  • getThreadList(limit)
  • getUserInfo(userID)
  • uploadAttachment(stream)

👨‍💻 Tác giả (Author)

Nguyễn Đức Anh - Initial Architecture & Development

📄 License

MIT © Nguyễn Đức Anh