infrastructure tier

infrastructure-browser-automation-wasm

Browser automation compiled to WebAssembly for Chrome extension use

Browser automation compiled to WebAssembly for Chrome extension use

Tierinfrastructure
Roleunclassified (baselined)
Pathcrates/infrastructure/browser-automation-wasm
Edition2021
Targetsinfrastructure_browser_automation_wasm
Public items6 across 0 modules
Tests5

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`

ItemWhat it is
fn version() -> StringVersion of the WASM module.
fn decode_cookie(name : & str, value : & str) -> StringDecode 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) -> StringGenerate 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) -> StringGenerate humanized typing plan with typos.
fn plan_scroll(current_y : f64, target_y : f64, seed : u64) -> StringGenerate humanized scroll plan.
fn get_timing(seed : u64) -> StringGet 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)
Locationcrates/infrastructure/browser-automation-wasm
Vocabulary in force (lexicon)current

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`infrastructure-browser-automation`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
getrandom^0.2jsnoalways
getrandom^0.3wasm_jsnoalways
serde^1derivenoalways
serde_json^1noalways
wasm-bindgen^0.2noalways

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

KindNameSource
cdylibinfrastructure_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

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesyes

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

VariableRead in
CARGO_PKG_VERSIONsrc/lib.rs

1 workspace crate depends on this one: application-browser-automation-wasm.

Verification

KindCount
Unit tests5
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root601

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc66
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 6
    "No rustdoc detected" : 0

Metrics

MetricValue
Rust source files1
Source lines127
Code lines98
Public API items6
Public modules0
Tests5
Examples0
Cargo features0
Direct runtime dependencies6
Workspace reverse dependencies1
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.

All infrastructure · Manual