# "Proxy & Isolation" _Path: en/frontend/web-host/proxy-isolation_ > "How page applications and web components receive configuration and communicate with the Web Host through the Proxy API." ## Table of Contents - Proxy & Isolation ## Content # Proxy & Isolation This page is an API and internal-transport reference. Its snippets assume an existing hosted page or component; they are partial integrations rather than a complete application. The Web Host connects page applications and web components to host services through the **Proxy API**. A packaged page runs in either a sandboxed `srcdoc` iframe or a Web Fragment realm, according to `hostConfig.renderEngine`. A web component runs in the host page's DOM. All three contexts import the API from **`@wippy-fe/proxy`**. ![Proxy API injection and nesting](../diagrams/proxy-layers.svg) ## The Proxy API The Proxy API is your entry point to the host. An engine-specific runtime puts the API and current child configuration in the page context and exposes them through **`@wippy-fe/proxy`**. - For a `view.page` using the **iframe engine**, the host injects `proxy.js` into the page's `srcdoc`. - For a `view.page` using the **Web Fragment engine**, the fragment gateway loads `proxy-fragment.js` in the reframed realm. - For a **web component** (`view.component`), the runtime is already present in the host page — the component mounts in the host DOM, not a separate iframe. Your code consumes it through the sync getters exported by `@wippy-fe/proxy`: ```ts import { host, api, on, config } from '@wippy-fe/proxy' host.navigate('/dashboard') const data = await api.get('/api/v1/agents') // api is an axios instance; the await is the HTTP call on('@visibility', (visible) => { /* pause or resume work */ }) ``` Portable Vue routing is the exception: `@wippy-fe/router` consumes `@history` and reports local navigation for you. Do not add manual routing subscriptions around it. These getters are **synchronous** once application code runs: `host`, `api`, `on`, `config`, and the rest need no application-managed handshake. The iframe engine starts from pre-injected config; the fragment runtime resolves its config with the host before building the API. Mark `@wippy-fe/proxy` as `external` in your Vite build — the host provides it through the import map. See [Proxy API](../micro-frontends/proxy-api.md) for the full surface. ### Iframe engine When the host loads a `view.page`, it builds a `srcdoc` and injects, **in order, before your app's script**: ```html ``` Because the config global is set **before** `proxy.js` runs, the runtime initializes synchronously and the `@wippy-fe/proxy` getters work immediately — no handshake. Pages don't reference these scripts directly; the `