WhatsApp adapter via HTTP bridge — read and send messages through the browser extension
| Tier | infrastructure |
| Role | unclassified (baselined) |
| Path | crates/infrastructure/whatsapp-bridge |
| Edition | 2021 |
| Targets | infrastructure_whatsapp_bridge |
| Public items | 0 across 0 modules |
| Tests | 15 |
What it is for
WhatsApp adapter via HTTP bridge.
Connects to the WhatsApp browser extension bridge and provides an async API for listing chats, reading messages, and sending messages.
Uses HTTP POST to /api/extension-command instead of direct CDP.
Capabilities
No public items.
How to use it
No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.
Module structure
No public modules: the crate root is its whole surface.
Public surface
No public items.
Re-exports. Exported here, defined elsewhere.
| Export | Defined in |
|---|---|
WhatsAppBridgeError | error::WhatsAppBridgeError |
{BridgeConfig,Chat,Message,MessageDirection,SendResult,WhatsAppBridge} | client::{BridgeConfig,Chat,Message,MessageDirection,SendResult,WhatsAppBridge} |
Boundary
Depends on no other workspace tier.
Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-adapters-yelp, infrastructure-agent, … (82 total).
_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._
Where it sits
| Tier (ontology) | infrastructure |
| Architectural role (taxonomy) | unclassified (baselined) |
| Location | crates/infrastructure/whatsapp-bridge |
| Vocabulary in force (lexicon) | current |
Dependencies
Runtime, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `infrastructure-fetcher` | infrastructure | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
reqwest | ^0.12 | json | no | always |
serde | ^1 | derive | no | always |
serde_json | ^1 | — | no | always |
thiserror | ^2 | — | no | always |
tracing | ^0.1 | — | no | always |
Development. None.
Build. None.
Depended on by. 1 workspace crate.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR n_application_whatsapp_bridge["application-whatsapp-bridge"] -->|uses| SELF SELF["infrastructure-whatsapp-bridge"] SELF -->|runtime| n_infrastructure_fetcher["infrastructure-fetcher"] classDef self fill:#1f883d,stroke:#1f883d,color:#fff; class SELF self;
Feature flags
No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.
Targets
| Kind | Name | Source |
|---|---|---|
| lib | infrastructure_whatsapp_bridge | `src/lib.rs` |
Error model
No public error type was detected: no public item declares a type named *Error, and no public signature returns one.
Operational characteristics
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | none detected |
| database access | none detected |
| network I/O | yes |
| unsafe code | none detected |
| environment variables | yes |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
| Variable | Read in |
|---|---|
BRIDGE_API_KEY | src/client.rs |
BRIDGE_TIMEOUT_SECS | src/client.rs |
BRIDGE_URL | src/client.rs |
Related capabilities
1 workspace crate depends on this one: application-whatsapp-bridge.
Verification
| Kind | Count |
|---|---|
| Unit tests | 15 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
What the tests establish, by name:
bridge_config_debug_redacts_api_key—src/client.rsbridge_host_port_parses_default—src/client.rsbridge_host_port_rejects_malformed—src/client.rsbridge_response_error—src/client.rsbridge_response_ok—src/client.rschat_deserializes—src/client.rsconfig_defaults—src/client.rsextension_command_serializes—src/client.rsguard_permits_allowlisted_bridge_endpoint—src/client.rsguard_refuses_non_allowlisted_host—src/client.rsguard_refuses_non_allowlisted_port—src/client.rsmessage_deserializes—src/client.rsresolve_group_target—src/client.rsresolve_phone_target—src/client.rssend_result_deserializes—src/client.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 0 | 0 |
Public modules with a //! block | 0 | 0 |
Metrics
| Metric | Value |
|---|---|
| Rust source files | 3 |
| Source lines | 567 |
| Code lines | 436 |
| Public API items | 0 |
| Public modules | 0 |
| Tests | 15 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 6 |
| Workspace reverse dependencies | 1 |
pie showData
title Rust source composition
"Code" : 436
"Blank or comment" : 131
Generation
Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.