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

anodite-mca

v1.4.4

Published

Anodite-MCA maxed client — resilient WS FCA wrapper with queue, heartbeat, session resume, full method proxy. Config: AndoiteMca.json

Readme

anodite-mca

Maxed-out remote WebSocket FCA client for the Anodite-MCA private multi-session Messenger API server.

Like @hoangquyet/fca — bots talk to your private backend. The FCA engine never ships in this package.

v1.1 — heartbeat, exponential reconnect, request queue, session resume, hooks, batch calls, full method proxy.


Install

npm install anodite-mca

On first connect(), AndoiteMca.json is created in your project root.


Quick start

const fca = require("anodite-mca");

async function main() {
  const api = await fca.connect({ username: "mybot" });

  console.log("Logged in as", api.userID);

  await api.sendMessage("Hello from Anodite", "THREAD_ID");

  api.on("*", (event) => console.log(event.type, event.body));
  // or classic:
  // api.listenMqtt((err, event) => { ... });
}

main().catch(console.error);

Resilience (built-in)

| Feature | Detail | |---------|--------| | Heartbeat | Ping every 25s; dead socket → force reconnect | | Reconnect | Exponential backoff + jitter (3s → max 60s) | | Session resume | Auto re-login after reconnect when credentials known | | Request queue | Up to 200 calls buffered offline; flushed after auth | | Concurrency | Max 32 in-flight RPCs (configurable) | | Retry | One automatic retry on transient disconnect/timeout | | Stats | api.getStats() → latency, sent/received, reconnects |

api.on("reconnecting", ({ attempt, delay }) => {});
api.on("reconnected", () => {});
api.on("session_resumed", ({ userID }) => {});
api.on("reconnect_failed", () => {});

AndoiteMca.json

{
  "username": "mybot",
  "key": "",
  "autoGenerateKey": true,
  "api": {
    "url": "https://tetroxide-redwan-production.up.railway.app",
    "wsUrl": "wss://tetroxide-redwan-production.up.railway.app/ws",
    "masterKey": ""
  },
  "cookieFile": "./cookie.txt",
  "options": { "listenEvents": true, "autoReconnect": true },
  "reconnectMs": 3000,
  "reconnectMaxMs": 60000,
  "autoRelogin": true,
  "heartbeatIntervalMs": 25000,
  "requestTimeoutMs": 90000,
  "maxConcurrent": 32,
  "maxQueueSize": 200
}
  • Empty key + autoGenerateKey: true → calls /api/keys/generate?username= and saves the key.
  • connect() options override the file.

API surface

99+ methods proxied to the server, including:

Messaging · reactions · stickers · avatar/bio/cover · groups · threads · typing · presence · upload · posts · stories · themes · E2EE helpers · HTTP utils

Promise or callback:

await api.sendMessage("hi", threadID);
api.sendMessage("hi", threadID, (err, info) => {});

Unknown method names are still forwarded dynamically.

Batch

const results = await api.callMany([
  { method: "getUserInfo", args: [uid] },
  { method: "getThreadInfo", args: [tid] },
], { parallel: 8 });

Hooks

api.use({
  before: async (ctx) => console.log("→", ctx.method),
  after: async (ctx) => console.log("←", ctx.method, ctx.durationMs + "ms"),
  error: async (ctx) => console.error(ctx.method, ctx.error.message),
});

Shutdown

await api.logout();  // server logout + close
api.close();         // local close only

Default server

https://tetroxide-redwan-production.up.railway.app
wss://tetroxide-redwan-production.up.railway.app/ws

License

MIT