10LOC

#deprecated

Chrome APIsadvanced

Shared Storage: privacy-preserving experiments, now being retired

type SharedStorage = {
  worklet: { addModule: (url: string) => Promise<void> };
  set: (key: string, value: string, options?: { ignoreIfPresent?: boolean }) => Promise<void>;
  run: (operation: string, options?: { data?: Record<string, unknown> }) => Promise<void>;
};

How the Shared Storage API worked for cross-site experiments without third-party cookies — and why Chrome is deprecating and removing it.