How yuusuke1101/ryuuxalya works
This repository is a WhatsApp multi-device client library: applications create a socket, exchange messages and other service operations over a WebSocket, and consume resulting events. The graph preserves the visible send/receive, Signal encryption, binary-protocol, synchronization, and in-memory state responsibilities. Several socket capabilities are represented at their source paths based on the file tree and SOURCE INDEX; their internal call relationships are not inferred where excerpts do not show them.
Main entry points: messages-send.js Send Messages · index.js Library Entry · messages-recv.js Receive Messages · USyncQuery.js User Sync Queries
Components 23
Public API
- Library Entry
lib/index.js
Socket Operations
- Socket Factory
lib/Socket/socket.js - WebSocket Client
lib/Socket/Client/websocket.js - Send Messages
lib/Socket/messages-send.js - Receive Messages
lib/Socket/messages-recv.js - Chat Operations
lib/Socket/chats.js - Group Operations
lib/Socket/groups.js - Business Operations
lib/Socket/business.js - Newsletter Operations
lib/Socket/newsletter.js - User Sync Queries
lib/WAUSync/USyncQuery.js - Sync Protocols
lib/WAUSync/Protocols
Wire Protocol
- Binary Node Codec
lib/WABinary/decode.js - JID Utilities
lib/WABinary/jid-utils.js - WhatsApp Protobuf
WAProto/index.js
Messaging Security
- Signal Repository
lib/Signal/libsignal.js - Group Signal Keys
lib/Signal/Group
State And Utilities
- Message Processing
lib/Utils/process-message.js - Media And Previews
lib/Utils/messages-media.js - Link Preview
lib/Utils/link-preview.js - In-Memory Store
lib/Store/make-in-memory-store.js - Retry Manager
lib/Utils/message-retry-manager.js - Shared Utilities
lib/Utils
Other components
- Client Application
Connections 18
- Client Application → Library Entry: creates client
lib/index.js - Library Entry → Socket Factory: exports factory
lib/index.js - Socket Factory → WebSocket Client: uses transport
- Send Messages → Signal Repository: encrypts payload
lib/Socket/messages-send.js - Send Messages → Link Preview: uses previews
lib/Socket/messages-send.js - Link Preview → Media And Previews: fetches thumbnails
lib/Utils/link-preview.js - Receive Messages → Shared Utilities: decrypts messages
lib/Socket/messages-recv.js - Receive Messages → Message Processing: processes events
- Send Messages → User Sync Queries: queries devices
lib/Socket/messages-send.js - User Sync Queries → Sync Protocols: registers protocols
lib/WAUSync/USyncQuery.js - User Sync Queries → Binary Node Codec: parses results
lib/WAUSync/USyncQuery.js - Binary Node Codec → JID Utilities: uses JID helpers
lib/WABinary/decode.js - Signal Repository → Group Signal Keys: uses group keys
lib/Signal/libsignal.js - In-Memory Store → Shared Utilities: uses helpers
lib/Store/make-in-memory-store.js - Library Entry → In-Memory Store: exports store
lib/index.js - Library Entry → Shared Utilities: exports utilities
lib/index.js - Send Messages → WhatsApp Protobuf: encodes messages
lib/Socket/messages-send.js - Receive Messages → WhatsApp Protobuf: decodes messages
lib/Socket/messages-recv.js