Get to know MDN better
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
The SharedStorageRunOperation interface of the Shared Storage API represents a Run output gate operation.
Defines the structure to which the run() method defined inside a Run output gate operation should conform.
In this example, a class called ReachMeasurementOperation is defined in a worklet and is registered using SharedStorageWorkletGlobalScope.register() with the name reach-measurement. SharedStorageRunOperation defines the structure to which this class must conform, essentially defining the parameters required for the run() method. Other than this requirement, the functionality of the class can be defined flexibly.
Note: It is possible to define and register multiple operations in the same shared storage worklet module script with different names. See SharedStorageOperation for an example.
In the main browsing context, the reach-measurement operation is invoked using the WindowSharedStorage.run() method:
For more details about this example, see Unique reach measurement. See Shared Storage API for more examples.
Enable JavaScript to view this browser compatibility table.
This page was last modified on Dec 15, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.