---
title: "RPC: klavwasm"
description: "7 entries."
canonical: "https://klav.everdoc.dev/stable/reference/rpc/klav_wasm"
channel: "stable"
---

# RPC: klav_wasm

> OmarAlex24/klav · channel `stable` · v0.15.1 @ [`034e81b52d1b`](https://github.com/OmarAlex24/klav/tree/034e81b52d1b693c65ff95181cd555c6734bc8e8) · 2026-12-04 · generated by Everdoc from source (no LLM).

7 entries.

<a id="rpc-klav_wasm-coreversion"></a>

## `klav_wasm.coreVersion`

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

- Kind: rpc
- Workspace: [klav-wasm](../../architecture/klav-wasm.md)
- Source: [crates/klav-wasm/src/lib.rs:20](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-wasm/src/lib.rs#L20)
- Handlers: 1 · Callers: 0
- Method: `coreVersion` · transport wasm-bindgen

<a id="rpc-klav_wasm-fillablehost"></a>

## `klav_wasm.fillableHost`

The page's host if Klav may fill into `url` (`https`, or `http` on this machine); `undefined` otherwise.

- Kind: rpc
- Workspace: [klav-wasm](../../architecture/klav-wasm.md)
- Source: [crates/klav-wasm/src/lib.rs:27](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-wasm/src/lib.rs#L27)
- Handlers: 1 · Callers: 15
- Method: `fillableHost` · transport wasm-bindgen
- Used at: [apps/extension/src/background/agents.ts:91](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/background/agents.ts#L91), [apps/extension/src/background/agents.ts:213](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/background/agents.ts#L213), [apps/extension/src/background/agents.ts:219](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/background/agents.ts#L219), [apps/extension/src/background/agents.ts:250](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/background/agents.ts#L250), [apps/extension/src/background/agents.ts:313](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/background/agents.ts#L313), … +10

<a id="rpc-klav_wasm-generate"></a>

## `klav_wasm.generate`

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?}`.

- Kind: rpc
- Workspace: [klav-wasm](../../architecture/klav-wasm.md)
- Source: [crates/klav-wasm/src/lib.rs:83](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-wasm/src/lib.rs#L83)
- Handlers: 1 · Callers: 2
- Method: `generate` · transport wasm-bindgen
- Used at: [apps/extension/src/ui/generator.ts:104](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/ui/generator.ts#L104), [apps/extension/src/ui/generator.ts:221](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/ui/generator.ts#L221)

<a id="rpc-klav_wasm-hostmatches"></a>

## `klav_wasm.hostMatches`

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

- Kind: rpc
- Workspace: [klav-wasm](../../architecture/klav-wasm.md)
- Source: [crates/klav-wasm/src/lib.rs:33](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-wasm/src/lib.rs#L33)
- Handlers: 1 · Callers: 0
- Method: `hostMatches` · transport wasm-bindgen

<a id="rpc-klav_wasm-hostrelation"></a>

## `klav_wasm.hostRelation`

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`.

- Kind: rpc
- Workspace: [klav-wasm](../../architecture/klav-wasm.md)
- Source: [crates/klav-wasm/src/lib.rs:41](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-wasm/src/lib.rs#L41)
- Handlers: 1 · Callers: 1
- Method: `hostRelation` · transport wasm-bindgen
- Used at: [apps/extension/src/background/index.ts:212](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/background/index.ts#L212)

<a id="rpc-klav_wasm-pagematches"></a>

## `klav_wasm.pageMatches`

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

- Kind: rpc
- Workspace: [klav-wasm](../../architecture/klav-wasm.md)
- Source: [crates/klav-wasm/src/lib.rs:55](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-wasm/src/lib.rs#L55)
- Handlers: 1 · Callers: 1
- Method: `pageMatches` · transport wasm-bindgen
- Used at: [apps/extension/src/background/agents.ts:213](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/background/agents.ts#L213)

<a id="rpc-klav_wasm-totpcheck"></a>

## `klav_wasm.totpCheck`

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.

- Kind: rpc
- Workspace: [klav-wasm](../../architecture/klav-wasm.md)
- Source: [crates/klav-wasm/src/lib.rs:65](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-wasm/src/lib.rs#L65)
- Handlers: 1 · Callers: 1
- Method: `totpCheck` · transport wasm-bindgen
- Used at: [apps/extension/src/ui/popup.ts:1275](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/extension/src/ui/popup.ts#L1275)
