@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.
Files changed (2) hide show
  1. package/README.md +47 -95
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,115 +1,67 @@
1
- # Harps-Baileys
1
+ # Harps Baileys
2
2
 
3
- `Harps-Baileys` adalah package JavaScript/TypeScript berbasis ESM untuk berinteraksi dengan WhatsApp Web melalui WebSocket.
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
- ## Isi utama paket
5
+ **A lightweight WebSocket library for WhatsApp Web Multi-Device**
7
6
 
8
- Di dalam arsip ini ada beberapa bagian penting:
7
+ [![GitHub Repo](https://img.shields.io/badge/GitHub-VinzSocket/Baileys-blue?style=for-the-badge&logo=github)](https://github.com/VinzSocket/Baileys)
8
+ ![Version](https://img.shields.io/badge/version-3.1.9-blue)
9
+ ![Node.js](https://img.shields.io/badge/Node.js-%3E%3D20-green)
10
+ ![NPM](https://img.shields.io/badge/npm-@vinzsocket/baileys-red)
9
11
 
10
- - `package.json` — metadata package, dependency, engine Node, dan script build.
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
- ## Struktur folder
14
+ ---
17
15
 
18
- ### `WAProto/`
19
- Folder ini berisi komponen protobuf WhatsApp:
16
+ ## 📖 Tentang Harps Baileys
20
17
 
21
- - `WAProto.proto` — definisi struktur data protobuf.
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
- ### `lib/`
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
- #### `lib/Defaults/`
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
- #### `lib/Signal/`
33
- Berisi implementasi mekanisme Signal / enkripsi, termasuk logika grup dan key management.
24
+ ---
34
25
 
35
- Subfolder penting di dalamnya:
26
+ ## ✨ Features
36
27
 
37
- - `Group/` — logic untuk pesan grup, sender key, dan distribusi key.
38
- - file seperti `libsignal.d.ts` dan `lid-mapping.d.ts` — tipe dan helper terkait identitas/enkripsi.
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
- #### `lib/Socket/`
41
- Bagian socket adalah inti koneksi ke WhatsApp Web.
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
- Isi yang terlihat mencakup:
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
- - `Client/` — client layer dan tipe websocket.
46
- - file bisnis dan socket utama untuk membangun koneksi, handle event, dan komunikasi real-time.
48
+ ### 🔒 Security
49
+ - End-to-End Encryption (Signal Protocol)
50
+ - Sender Key Distribution
47
51
 
48
- #### `lib/Types/`
49
- Kumpulan type definitions untuk struktur data library, misalnya auth, chat, message, business, dan tipe internal lain.
52
+ ### 🔄 Synchronization
53
+ - Chat, Contact, Group, Device & History Sync
54
+ - Presence (online, typing, etc.)
50
55
 
51
- #### `lib/Utils/`
52
- Kumpulan helper/pemrosesan pendukung, misalnya:
56
+ ### 🛠️ Lainnya
57
+ - Media Upload/Download
58
+ - Link Preview
59
+ - Business API Support
60
+ - Full TypeScript Support
53
61
 
54
- - auth utils
55
- - browser utils
56
- - message utils
57
- - file / media / link helper
58
- - fungsi-fungsi kecil yang dipakai lintas modul
62
+ ---
59
63
 
60
- #### `lib/WABinary/`
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinzsocket/baileys",
3
3
  "type": "module",
4
- "version": "3.1.9",
4
+ "version": "3.2.0",
5
5
  "description": "A WebSockets library for interacting with WhatsApp Web",
6
6
  "keywords": [
7
7
  "whatsapp",