@vinzsocket/baileys 3.1.9 → 3.2.0
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 +47 -95
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,115 +1,67 @@
|
|
|
1
|
-
# Harps
|
|
1
|
+
# Harps Baileys
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Dari isi zip ini, terlihat bahwa proyek ini adalah **hasil build/distribusi** dari library `@vinzsocket/baileys` versi `3.1.9`, bukan source mentahnya.
|
|
3
|
+
<div align="center">
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
**A lightweight WebSocket library for WhatsApp Web Multi-Device**
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
[](https://github.com/VinzSocket/Baileys)
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
- `engine-requirements.js` — pengecekan versi/runtime Node saat instalasi.
|
|
12
|
-
- `CHANGELOG.md` — riwayat perubahan versi.
|
|
13
|
-
- `WAProto/` — definisi protobuf WhatsApp dan file helper yang di-generate.
|
|
14
|
-
- `lib/` — inti library yang siap dipakai oleh aplikasi.
|
|
12
|
+
</div>
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
---
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
Folder ini berisi komponen protobuf WhatsApp:
|
|
16
|
+
## 📖 Tentang Harps Baileys
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
- `index.js` dan `index.d.ts` — entry point untuk ekspor protokol.
|
|
23
|
-
- `GenerateStatics.sh` — script untuk generate file statis protobuf.
|
|
24
|
-
- `fix-imports.js` — helper untuk merapikan import hasil generate.
|
|
18
|
+
**Harps Baileys** (`@vinzsocket/baileys`) adalah fork/modifikasi dari library Baileys yang dioptimalkan untuk performa tinggi dan kemudahan penggunaan.
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
Ini adalah inti library yang sudah dikompilasi. Isinya didominasi file `.js`, `.d.ts`, dan `.map`.
|
|
20
|
+
**Repository Resmi:** [https://github.com/VinzSocket/Baileys](https://github.com/VinzSocket/Baileys)
|
|
28
21
|
|
|
29
|
-
|
|
30
|
-
Berisi nilai default dan konfigurasi awal yang dipakai library.
|
|
22
|
+
Library ini memungkinkan kamu berinteraksi langsung dengan **WhatsApp Web Multi-Device** menggunakan WebSocket tanpa browser.
|
|
31
23
|
|
|
32
|
-
|
|
33
|
-
Berisi implementasi mekanisme Signal / enkripsi, termasuk logika grup dan key management.
|
|
24
|
+
---
|
|
34
25
|
|
|
35
|
-
|
|
26
|
+
## ✨ Features
|
|
36
27
|
|
|
37
|
-
|
|
38
|
-
-
|
|
28
|
+
### 🔐 Authentication
|
|
29
|
+
- QR Code Login
|
|
30
|
+
- Pairing Code (tanpa scan QR)
|
|
31
|
+
- Multi-Device Support
|
|
32
|
+
- Session Management
|
|
33
|
+
- Auto Reconnect
|
|
39
34
|
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
### 💬 Messaging
|
|
36
|
+
- Text, Image, Video, Audio, Document, Sticker
|
|
37
|
+
- Reaction, Mention, Quoted Message
|
|
38
|
+
- View Once, Edit Message, Revoke Message
|
|
39
|
+
- Location, Contact, Poll
|
|
42
40
|
|
|
43
|
-
|
|
41
|
+
### 👥 Group Management
|
|
42
|
+
- Create Group
|
|
43
|
+
- Update Subject, Description, PP
|
|
44
|
+
- Add/Remove Member
|
|
45
|
+
- Promote/Demote Admin
|
|
46
|
+
- Group Settings
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
-
|
|
48
|
+
### 🔒 Security
|
|
49
|
+
- End-to-End Encryption (Signal Protocol)
|
|
50
|
+
- Sender Key Distribution
|
|
47
51
|
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
### 🔄 Synchronization
|
|
53
|
+
- Chat, Contact, Group, Device & History Sync
|
|
54
|
+
- Presence (online, typing, etc.)
|
|
50
55
|
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
### 🛠️ Lainnya
|
|
57
|
+
- Media Upload/Download
|
|
58
|
+
- Link Preview
|
|
59
|
+
- Business API Support
|
|
60
|
+
- Full TypeScript Support
|
|
53
61
|
|
|
54
|
-
|
|
55
|
-
- browser utils
|
|
56
|
-
- message utils
|
|
57
|
-
- file / media / link helper
|
|
58
|
-
- fungsi-fungsi kecil yang dipakai lintas modul
|
|
62
|
+
---
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
Berisi encoder/decoder dan konstanta untuk format binary WhatsApp.
|
|
62
|
-
|
|
63
|
-
#### `lib/WAM/`
|
|
64
|
-
Berisi konstanta dan helper untuk model/protokol WhatsApp Message.
|
|
65
|
-
|
|
66
|
-
#### `lib/WAUSync/`
|
|
67
|
-
Berisi protokol sinkronisasi data WhatsApp, termasuk:
|
|
68
|
-
|
|
69
|
-
- contact sync
|
|
70
|
-
- device sync
|
|
71
|
-
- chat/message sync
|
|
72
|
-
- state synchronization
|
|
73
|
-
|
|
74
|
-
## Gambaran isi file di root package
|
|
75
|
-
|
|
76
|
-
File penting di root package:
|
|
77
|
-
|
|
78
|
-
- `lib/index.js` — entry point utama library.
|
|
79
|
-
- `lib/index.d.ts` — tipe TypeScript utama.
|
|
80
|
-
- `package.json` — informasi package dan entry point.
|
|
81
|
-
- `CHANGELOG.md` — catatan perubahan.
|
|
82
|
-
- `engine-requirements.js` — validasi lingkungan runtime.
|
|
83
|
-
|
|
84
|
-
## Cara memakai
|
|
85
|
-
|
|
86
|
-
Contoh dasar pemakaian:
|
|
87
|
-
|
|
88
|
-
```js
|
|
89
|
-
import makeWASocket from '@vinzsocket/baileys'
|
|
90
|
-
|
|
91
|
-
const conn = makeWASocket({
|
|
92
|
-
// konfigurasi koneksi
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
console.log('Socket siap dipakai')
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Catatan teknis
|
|
99
|
-
|
|
100
|
-
- Package ini memakai `"type": "module"`, jadi format utamanya **ESM**.
|
|
101
|
-
- Entry point utama ada di `lib/index.js`.
|
|
102
|
-
- Target Node di `package.json` adalah `>=20.0.0`.
|
|
103
|
-
- Isi arsip ini lebih cocok disebut **build output** daripada source project lengkap.
|
|
104
|
-
|
|
105
|
-
## Ringkasan singkat
|
|
106
|
-
|
|
107
|
-
Kalau disederhanakan, isi zip ini adalah:
|
|
108
|
-
|
|
109
|
-
1. metadata package,
|
|
110
|
-
2. definisi protobuf WhatsApp,
|
|
111
|
-
3. modul socket utama,
|
|
112
|
-
4. modul enkripsi dan binary protocol,
|
|
113
|
-
5. tipe data dan utility pendukung,
|
|
114
|
-
6. hasil build siap pakai untuk library WhatsApp Web socket.
|
|
64
|
+
## 📦 Installation
|
|
115
65
|
|
|
66
|
+
```bash
|
|
67
|
+
npm install @vinzsocket/baileys
|