MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / getStorage

Function getStorage

webapp/_webapp/src/libs/storage.ts:26–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 * Get the global storage instance (singleton)
25 */
26export function getStorage(): StorageAdapter {
27 if (!_storageInstance) {
28 _storageInstance = createStorageAdapter();
29 }
30 return _storageInstance;
31}
32
33/**
34 * Default export: the global storage instance

Callers 2

getFunction · 0.70
constructorMethod · 0.70

Calls 1

createStorageAdapterFunction · 0.90

Tested by

no test coverage detected