overlayed function:
electron
The electron instance to use for the overlay. Note this should be globally imported from the electron package.-
Type
-
Example
applicationId
The id of the application, this can be found in the Overlayed Dashboard-
Type
-
Example
modules
The modules to load.-
Type
-
Details
Modules allow you to subscribe to a specific game, including:
- Game Events
- Overlay Events like when the game launches
-
Example
keybinds
The app’s keybinds-
Type
-
Details
Keybinds require the array of
KeyboardEvent#code and the mode of the
keybind.
- “Hold” will trigger the callback when the keybind is held down.
- “Toggle” will trigger the callback when the keybind is toggled on and off.
-
Example
init
-
Type
-
Default:
true - Details Whether to initialize the overlay right when the function is called. Read more here.
-
Example
universal
-
Type
-
Default:
false -
Details
When true, the overlay will be loaded and attempt to render inside of all supported games. When false, only games
registered under the
modulesarray will be loaded. Read more here. -
Example
debug
-
Type
-
Default:
false -
Details
When enabled:
- logger.debug() logs will be printed and saved to the log file
-
Example
analytics
Analytics configuration.-
Type
-
Default:
{ webVitals: true, crashes: true } -
Details
webVitals: when true, windows created viaoverlay.windowsreport Core Web Vitals (LCP, INP, FCP, TTFB, CLS) as aweb_vitalsevent once per page load. The window’s preload script must import@overlayed/app/preload. When false, the preload doesn’t collect any metrics and the main process doesn’t listen for them. Read more here.crashes: when true, app crashes are reported to Overlayed. When false, crash reporting is turned off. Read more here. -
Example
featureFlags
A record of feature flag names to their default values. Keys provide typed access to remotely managed flags, values are used as defaults before the API responds or when a flag is missing.-
Type
-
Default:
undefined -
Details
Registered flag names enable type-safe access via
overlay.featureFlags.get(flagName)andoverlay.featureFlags.on(flagName, cb). Warnings are logged if a registered flag is not found in the API response. ThefeatureFlagsmodule also exposes areadypromise that resolves once the initial fetch completes. Read more here. -
Example
navigationGuard
Configuration for the navigation guard applied to every window created viaoverlay.windows.
-
Type
-
Default:
undefined -
Details
By default, top-frame navigation is restricted to your application’s own origin and the origin currently loaded in
the window, and
window.opento any other web URL opens in the system browser, but only right after a click or key press in the window.allowedHostsadds additional hosts the main frame may navigate to (e.g. an OAuth provider).windowOpenHandleroverrides thewindow.openpolicy per-URL; returnundefinedto fall back to the default policy. See Navigation Guard for the full policy and examples. -
Example
site
-
Type
-
Default:
{ manualUpdates: false } -
Details
Configuration for site (frontend) updates.
When
manualUpdatesistrue, your site will not automatically update when a new version is deployed. Instead, you can listen for thesiteUpdateReadyevent onoverlayed.updater.siteand prompt users to update. See Site Updates for more information. -
Example

