@webex/storage-adapter-local-forage 3.13.0-next.5 → 3.13.0-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,262 @@
1
+ ---
2
+ type: Architecture
3
+ title: '@webex/storage-adapter-local-forage architecture'
4
+ description: Package-wide boundaries, resources, interactions, dependencies, and cross-cutting architecture for the Webex IndexedDB storage adapter.
5
+ tags: [architecture]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: architecture@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rsarika@cisco.com
12
+ updated_at: 2026-11-10T00:00:00Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # @webex/storage-adapter-local-forage architecture
17
+
18
+ Canonical package-wide architecture for `@webex/storage-adapter-local-forage`. This document owns
19
+ the facts that span the package as a whole: what it publishes, what it depends on, where its data
20
+ lives, and the release, host, and security boundaries around it. Module-level behavior is specified
21
+ in the [module specification](../src/docs/README.md); this page summarizes only what a package-level
22
+ reader needs and links there for detail.
23
+
24
+ Related context: [specification registry](specs/README.md) ·
25
+ [repository agent instructions](../AGENTS.md)
26
+
27
+ ## Applicability
28
+
29
+ | Condition ID | Status | Evidence or reason | Owned section |
30
+ | ------------------------------------ | ---------- | ------------------ | ----------------------------------- |
31
+ | `repo.owns_datastore` | Applicable | `src/index.js` writes namespaced records into the browser's default localforage database; the owner confirmed on 2026-10-06 that the package owns that layout | Repository data and schema |
32
+ | `repo.holds_client_state` | Applicable | `src/index.js` keeps per-binding in-memory state and persists SDK client data in the browser | Client state model |
33
+ | `repo.components_interact` | N/A | One module (`src/index.js`); there is no internal component graph | Dependency and interaction topology |
34
+ | `repo.domain_data_across_components` | N/A | One module; no domain object spans resources | Object and data ownership |
35
+ | `repo.caches_data` | N/A | `src/index.js` is a store; it keeps no cache with expiry or invalidation | Caching catalog |
36
+ | `repo.observability_convention` | Applicable | `src/index.js` requires an injected logger and logs every operation under a fixed prefix | Observability patterns |
37
+ | `repo.deploys_to_infra` | N/A | `package.json` declares a library with no deployable runtime | Runtime and infrastructure |
38
+ | `repo.shared_base_libs` | Applicable | `package.json`, `.eslintrc.js`, `babel.config.js`, and `jest.config.js` inherit shared workspace libraries and configuration | Shared and base libraries |
39
+ | `repo.is_monorepo` | N/A | The onboarding scope is this one package with one build (owner-confirmed 2026-10-06 and 2026-11-09). The monorepo root only routes to it and holds the shared templates; sibling workspace packages are dependencies | Package map and dependencies |
40
+ | `repo.multi_platform` | N/A | `src/index.js` is browser-only, and `test/unit/spec/storage-adapter-local-forage.js` skips in Node | Platform matrix |
41
+ | `repo.published_package` | Applicable | `package.json` declares npm entry points and a deploy:npm script | Release and versioning |
42
+ | `repo.embedded_in_host` | Applicable | A host plugs the adapter into its Webex SDK storage configuration; `src/index.js` implements that contract | Host integration and theming |
43
+ | `repo.exposes_commands_or_artifacts` | Applicable | `package.json` defines the build that emits the published dist/index.js and the publish command | Commands and generated artifacts |
44
+ | `repo.cross_repo_deps_material` | N/A | `package.json` declares only npm and workspace dependencies, covered under Dependency topology | Cross-repository topology |
45
+ | `repo.security_arch_warranted` | Applicable | Stored values are unencrypted and can include KMS key material from an in-repo consumer (owner-confirmed 2026-10-06) | Security architecture |
46
+
47
+ ## Design overview
48
+
49
+ The package publishes one thing: a browser storage adapter that implements the Webex JS SDK
50
+ storage-adapter interface on top of the `localforage` library. A host application chooses it for one
51
+ of the SDK's two storage slots. The `@webex/webex-core` storage layer then drives it, binding one
52
+ namespace per SDK plugin and reading and writing values that survive page reloads and browser
53
+ restarts.
54
+
55
+ The package is deliberately thin. It owns argument validation, the `${namespace}/${key}` record
56
+ layout, and the translation from `localforage` results to the interface's semantics. It does not own
57
+ binding caching, value serialization, encryption, or driver selection. It uses the default
58
+ `localforage` database with no configuration, which keeps setup at zero but means every adapter
59
+ instance on an origin shares one database; the resulting hazards are specified in the module spec as
60
+ [`MOD-009` and `MOD-010`](../src/docs/README.md#requirements).
61
+
62
+ ## Resource inventory and responsibilities
63
+
64
+ | Resource | Kind | Responsibility | Owner | Source | Detailed specification |
65
+ | -------- | ---- | -------------- | ----- | ------ | ---------------------- |
66
+ | `@webex/storage-adapter-local-forage` | Package | Published npm package containing the adapter | `@webex/web-client` | `package.json` | This document |
67
+ | `src/` | Module | `StorageAdapterLocalForage` and its namespace bindings | `@webex/web-client` | `src/index.js` | [`src/docs/README.md`](../src/docs/README.md) |
68
+ | Default `localforage` database | Browser datastore (external engine) | Holds every record the adapter writes, keyed `${namespace}/${key}` | Browser origin; layout owned by `src/` | `src/index.js` | [Data, schema, and migration discipline](../src/docs/README.md#data-schema-and-migration-discipline) |
69
+
70
+ ## Interaction and execution flows
71
+
72
+ Representative flow: a host configures the SDK, the storage layer binds a plugin namespace on first
73
+ access, and the plugin reads and writes through that binding. Logout clears every cached binding.
74
+
75
+ ```mermaid
76
+ flowchart LR
77
+ Host[Host SDK configuration] -->|assigns adapter instance| Store[webex-core WebexStore]
78
+ Plugin[SDK plugin] -->|get / put / del| Store
79
+ Store -->|"bind(namespace, logger) once per namespace"| Adapter[StorageAdapterLocalForage]
80
+ Adapter -->|new binding| Binding[Bound]
81
+ Store -->|get / put / del / clear| Binding
82
+ Binding -->|getItem, setItem, removeItem, keys, clear| LF[localforage default instance]
83
+ LF -->|IndexedDB, WebSQL, or localStorage| Browser[(Browser storage)]
84
+ Logout[webex-core logout] -->|clear on every cached binding| Store
85
+ ```
86
+
87
+ | From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
88
+ | ---- | -- | ------------------------ | ------- | --------------------------------- |
89
+ | Host configuration | `@webex/webex-core` storage layer | Object assignment in SDK config | Select this adapter for a storage slot | Constructor arguments are ignored |
90
+ | `@webex/webex-core` storage layer | Adapter | In-process promise call `bind` | Create one binding per namespace | Rejects without namespace or logger |
91
+ | `@webex/webex-core` storage layer | Binding | In-process promise calls | Read, write, delete, clear | A missing key rejects with `NotFoundError`, which the storage layer treats as no data |
92
+ | Binding | `localforage` | Library calls returning promises | Persist records | Driver, quota, and transaction errors propagate unchanged; no retry |
93
+
94
+ ## Dependency topology
95
+
96
+ | Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
97
+ | ---------- | ---- | ------- | ------- | ------------------------------------ |
98
+ | `localforage` | External | `src/` | All persistence through the default instance | `^1.7.3` in `package.json`, resolving to 1.10.0; flagged stale by the workspace unmaintained-dependency catalog; no fallback when no driver exists |
99
+ | `@webex/common` | Internal (workspace) | `src/` | `oneFlight` decorator for `get` and `del` | `workspace:*`; documented by its own canonical spec (sibling package `packages/@webex/common`, file `src/docs/README.md`) |
100
+ | `@webex/webex-core` | Internal (workspace) | `src/` | `NotFoundError` type; also the runtime caller of the adapter | `workspace:*`; documented by its storage sub-module spec (sibling package `packages/@webex/webex-core`, file `src/lib/storage/docs/README.md`), cross-checked against its storage code because that spec is rated Partial |
101
+ | `@webex/storage-adapter-spec` | Internal (workspace) | Package test | Shared conformance suite | `workspace:*`; declared as a runtime dependency though only the test imports it. Its spec (sibling package `packages/@webex/storage-adapter-spec`, file `src/docs/README.md`) is rated Untracked, so its code is authoritative |
102
+
103
+ There are no cycles: this package depends on `@webex/common` and `@webex/webex-core`, and neither of
104
+ them imports it. The single point of failure is the browser storage engine behind `localforage`.
105
+
106
+ ## Public and consumer surfaces
107
+
108
+ This is the package contract index. Exact declarations stay in `src/index.js` and the entry points in
109
+ `package.json`. Per-surface behavior is in the module specification's
110
+ [Public surface](../src/docs/README.md#public-surface).
111
+
112
+ | Surface | Type | Owner | Consumers | Compatibility policy | Source |
113
+ | ------- | ---- | ----- | --------- | -------------------- | ------ |
114
+ | `local-forage-storage-adapter` | SDK (published) | `src/` | Host SDK configurations (in-repo: `@webex/recipe-private-web-client`) and external npm consumers | Default export and the binding shape are semver-public; constructor arguments carry no meaning | `package.json` |
115
+ | `local-forage-indexeddb-store` | File (published, on-device record layout) | `src/` | Later page loads and releases on the same origin | Frozen; see Repository data and schema | `src/index.js` |
116
+
117
+ Required external contracts, recorded in `.sdd/manifest.json` and owned elsewhere:
118
+ `storage-adapter-spec-suite` (`@webex/storage-adapter-spec`), `webex-common-js-api`
119
+ (`@webex/common`), `webex-core-storage-layer` (`@webex/webex-core`), and `localforage-api` (npm
120
+ `localforage`). The package publishes no HTTP surface, so there is no OpenAPI document.
121
+
122
+ <!-- Include if: the repository owns a datastore. [condition-id: repo.owns_datastore] -->
123
+
124
+ ## Repository data and schema
125
+
126
+ | Datastore or schema | Owning resource | Source of truth | Migration and compatibility rule |
127
+ | ------------------- | --------------- | --------------- | -------------------------------- |
128
+ | Browser default `localforage` database (`localforage` / `keyvaluepairs`) | `src/` | `src/index.js` | Unversioned key-value records with unbounded retention; no migration exists, so any change to the key composition, database, or store needs a data migration. Entity-level detail is in the module spec's [data section](../src/docs/README.md#data-schema-and-migration-discipline) |
129
+
130
+ <!-- Include if: the repository holds client-side or in-memory session state. [condition-id: repo.holds_client_state] -->
131
+
132
+ ## Client state model
133
+
134
+ | State or slice | Owner | Transition triggers | Persistence or reset boundary |
135
+ | -------------- | ----- | ------------------- | ----------------------------- |
136
+ | Per-binding namespace and logger | `src/` | `bind` | In memory for the binding's lifetime |
137
+ | In-flight `get`/`del` promises | `src/` through `@webex/common` `oneFlight` | Concurrent calls for one key | In memory until the promise settles |
138
+
139
+ Persisted plugin data is repository data, not client state; it is covered under Repository data and
140
+ schema.
141
+
142
+ ## Cross-cutting architecture
143
+
144
+ ### Security
145
+
146
+ - Trust boundaries and identity flow: see Security architecture.
147
+ - Sensitive surfaces and data classes: see Security architecture.
148
+ - Encryption and secret boundaries: see Security architecture.
149
+
150
+ ### Observability and operations
151
+
152
+ - Logging and correlation: through the host-injected SDK logger only; see Observability patterns.
153
+ - Metrics, traces, and audit signals: see Observability patterns.
154
+ - Ownership and operational entry points: `@webex/web-client` owns the package. There are no
155
+ dashboards, alerts, or runbooks, because the package runs inside host applications.
156
+
157
+ ### Quality attributes
158
+
159
+ - Footprint: one source file and one external runtime library (`localforage`).
160
+ - Compatibility: browser-only; record-layout compatibility is governed by Repository data and schema.
161
+ - Performance: roughly one storage transaction per operation; the read-miss cost is recorded in the
162
+ module spec's [Key design trade-off](../src/docs/README.md#key-design-trade-off).
163
+
164
+ <!-- Include if: the repository has logging, metrics, tracing, or audit conventions worth standardizing. [condition-id: repo.observability_convention] -->
165
+
166
+ ## Observability patterns
167
+
168
+ | Signal | Convention or required fields | Propagation or naming rule | Primary evidence |
169
+ | ------ | ----------------------------- | -------------------------- | ---------------- |
170
+ | Logs | Injected `options.logger` is mandatory; `bind` logs at info, every other operation at debug | Prefix `storage-adapter-local-forage:`; `get`, `put`, and `del` messages include the composed `${namespace}/${key}` unredacted; `clear` logs without a key | `src/index.js` |
171
+ | Metrics | None | N/A | `src/index.js` |
172
+ | Traces | None | N/A | `src/index.js` |
173
+ | Audit | None | N/A | `src/index.js` |
174
+
175
+ <!-- Include if: modules inherit a shared or base library stack. [condition-id: repo.shared_base_libs] -->
176
+
177
+ ## Shared and base libraries
178
+
179
+ | Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
180
+ | ------- | ------------------------ | --------- | ------------- | ------------------ |
181
+ | `@webex/babel-config-legacy` | Babel transforms, including decorators | `babel.config.js` | `workspace:*` | No package-local override |
182
+ | `@webex/eslint-config-legacy` | Lint rules | `.eslintrc.js` | `workspace:*` | Package adds only `root: true` |
183
+ | `@webex/jest-config-legacy` | Jest configuration (Node environment) | `jest.config.js` | `workspace:*` | No package-local override |
184
+ | `@webex/legacy-tools` | `webex-legacy-tools` build and test runner | `package.json` scripts | `workspace:*` | Build and test flags are set in `package.json` |
185
+
186
+ <!-- Include if: the repository publishes a package or consumer artifact. [condition-id: repo.published_package] -->
187
+
188
+ ## Release and versioning
189
+
190
+ | Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
191
+ | -------- | -------------- | --------------- | ------------------ | --------------------------------- |
192
+ | `@webex/storage-adapter-local-forage` (`dist/index.js` via `main`) | npm, through the `deploy:npm` script (Yarn's npm publish) | Released with the workspace-wide version set by the monorepo release workflow | None defined in this package | Changelog generation is owned at the workspace root |
193
+
194
+ <!-- Include if: the repository is embedded in a host application. [condition-id: repo.embedded_in_host] -->
195
+
196
+ ## Host integration and theming
197
+
198
+ | Host or integration | Mount or entry contract | Required providers or peers | Theming and accessibility constraints |
199
+ | ------------------- | ----------------------- | --------------------------- | ------------------------------------- |
200
+ | Webex JS SDK in a browser application (in-repo: `@webex/recipe-private-web-client` as `storage.unboundedAdapter`) | `config.storage.boundedAdapter` or `unboundedAdapter` set to an adapter instance; the storage layer calls `bind(namespace, {logger})` | `@webex/webex-core` storage layer and a browser storage engine reachable by `localforage` | N/A; no UI |
201
+
202
+ <!-- Include if: the repository exposes commands, generators, or stable file outputs. [condition-id: repo.exposes_commands_or_artifacts] -->
203
+
204
+ ## Commands and generated artifacts
205
+
206
+ | Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
207
+ | ------------------- | ----- | ------ | --------------------- | ---------------------- |
208
+ | `build` (runs the `build:src` script) | Package | `src/` | `dist/index.js` and source maps through `webex-legacy-tools build` | `dist/index.js` is the published `main` entry |
209
+ | `deploy:npm` | Package | Built `dist/` and `package.json` | Publishes the package to npm | Run by the workspace release workflow |
210
+ | `test:style` | Package | `./src/**/*.*` | ESLint report | Markdown under `src/` matches the glob but is ignored by the shared ESLint configuration |
211
+ | `test:browser` | Package | `test/unit` | Karma run (unit scope); CI's `Test - Browser` job runs it for every changed workspace | Not the canonical unit-test command; the shared suite cannot load under Mocha, so that CI run is expected to fail at load (derived from code, not measured) |
212
+
213
+ <!-- Include if: trust boundaries or identity flows warrant a dedicated architectural view. [condition-id: repo.security_arch_warranted] -->
214
+
215
+ ## Security architecture
216
+
217
+ The package sits entirely inside one browser origin. Values cross from SDK plugins through the
218
+ storage layer into the adapter and are written, unencrypted, to the origin's default `localforage`
219
+ database. Nothing in the path authenticates callers, encrypts values, or limits which same-origin
220
+ code can read the database.
221
+
222
+ ```mermaid
223
+ flowchart LR
224
+ Encryption[Encryption plugin: serialized KMS keys] -->|put via unbounded storage| Store[webex-core storage layer]
225
+ OtherPlugins[Other SDK plugins] -->|put / get| Store
226
+ Store -->|namespace/key, plaintext value| Adapter[storage-adapter-local-forage]
227
+ Adapter -->|plaintext record| DB[(Origin default localforage database)]
228
+ SameOrigin[Any same-origin script] -.->|can read and clear| DB
229
+ Logout[Logout: bounded and unbounded storage] -->|clear per cached binding| Adapter
230
+ Adapter -->|clears the whole default store| DB
231
+ ```
232
+
233
+ - At rest: records persist until deleted. If the host's unbounded slot uses this adapter, the
234
+ encryption plugin's cached KMS keys are among them.
235
+ - Erasure: logout clears both SDK storages, and each erases the database only through bindings it
236
+ cached in that session. When it does, it also erases any other data written through the default
237
+ `localforage` instance.
238
+ - Exposure in logs: composed keys appear in debug logs (for example, key URIs).
239
+ - Policy: no security policy file exists in this package or at the workspace root. Reporting and
240
+ remediation stay with the owning team.
241
+
242
+ ## Domain language
243
+
244
+ | Term | Repository-specific meaning | Authoritative source |
245
+ | ---- | --------------------------- | -------------------- |
246
+ | Adapter | A `StorageAdapterLocalForage` instance assigned to an SDK storage slot | `src/index.js` |
247
+ | Binding | The object `bind(namespace, options)` resolves, exposing `get`, `put`, `del`, and `clear` for one namespace | `src/index.js` |
248
+ | Namespace | The SDK plugin's storage namespace; the first segment of every stored key | `src/index.js` |
249
+ | Composed key | `${namespace}/${key}`, the record key actually stored in `localforage` | `src/index.js` |
250
+ | Bounded and unbounded storage | The SDK's two storage slots; the in-repo host uses this adapter for the unbounded slot | `.sdd/manifest.json` (contract webex-core-storage-layer, external to this package and specified by the webex-core storage sub-module spec) |
251
+ | Stored null | A record whose value is `null`; `get` resolves it, unlike a missing key, which rejects | `src/index.js` |
252
+
253
+ ## References and maintenance
254
+
255
+ - Maintainers: `README.md` states that the package is maintained by
256
+ [Cisco Webex for Developers](https://developer.webex.com/). Code ownership in the workspace
257
+ CODEOWNERS file is `@webex/web-client`, the owner used throughout this documentation.
258
+ - Decisions: [adr/](adr/index.md)
259
+ - Instantiated specifications and routing: [specs/README.md](specs/README.md)
260
+ - Module specification: [src/docs/README.md](../src/docs/README.md)
261
+ - Update this document in the same change that alters the package boundary, its dependencies, the
262
+ record layout, the host contract, or the security posture.
@@ -0,0 +1,115 @@
1
+ ---
2
+ type: Getting Started
3
+ title: Getting started
4
+ description: Local setup, build, run, and test routing for @webex/storage-adapter-local-forage.
5
+ tags: [onboarding]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: getting-started@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rsarika@cisco.com
12
+ updated_at: 2026-11-10T00:00:00Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Getting started
17
+
18
+ Onboarding for **@webex/storage-adapter-local-forage**, a package inside the Webex JS SDK yarn
19
+ workspace. Run every command below from the workspace root.
20
+
21
+ ## Prerequisites
22
+
23
+ | Tool or access | Version or requirement |
24
+ | -------------------------------------- | ---------------------- |
25
+ | Node.js | `>=18` per `engines` in `package.json`; the workspace's contributor instructions use Node 22.14 through nvm |
26
+ | Yarn | `yarn@3.4.1`, pinned by `packageManager` in the workspace-root `package.json` (the package scripts call `yarn`) |
27
+ | Browser | Needed to exercise the adapter at all; it has no Node storage driver |
28
+ | Container, registry, VPN, or account | N/A; dependencies resolve from the public npm registry configured at the workspace root |
29
+
30
+ ## Install
31
+
32
+ Install from the workspace root:
33
+
34
+ ```bash
35
+ yarn
36
+ ```
37
+
38
+ A host application that consumes the published package installs it from npm instead, as
39
+ `README.md` documents.
40
+
41
+ ## Build
42
+
43
+ ```bash
44
+ yarn workspace @webex/storage-adapter-local-forage build
45
+ ```
46
+
47
+ `build` runs `build:src`, which transpiles `src/` into `dist/` with source maps. `dist/index.js` is
48
+ the published `main` entry point.
49
+
50
+ ## Run
51
+
52
+ ```bash
53
+ yarn workspace @webex/storage-adapter-local-forage test:style
54
+ ```
55
+
56
+ The package is a library with no runnable entry point. The closest "run" check is linting the source
57
+ with the command above. The adapter executes only inside a browser application that assigns it to a
58
+ Webex SDK storage slot.
59
+
60
+ ## Tests
61
+
62
+ ```bash
63
+ yarn workspace @webex/storage-adapter-local-forage test:browser
64
+ ```
65
+
66
+ This package has no canonical unit-test command. `package.json` defines no `test:unit` script, and
67
+ the owner confirmed on 2026-10-06 that none is canonical. The command above is the only committed
68
+ test runner, but it is not a working tier: it runs Karma with Mocha, and the shared conformance suite
69
+ it loads calls the Jest-only `beforeAll`, which Mocha does not define, so the run is expected to fail
70
+ while loading the suite. CI's `Test - Browser` job runs this command in every changed workspace, so a
71
+ change to this package triggers that run. That result is derived from code and has not been measured.
72
+ Do not run the aggregate `test` script; it chains `test:unit` and `test:integration`, neither of which
73
+ exists in this package.
74
+
75
+ | Tier | Command | Test location | Framework | External dependencies |
76
+ | ------------ | -------------------- | ------------- | ----------- | ----------------------------------- |
77
+ | Unit | None canonical; `yarn workspace @webex/storage-adapter-local-forage test:browser` is the only committed runner and does not execute the suite | `test/unit/spec/storage-adapter-local-forage.js` | Karma with Mocha (suite written for Jest globals) | Chrome and Firefox launched by Karma |
78
+
79
+ - Coverage or quality gate: N/A. The owner confirmed on 2026-10-06 that no coverage gate applies.
80
+ - Enforcement source: none. `package.json` defines no `test:coverage` script, and the shared Jest
81
+ configuration disables coverage collection.
82
+ - Test environment or QA dependencies: none. Behavioral intent lives in the module specification's
83
+ `Verification` section.
84
+
85
+ ## Configuration and secrets
86
+
87
+ - Required configuration: none in the package. Hosts select the adapter through their Webex SDK
88
+ storage configuration.
89
+ - Secret source: none; the package reads no secrets.
90
+ - Package or artifact access: public npm registry, configured at the workspace root.
91
+ - Required neighboring repositories or workspace layout: the Webex JS SDK workspace, because the
92
+ package depends on `@webex/common`, `@webex/webex-core`, `@webex/storage-adapter-spec`, and the
93
+ legacy build packages through `workspace:*` ranges.
94
+ - Platform, simulator, device, or SDK setup: a browser with IndexedDB, WebSQL, or `localStorage`.
95
+ - Never commit credentials or copy production secrets into a local config.
96
+
97
+ ## First-run verification
98
+
99
+ 1. Run `yarn workspace @webex/storage-adapter-local-forage build`.
100
+ 2. Check that `dist/index.js` exists in the package directory.
101
+ 3. Run `yarn workspace @webex/storage-adapter-local-forage test:style`.
102
+
103
+ Expected result: the build writes `dist/index.js` with a source map, and ESLint exits 0 for `src/`.
104
+
105
+ ## Next steps
106
+
107
+ - This is a part of the Cisco Webex JS SDK. For SDK-level usage, see the
108
+ [developer portal](https://developer.webex.com/) and the
109
+ [API docs](https://webex.github.io/webex-js-sdk/api/), as `README.md` points out.
110
+ - Pull requests are welcome. Contribution guidelines are in `CONTRIBUTING.md` at the Webex JS SDK
111
+ workspace root, not in this package.
112
+ - [Repository architecture](architecture.md)
113
+ - [Specification registry](specs/README.md)
114
+ - [Documentation index](index.md)
115
+ - [Module specification](../src/docs/README.md)
package/docs/index.md ADDED
@@ -0,0 +1,59 @@
1
+ ---
2
+ okf_version: '0.1'
3
+ ---
4
+ <!-- sdd-generated-metadata
5
+ doc_kind: standing-doc
6
+ generated_from: docs-index@0.3.0
7
+ generated_by: claude-code
8
+ approved_by: rsarika@cisco.com
9
+ updated_at: 2026-11-10T00:00:00Z
10
+ validation_status: pass-with-warnings
11
+ -->
12
+
13
+ # @webex/storage-adapter-local-forage documentation
14
+
15
+ Doc map for developers and agents working on the Local Forage adapter for the Cisco Webex JS SDK: a
16
+ browser storage adapter that persists Webex JS SDK data through `localforage`, which uses IndexedDB
17
+ first and falls back to WebSQL, then `localStorage`.
18
+
19
+ ## Start here
20
+
21
+ - [Getting started](getting-started.md) — prerequisites, build, lint, and the current state of the
22
+ tests
23
+ - [Repository architecture](architecture.md) — what the package publishes, where its data lives, and
24
+ its host, release, and security boundaries
25
+
26
+ There is no service specification and no API specification for this package. It is a published
27
+ library with no deployable runtime and no HTTP surface, and both omissions are recorded in
28
+ `.sdd/manifest.json` under `layout.artifact_decisions`.
29
+
30
+ ## Decisions
31
+
32
+ - [adr/](adr/index.md) — architectural decision records. None are registered yet; the design
33
+ choices behind the current behavior are recorded in the module specification's
34
+ `Key design trade-off` section.
35
+
36
+ ## Specifications and contracts
37
+
38
+ - [architecture.md](architecture.md) — canonical package-wide architecture and the contract index
39
+ - [specs/README.md](specs/README.md) — module and specification registry
40
+ - [`src/docs/README.md`](../src/docs/README.md) — the owning specification beside the module's code:
41
+ public surface, requirements, data layout, failure modes, hazards, and verification gaps
42
+ - [adr/](adr/index.md) — concrete architectural decisions; the blank ADR template stays in the
43
+ monorepo-root template snapshot, which this package refers to and does not copy
44
+
45
+ The package publishes two contracts. `local-forage-storage-adapter` is the npm package surface; its
46
+ native source is the entry point declared by `main` and `devMain` in [`package.json`](../package.json),
47
+ with the exact declarations in [`src/index.js`](../src/index.js). `local-forage-indexeddb-store` is the
48
+ on-device record layout defined in the same file. The architecture page indexes both contracts and
49
+ the module specification details them; neither copies the declarations into Markdown.
50
+
51
+ ## Related repository resources
52
+
53
+ - [`README.md`](../README.md) — the package's npm-facing readme (install and pointer to the SDK
54
+ documentation)
55
+ - Contribution guidelines, changelog generation, and the release pipeline are owned at the Webex JS
56
+ SDK workspace root, not in this package
57
+ - The monorepo-root routing manifest (`../../../.sdd/manifest.json`, reached through
58
+ `layout.monorepo_package.root_manifest_path` in `.sdd/manifest.json`) lists this package with the
59
+ other onboarded packages
@@ -0,0 +1,85 @@
1
+ ---
2
+ type: Reference
3
+ title: Specification registry
4
+ description: Canonical specification registry and change-routing guide.
5
+ tags: [specifications, registry]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: spec-index@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rsarika@cisco.com
12
+ updated_at: 2026-11-10T00:00:00Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Specification registry
17
+
18
+ Use this page to find the canonical architecture for `@webex/storage-adapter-local-forage` and every
19
+ instantiated module specification plus native contract. Technical facts stay in one owning document;
20
+ this page covers navigation, ownership, status, and change and test routing only.
21
+
22
+ Start with the [repository architecture](../architecture.md). There is no service specification,
23
+ because the package is a published library rather than a deployable service.
24
+
25
+ ## Document roles
26
+
27
+ | Document | Canonical ownership |
28
+ | --------------------------------------------- | ------------------- |
29
+ | [Repository architecture](../architecture.md) | Package boundaries, resource inventory, interactions, dependency topology, data, security, and other cross-cutting architecture |
30
+ | Service specification | N/A, not generated; the package has no deployable runtime or operating contract |
31
+ | Module specifications | Stable behavior and design at each module's `docs/README.md`, routed by `.sdd/manifest.json` |
32
+ | [ADR](../adr/index.md) | A durable decision, its deciders, rationale, consequences, and supersession lineage; none are registered yet |
33
+
34
+ ## Instantiated specification registry
35
+
36
+ | Resource | Role | Canonical path | Owner | Status | Last verified |
37
+ | -------- | ---- | -------------- | ----- | ------ | ------------- |
38
+ | `@webex/storage-adapter-local-forage` | Architecture | `docs/architecture.md` | `@webex/web-client` | Active | 2026-11-09 |
39
+ | `src/` | Module | `src/docs/README.md` | `@webex/web-client` | Active | 2026-11-09 |
40
+ | `local-forage-storage-adapter` | Contract | `package.json` | `@webex/web-client` | Active | 2026-11-09 |
41
+ | `local-forage-indexeddb-store` | Contract | `src/index.js` | `@webex/web-client` | Active | 2026-11-09 |
42
+
43
+ ### Module registry
44
+
45
+ One row per module in `.sdd/manifest.json`, which stays authoritative; this table is its
46
+ human-readable mirror and the reconciliation surface for `check_spec_index.py`.
47
+
48
+ | Module | Responsibility | Manifest coverage state | Start here |
49
+ | --- | --- | --- | --- |
50
+ | `src/` | `StorageAdapterLocalForage`: namespaced Webex storage-adapter bindings persisted in the browser's default `localforage` (IndexedDB) database | Partial | `src/docs/README.md` |
51
+
52
+ Generator-side field measurement for `src/` is complete: 93% (13 of 14 mandatory fields) assessed
53
+ 2026-11-09, with critical fields at 7 of 7. The score and its evidence summary are recorded in the
54
+ module specification's `Coverage score` metadata row.
55
+
56
+ `src/` was promoted from `Untracked` to `Partial` on 2026-11-09 with owner approval: the field score
57
+ is above the 40% threshold and the generator-side review found no spec/code drift. The one weak field
58
+ is test and characterization coverage: no automated test executes the module and no characterization
59
+ baseline exists, which keeps promotion to `Specced` closed. Independent validation of this refresh is
60
+ still pending.
61
+
62
+ ## Change and verification routing
63
+
64
+ | Change affects | Load and update | Verification route |
65
+ | -------------- | --------------- | ------------------ |
66
+ | Package boundaries, dependencies, data location, host contract, release, or security posture | `docs/architecture.md`, plus a new ADR under `docs/adr/` when the decision is durable | `yarn workspace @webex/storage-adapter-local-forage build` and the affected module spec |
67
+ | Adapter behavior: `bind`, `get`, `put`, `del`, `clear`, logging, or concurrency | `src/docs/README.md`: `Requirements`, `Caller-visible failure modes`, `Concurrency and reactive flow`, `Verification` | `yarn workspace @webex/storage-adapter-local-forage test:style`; there is no executing unit tier yet (see the module's `Verification`) |
68
+ | The stored record layout, database, or store name | `src/docs/README.md` `Data, schema, and migration discipline` and `Export stability`, plus `docs/architecture.md` `Repository data and schema` | A data migration plan and a review by `@webex/web-client` |
69
+ | The exported surface | `src/docs/README.md` `Public surface` and `Export stability`, plus the architecture contract index | `yarn workspace @webex/storage-adapter-local-forage build` and every dependent host configuration |
70
+ | Build, lint, or test configuration | `docs/getting-started.md` and the architecture `Shared and base libraries` section | `yarn workspace @webex/storage-adapter-local-forage test:style` and `build` |
71
+
72
+ ## Module and contract registration
73
+
74
+ The module specification is generated at the exact `modules[].canonical_spec` path recorded in
75
+ `.sdd/manifest.json`, which is `src/docs/README.md`. Every module and submodule is registered in the
76
+ Module registry above in manifest tree order; `src/` has no submodules.
77
+
78
+ The package provides two published contracts. `local-forage-storage-adapter` is an SDK/package
79
+ surface whose native source is the entry point declared in `package.json`, with exact declarations in
80
+ `src/index.js`. `local-forage-indexeddb-store` is the on-device record layout defined in
81
+ `src/index.js`. Published package surfaces keep their ecosystem-native source and do not need
82
+ OpenAPI, and the package serves no HTTP routes, so `api-specs/openapi.yaml` is omitted. The module
83
+ also requires four external contracts owned elsewhere: `storage-adapter-spec-suite`,
84
+ `webex-common-js-api`, `webex-core-storage-layer`, and `localforage-api`. This page provides
85
+ navigation and ownership rather than a copied contract.
package/package.json CHANGED
@@ -25,17 +25,17 @@
25
25
  "@webex/eslint-config-legacy": "0.0.0",
26
26
  "@webex/jest-config-legacy": "0.0.0",
27
27
  "@webex/legacy-tools": "0.0.0",
28
- "@webex/test-helper-chai": "3.13.0-next.1",
29
- "@webex/test-helper-mocha": "3.13.0-next.1",
30
- "@webex/test-helper-mock-webex": "3.13.0-next.1",
31
- "@webex/test-helper-test-users": "3.13.0-next.1",
28
+ "@webex/test-helper-chai": "3.13.0-next.3",
29
+ "@webex/test-helper-mocha": "3.13.0-next.3",
30
+ "@webex/test-helper-mock-webex": "3.13.0-next.3",
31
+ "@webex/test-helper-test-users": "3.13.0-next.3",
32
32
  "eslint": "^8.24.0",
33
33
  "prettier": "^2.7.1"
34
34
  },
35
35
  "dependencies": {
36
- "@webex/common": "3.13.0-next.1",
37
- "@webex/storage-adapter-spec": "3.13.0-next.1",
38
- "@webex/webex-core": "3.13.0-next.5",
36
+ "@webex/common": "3.13.0-next.3",
37
+ "@webex/storage-adapter-spec": "3.13.0-next.3",
38
+ "@webex/webex-core": "3.13.0-next.7",
39
39
  "localforage": "^1.7.3"
40
40
  },
41
41
  "scripts": {
@@ -46,5 +46,5 @@
46
46
  "test:browser": "webex-legacy-tools test --unit --runner karma",
47
47
  "test:style": "eslint ./src/**/*.*"
48
48
  },
49
- "version": "3.13.0-next.5"
49
+ "version": "3.13.0-next.7"
50
50
  }