baileys-antiban 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -2
- package/package.json +16 -3
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
# baileys-antiban
|
|
1
|
+
# baileys-antiban — Anti-Ban Middleware for Baileys & WhatsApp Bots
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/baileys-antiban)
|
|
4
4
|
[](https://nodejs.org/)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Drop-in anti-ban middleware for Baileys WhatsApp bots. Free, self-hosted, TypeScript-first. Whapi.Cloud alternative — zero monthly fees.**
|
|
8
|
+
|
|
9
|
+
> Rate limiting with Gaussian jitter, 7-day warmup, session health monitoring, LID resolver, disconnect classification, contact graph enforcement — all in one `npm install`. Works with [Baileys](https://github.com/WhiskeySockets/Baileys) and [@oxidezap/baileyrs](https://github.com/oxidezap/baileyrs) (Rust/WASM).
|
|
8
10
|
|
|
9
11
|
## v2.0 New Features — Session Stability Module
|
|
10
12
|
|
|
@@ -323,6 +325,25 @@ const antiban = new AntiBan({
|
|
|
323
325
|
|
|
324
326
|
**Why these features?** 2025-2026 ban research showed WhatsApp's ML models heavily weight reply-ratio (<10% = high risk), contact-graph distance (strangers = high risk), and temporal patterns (robotic timing = high risk). These modules address the three largest gaps in existing anti-ban libraries.
|
|
325
327
|
|
|
328
|
+
## baileys-antiban vs Whapi.Cloud vs DIY rate limiting
|
|
329
|
+
|
|
330
|
+
| Feature | baileys-antiban | Whapi.Cloud | DIY snippets |
|
|
331
|
+
|---|---|---|---|
|
|
332
|
+
| Price | **Free, MIT** | $49–$99/mo | Free |
|
|
333
|
+
| WhatsApp API | Unofficial (Baileys) | Unofficial underneath | Unofficial (Baileys) |
|
|
334
|
+
| Rate limiting | ✅ Gaussian jitter | ✅ Black box | ⚠️ Basic only |
|
|
335
|
+
| Warmup schedule | ✅ 7-day ramp | ✅ Managed | ❌ None |
|
|
336
|
+
| Session health monitor | ✅ Built-in | ✅ Managed | ❌ None |
|
|
337
|
+
| LID/PN resolver | ✅ v2.0 | ❌ Unknown | ❌ None |
|
|
338
|
+
| Disconnect classifier | ✅ Typed reasons | ❌ None | ❌ None |
|
|
339
|
+
| Contact graph enforcement | ✅ v1.3 | ❌ None | ❌ None |
|
|
340
|
+
| Self-hosted | ✅ Yes | ❌ No | ✅ Yes |
|
|
341
|
+
| TypeScript | ✅ Full types | N/A | ❌ Rarely |
|
|
342
|
+
| Customisable | ✅ Full control | ❌ None | ⚠️ Copy-paste |
|
|
343
|
+
| Drop-in (existing bot) | ✅ One-line wrapper | ❌ Full migration | ❌ Rewrite |
|
|
344
|
+
|
|
345
|
+
**Bottom line:** Whapi.Cloud charges $99/mo for managed Baileys under the hood — same unofficial API, same ban risk, zero customisation. baileys-antiban gives you more protection, free, with full source access.
|
|
346
|
+
|
|
326
347
|
## Why?
|
|
327
348
|
|
|
328
349
|
WhatsApp bans numbers that behave like bots. This library makes your Baileys bot behave like a human:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baileys-antiban",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.1.1",
|
|
4
|
+
"description": "Anti-ban middleware for Baileys WhatsApp bots. Rate limiting, warmup, health monitor, LID resolver, disconnect classifier. Free Whapi.Cloud alternative.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -38,7 +38,20 @@
|
|
|
38
38
|
"bot-protection",
|
|
39
39
|
"whatsapp-api",
|
|
40
40
|
"nodejs",
|
|
41
|
-
"transport-agnostic"
|
|
41
|
+
"transport-agnostic",
|
|
42
|
+
"whapi-alternative",
|
|
43
|
+
"whatsapp-ban",
|
|
44
|
+
"baileys-middleware",
|
|
45
|
+
"warmup",
|
|
46
|
+
"session-health",
|
|
47
|
+
"lid-resolver",
|
|
48
|
+
"disconnect-classifier",
|
|
49
|
+
"gaussian-jitter",
|
|
50
|
+
"whatsapp-automation",
|
|
51
|
+
"typescript",
|
|
52
|
+
"self-hosted",
|
|
53
|
+
"free",
|
|
54
|
+
"open-source"
|
|
42
55
|
],
|
|
43
56
|
"author": "Kobus Wentzel <kobie@pop.co.za>",
|
|
44
57
|
"license": "MIT",
|