MCPcopy
hub / github.com/streamlit/streamlit / StreamlitWindowConfig

Interface StreamlitWindowConfig

frontend/utils/src/config/index.ts:142–160  ·  view source on GitHub ↗

* Configuration object that can be set on window.__streamlit by the host * before the Streamlit bundle loads. These values are captured and frozen * at module initialization time for security.

Source from the content-addressed store, hash-verified

140 * at module initialization time for security.
141 */
142interface StreamlitWindowConfig {
143 // URL pointing to where the Streamlit server is running.
144 BACKEND_BASE_URL?: string
145 // URL pointing to where the _stcore/host-config endpoint is being served.
146 HOST_CONFIG_BASE_URL?: string
147 // URL pointing to where the /media assets are being served from for download only.
148 DOWNLOAD_ASSETS_BASE_URL?: string
149 // URL pointing to the main page of this Streamlit app.
150 MAIN_PAGE_BASE_URL?: string
151 // Service Worker clientId for custom components in embedded contexts.
152 CUSTOM_COMPONENT_CLIENT_ID?: string
153 // Theme related settings.
154 LIGHT_THEME?: ICustomThemeConfig
155 DARK_THEME?: ICustomThemeConfig
156 // Other options.
157 ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION?: boolean
158 // Host configuration (including enabling bypass mode for fast-path websocket connection).
159 HOST_CONFIG?: HostWindowConfig
160}
161
162// Extend Window interface for TypeScript
163declare global {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…