shardx — Rust SDK
Self-contained Rust SDK for the ShardX anti-detect browser by the ProxyShard team. Same surface as the Python and Node SDKs: on first use it downloads the engine, Widevine CDM, and the bundled fingerprint library from the ProxyShard CDN into a per-user cache dir, then launches isolated profiles with the exact spoofing flags the desktop launcher uses.
Supported hosts: macOS arm64, Windows x64, Linux x64.
On macOS/Linux the system unzip is used for extraction (preserves symlinks
and exec bits) — install it with brew install unzip / apt install unzip.
Install
[]
= "0.1"
= { = "1", = ["full"] }
Quickstart — launch and drive the browser
session() launches the engine and attaches a chromiumoxide
CDP browser in one call (the Rust equivalent of patchright in the Python/Node
SDKs). It's behind the default control feature.
use ;
async
Pass None as the first arg to launch a random profile (filtered by
LaunchOptions::platform). You can also launch from a raw config:
LaunchInput::from(serde_json::json!({ ... })).
Without a driver (lighter build)
If you don't want the CDP client, disable the feature
(shardx = { version = "0.1", default-features = false }) and use
launch (no CDP) or launch_cdp (exposes session.cdp_url for your own
client):
let mut engine = sdk.launch_cdp.await?;
println!;
engine.stop.await?;
Validate a proxy before binding it
let res = sdk.check_proxy.await?;
println!;
The same SOCKS5 UDP_ASSOCIATE probe the launcher runs decides whether QUIC
is enabled and whether WebRTC is forced to tcp_only.
What launch does for you
Before spawning the engine the SDK reproduces the launcher's pre-flight:
- auto-resolve — fills
"auto"timezone / language / geolocation from a live geo lookup through the bound proxy ([resolve_auto_fields]). - screen strategy —
CapToHoston macOS,UseHoston Win/Linux ([apply_screen_strategy]); override viaLaunchOptions::screen_mode. - UDP probe — decides QUIC + WebRTC policy from a live relay probe.
Lower-level building blocks
Everything the façade uses is public and reusable:
use ;
Runtime (download/cache/extract), FingerprintLibrary + Profile,
parse_proxy / proxy_to_arg / probe_udp, geo_check_via,
randomize_hardware / randomize_platform_version, host_* probes, and the
screen / auto_resolve helpers.
Links
- Site: https://proxyshard.com
- Docs: https://docs.proxyshard.com
- Usage: https://docs.proxyshard.com/eng/usage-instructions/shardx-browser
MIT licensed.