Skip to content
1 min read · 96 words

@nhtio/adk/batteries/storage

Environment-neutral aggregate barrel for bundled storage batteries.

Remarks

Aggregate barrel for the storage batteries. Re-exports only environment-neutral storage helpers — currently just the in-memory battery — so that consumers can import this barrel from either Node or the browser without dragging in environment-specific runtime requirements.

Environment-specific batteries are reachable only through their own subpath:

  • @nhtio/adk/batteries/storage/flydrive — Node-only (uses node:stream).
  • @nhtio/adk/batteries/storage/opfs — browser-only (uses the OPFS API).

Deep-import the subpath you need; don't expect either to be re-exported from this barrel.

References

InMemorySpoolReader

Re-exports InMemorySpoolReader


InMemorySpoolStore

Re-exports InMemorySpoolStore