Skip to content
TripleU613Public

About

Experimental pure-Rust WhatsApp primary-device client library and CLI (registration, Noise transport, Signal messaging). Not production-ready.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

WaRustAPI

Experimental Rust workspace for a standalone WhatsApp primary-device client. The goal is phone-number registration and messaging without a paired phone or another running WhatsApp client.

What works live (experimental lab path): registration by SMS code with the APK-derived recipe, authenticated login, and end-to-end encrypted messaging: direct text, images, voice notes, view-once images, replies, reactions, polls, group send/receive, status posts and receipts. Calls, stickers/video sending, privacy settings and companion pairing are not done, and some features are server-acknowledged but not yet confirmed on a handset. The per-feature matrix is feature-parity; dated evidence is in STATUS.md.

Get started

Linux x86_64 is the initial proof target. Install Rust through rustup; this repository pins Rust 1.98.1 in rust-toolchain.toml.

cargo build --locked --workspace
cargo run --locked -p whatsapp-cli -- --help
cargo run --locked -p whatsapp-cli -- profile
cargo run --locked -p whatsapp-cli -- capabilities

These inspection commands need no account or APK. For local storage and the HTTP control plane, see Getting started. Enqueueing a message stores an intent; outbox-send or listen --send-outbox transmits it.

Onboarding a phone number is two commands (accounts new, then lab-signup begin); see docs/accounts.md. Every command is listed in docs/cli.md and described in docs/api/openapi.json.

Workspace

Package Purpose
whatsapp-api Async library, encrypted store, codecs, protocol boundaries
whatsapp-cli Operator CLI and local HTTP inspection
xtask Rust-only schema, dependency, and APK analysis tools

Optional experimental-noise, experimental-registration-https, experimental-signal-crypto, and experimental-transport remain lab features. HTTPS uses native ring crypto; the Signal adapter includes AGPL-marked dependencies. See third-party notices.

Development

cargo fmt --all -- --check
cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
cargo test --locked --workspace --all-features

Read CONTRIBUTING.md for setup, feature checks, generated code, and the full validation workflow. The library, CLI and all build/CI automation are Rust, and so are the research generators, ELF readers and the ARM64 decoder probe (xtask, tools/apk-research/native-probe). What remains in Python under tools/apk-research/ are the checkers that execute native ARM64 code under the Unicorn/Qiling emulators (no pure-Rust equivalent exists) and one SQLite oracle; nothing in the build, tests or CI runs them. APK research input is described in APK research.

Documentation

License

First-party code is licensed under MIT OR Apache-2.0, matching the Cargo manifests. Third-party notices describe separately licensed inputs. This project is not affiliated with WhatsApp or Meta.

About

Experimental pure-Rust WhatsApp primary-device client library and CLI (registration, Noise transport, Signal messaging). Not production-ready.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages