Klav Atlas

klav_wasm

7 methods.

Stablev0.15.1034e81b52d1b· 2026-12-04

Blast radius

1 direct · 0 transitive workspace · 1 app affected

What a change to these 7 methods can reach, from workspace dependencies, imports, call sites, and protocol edges.

Affected apps (node)
Direct dependents
Contracts in its surface7 RPC

Version of `klav-core` this crate is built against.

Method
coreVersion
Transport
wasm-bindgen
Framework
wasm-bindgen
2Handled1
1 handler site
3Called by0
No static caller

Generates a password (ADR 0022 §1). `options` is a JSON `GeneratorOptions` and `site` a JSON `SiteHints` (both may be `{}`). Returns JSON: `{value, kind, bits, strength, rules?, limited, fallback?}`.

Method
generate
Transport
wasm-bindgen
Framework
wasm-bindgen
2 usages · in 1 flow

Whether the page `host` belongs to one of the item's URLs.

Method
hostMatches
Transport
wasm-bindgen
Framework
wasm-bindgen
2Handled1
1 handler site
3Called by0
No static caller
0 usages · in 1 flow

How the page `host` relates to the item's URLs (ADR 0025 §3): `"exact"`, `"subdomain"`, `"parent"` (a login saved for a subdomain of the page: only when the person picks it), or `undefined`.

Method
hostRelation
Transport
wasm-bindgen
Framework
wasm-bindgen
1 usage · in 1 flow

Whether a login with `item_urls` may be filled into the page at `url`.

Method
pageMatches
Transport
wasm-bindgen
Framework
wasm-bindgen
1 usage · in 1 flow

Checks a one-time code key the person pasted: an `otpauth://` URI or a bare base32 secret, read by [`klav_core::totp::Totp::from_field_value`] exactly as `klavd` reads it on `create`. Returns JSON with what the key says about itself (`{issuer?, account?, digits, period}`), never the secret or a code; an error says why it is not a key.

Method
totpCheck
Transport
wasm-bindgen
Framework
wasm-bindgen
1 usage · in 1 flow