infrastructure tier

infrastructure-kv-store-indexeddb

IndexedDB implementation of KeyValueStore for browser WASM

IndexedDB implementation of KeyValueStore for browser WASM

Tierinfrastructure
Roleunclassified (baselined)
Pathcrates/infrastructure/kv-store-indexeddb
Edition2021
Targetsinfrastructure_kv_store_indexeddb
Public items0 across 0 modules
Tests0

What it is for

IndexedDB implementation of KeyValueStore for browser WASM.

This crate provides persistent key-value storage in the browser using IndexedDB. Data survives page reloads and browser restarts.

# Usage

use infrastructure_kv_store_indexeddb::IndexedDbStore;
use infrastructure_kv_store::KeyValueStore;

async fn example() {
// Open (or create) a database named "my-app"
let store = IndexedDbStore::open("my-app").await.unwrap();

// Use standard KeyValueStore interface
store.set("user:123", b"alice").await.unwrap();
let value = store.get("user:123").await.unwrap();
}

# Architecture

Capabilities

No public items.

How to use it

From this crate's own rustdoc:

use infrastructure_kv_store_indexeddb::IndexedDbStore;
use infrastructure_kv_store::KeyValueStore;

async fn example() {
    // Open (or create) a database named "my-app"
    let store = IndexedDbStore::open("my-app").await.unwrap();

    // Use standard KeyValueStore interface
    store.set("user:123", b"alice").await.unwrap();
    let value = store.get("user:123").await.unwrap();
}

Module structure

No public modules: the crate root is its whole surface.

Public surface

No public items.

Re-exports. Exported here, defined elsewhere.

ExportDefined in
IndexedDbStorestore::IndexedDbStore

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/kv-store-indexeddb
Vocabulary in force (lexicon)current

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`infrastructure-kv-store`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
async-trait^0.1noalways
futures-channel^0.3noalways
js-sys^0.3noalways
serde^1derivenoalways
wasm-bindgen^0.2noalways
wasm-bindgen-futures^0.4noalways
web-sys^0.3Window, Document, Storage, console, HtmlInputElement, FormData, … (27 total)noalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
wasm-bindgen-test^0.3noalways

Build. None.

Depended on by. 2 workspace crates.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_application_kv_store_indexeddb["application-kv-store-indexeddb"] -->|uses| SELF
  n_platform_wasm_ui["platform-wasm-ui"] -->|uses| SELF
  SELF["infrastructure-kv-store-indexeddb"]
  SELF -->|runtime| n_infrastructure_kv_store["infrastructure-kv-store"]
  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
libinfrastructure_kv_store_indexeddb`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 variablesnone detected

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

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

2 workspace crates depend on this one: application-kv-store-indexeddb, platform-wasm-ui.

Verification

KindCount
Unit tests0
Integration tests0
Examples0
Doctests1

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc00
Public modules with a //! block00

Metrics

MetricValue
Rust source files2
Source lines274
Code lines171
Public API items0
Public modules0
Tests0
Examples0
Cargo features0
Direct runtime dependencies8
Workspace reverse dependencies2
pie showData
    title Rust source composition
    "Code" : 171
    "Blank or comment" : 103

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