@leracherry/tracelens-storage-memory
v1.0.0
Published
TraceLens storage-memory: frontend performance debugging
Maintainers
Readme
@leracherry/tracelens-storage-memory
In-memory storage for TraceLens v1.0.0.
Installation
Install from npm using the command below, or see GitHub Packages authentication. Both registries use the same package names. Keep all TraceLens packages on matching versions.
npm install @leracherry/[email protected]Usage
import { MemoryStorage } from '@leracherry/tracelens-storage-memory';
const storage = new MemoryStorage();
await storage.append(events);
const interactions = await storage.query({ type: 'interaction', limit: 100 });Implements the core StorageAdapter interface. Data lasts only for this instance; clear() removes it. This adapter has no automatic size cap. Pass validated, sanitized TraceLens events to append().
See the guide and release notes. Licensed MIT.
