Browser automation compiled to WebAssembly for Chrome extension use
| Tier | infrastructure |
| Role | unclassified (baselined) |
| Path | crates/infrastructure/browser-automation-wasm |
| Edition | 2021 |
| Targets | infrastructure_browser_automation_wasm |
| Public items | 6 across 0 modules |
| Tests | 5 |
What it is for
Minimal WASM module for Chrome extension. Just collects raw data — server does all scoring and analysis.
Capabilities
crate root
Minimal WASM module for Chrome extension.
| Item |
|---|
fn version() -> String |
fn decode_cookie(name : & str, value : & str) -> String |
fn plan_mouse_path(from_x : f64, from_y : f64, to_x : f64, to_y : f64, seed : u64) -> String |
fn plan_typing(text : & str, seed : u64) -> String |
fn plan_scroll(current_y : f64, target_y : f64, seed : u64) -> String |
fn get_timing(seed : u64) -> String |
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
`crate root`
| Item | What it is |
|---|---|
fn version() -> String | Version of the WASM module. |
fn decode_cookie(name : & str, value : & str) -> String | Decode a cookie value — kept in WASM because it's pure parsing and useful for real-time display in the extension popup. |
fn plan_mouse_path(from_x : f64, from_y : f64, to_x : f64, to_y : f64, seed : u64) -> String | Generate humanized mouse path — kept because it needs fast math that JS would be slower at (Bezier curves + RNG). |
fn plan_typing(text : & str, seed : u64) -> String | Generate humanized typing plan with typos. |
fn plan_scroll(current_y : f64, target_y : f64, seed : u64) -> String | Generate humanized scroll plan. |
fn get_timing(seed : u64) -> String | Get humanized timing values. |
No pub use re-exports: every item above is declared in this crate.
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/browser-automation-wasm |
| Vocabulary in force (lexicon) | current |
Dependencies
Runtime, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `infrastructure-browser-automation` | infrastructure | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
getrandom | ^0.2 | js | no | always |
getrandom | ^0.3 | wasm_js | no | always |
serde | ^1 | derive | no | always |
serde_json | ^1 | — | no | always |
wasm-bindgen | ^0.2 | — | 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_browser_automation_wasm["application-browser-automation-wasm"] -->|uses| SELF SELF["infrastructure-browser-automation-wasm"] SELF -->|runtime| n_infrastructure_browser_automation["infrastructure-browser-automation"] 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 |
|---|---|---|
| cdylib | infrastructure_browser_automation_wasm | `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 | none detected |
| 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 |
|---|---|
CARGO_PKG_VERSION | src/lib.rs |
Related capabilities
1 workspace crate depends on this one: application-browser-automation-wasm.
Verification
| Kind | Count |
|---|---|
| Unit tests | 5 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
Evidence by module. How often each public module is named by something executable.
| Module | Tests | Examples | Consumers |
|---|---|---|---|
crate root | 6 | 0 | 1 |
What the tests establish, by name:
cookie_decode_works—src/lib.rsmouse_path_has_points—src/lib.rsscroll_has_steps—src/lib.rstyping_has_events—src/lib.rsversion_exists—src/lib.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 6 | 6 |
Public modules with a //! block | 0 | 0 |
pie showData
title Public items with rustdoc
"Documented" : 6
"No rustdoc detected" : 0
Metrics
| Metric | Value |
|---|---|
| Rust source files | 1 |
| Source lines | 127 |
| Code lines | 98 |
| Public API items | 6 |
| Public modules | 0 |
| Tests | 5 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 6 |
| Workspace reverse dependencies | 1 |
pie showData
title Public API by kind
"function" : 6
pie showData
title Rust source composition
"Code" : 98
"Blank or comment" : 29
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.