FunnableConfig
Runtime config injected by the Funnable shell as `window.__FUNNABLE__`. Only advanced developers need to provide overrides manually.
FunnableConfig
Runtime config injected by the Funnable shell as window.__FUNNABLE__.
Only advanced developers need to provide overrides manually.
Examples
const sandbox = Funnable.init({
gameId: "local-dev",
developer: "Arcade Forge",
apiBase: "http://localhost:8787",
wsBase: "ws://localhost:8787",
});Properties
gameId
gameId: stringUnique id for the game assigned by the Funnable platform.
isEmbed
isEmbed: booleanTrue when the game is running inside the hosted iframe embed.
campaignId?
campaignId?: string | undefinedOptional marketing campaign identifier (utm-style).
refId?
refId?: string | undefinedOptional referral identifier for creator programs.
developer
developer: stringDisplay name for the studio/developer.
branding
branding: GameBranding | nullBranding hints (custom colors, etc.) supplied by the host shell.
adConfig
adConfig: AdConfig | nullMonetization hints for rendering rewarded placements.
apiBase
apiBase: stringBase REST URL used for ranking/lobby/analytics calls.
wsBase
wsBase: stringBase WebSocket URL used for chat and live updates.