# CefSwift > Build your own Chromium browser for the Mac in Swift, or embed Chromium in any Mac app, on the official prebuilt CEF. ## Start - [CefSwift](https://rajaniraiyn.dev/CefSwift): Build a Chromium browser, or embed Chromium, in a Mac app written in Swift and SwiftUI, on the official prebuilt CEF. - [Install](https://rajaniraiyn.dev/CefSwift/start/install): Add CefSwift to a SwiftPM package (Command Line Tools only) or an Xcode project and bundle your first app. - [Your first browser in 10 minutes](https://rajaniraiyn.dev/CefSwift/start/first-browser): From an empty folder to a tabbed Chromium browser with your own SwiftUI tab strip and address field. - [Choosing a host](https://rajaniraiyn.dev/CefSwift/start/choosing-a-host): CefWebView, the AppKit views, CefWindow, CefChromeWindow or Chrome's own window: which host shows your pages, and what each gives you. - [Build with an agent](https://rajaniraiyn.dev/CefSwift/start/agents): Install the CefSwift skills, point an agent at AGENTS.md and llms.txt, and build a browser from one prompt. ## Build a browser - [Tabs and the tab strip](https://rajaniraiyn.dev/CefSwift/browser/tabs): Chromium's own tabbed windows, tabs and groups under a tab strip you draw in SwiftUI. - [Address bar and suggestions](https://rajaniraiyn.dev/CefSwift/browser/address-bar): Chrome's ranked address-bar suggestions for your own field, and the connection security the field shows. - [Bookmarks and history](https://rajaniraiyn.dev/CefSwift/browser/bookmarks-history): Chromium's own bookmark, history and top-sites stores, read and changed from Swift. - [Extensions](https://rajaniraiyn.dev/CefSwift/browser/extensions): Chrome's extension system: the Web Store, the profile's extensions, extensions the app ships, and their toolbar actions. - [Downloads](https://rajaniraiyn.dev/CefSwift/browser/downloads): Where downloads go, deciding per download, and the observable download list; file choosers. - [Find bar and Chromium's bubbles](https://rajaniraiyn.dev/CefSwift/browser/find-bar): Replace Chromium's find bar, status bubble, QR code and other bubbles with SwiftUI, or anchor them under your controls. - [Popups and permission UI](https://rajaniraiyn.dev/CefSwift/browser/popups-and-permissions): Answer permission requests, dialogs, sign-in and certificate questions with your own UI; handle new windows and popups. - [Profiles and private windows](https://rajaniraiyn.dev/CefSwift/browser/profiles): Default, persistent and incognito profiles: what each keeps, how they load, and private windows. - [Passkeys](https://rajaniraiyn.dev/CefSwift/browser/passkeys): WebAuthn answered by Chromium, by your app from its own store, or refused. - [Streaming and DRM](https://rajaniraiyn.dev/CefSwift/browser/streaming-and-drm): Widevine in Chromium, FairPlay in WebKit tabs beside it, and which streaming services play where. - [Tab discarding and sessions](https://rajaniraiyn.dev/CefSwift/browser/discarding-and-sessions): Put background tabs to sleep, follow page lifecycle and energy, and restore windows after a quit or a crash. - [Customizing chrome:// pages](https://rajaniraiyn.dev/CefSwift/browser/chrome-pages): Rename, restyle and replace Chromium's internal pages such as chrome://settings. ## Embed Chromium - [CefWebView and AppKit hosts](https://rajaniraiyn.dev/CefSwift/embed/webview): Show a page in SwiftUI or AppKit: the observable CefPage, loads, PDF, attachments, focus, tooltips and the context menu. - [Offscreen rendering and overlays](https://rajaniraiyn.dev/CefSwift/embed/offscreen): Pages drawn into your own layer, so SwiftUI content, effects and transforms go over and around them. - [The JavaScript bridge](https://rajaniraiyn.dev/CefSwift/embed/javascript): Evaluate scripts, call typed Swift functions from the page, send events back, and add user scripts and style sheets. - [Custom schemes and protocols](https://rajaniraiyn.dev/CefSwift/embed/custom-schemes): Serve your app's own content from a scheme of your own, from files or generated, streamed or large. - [Request filtering and the network](https://rajaniraiyn.dev/CefSwift/embed/request-filtering): Block, redirect and rewrite requests on Chromium's IO thread, make requests through Chromium's network stack, and clear data. - [DevTools and automation](https://rajaniraiyn.dev/CefSwift/embed/devtools-and-automation): Input events for any page, the DevTools window, the DevTools Protocol in-process, and what a page can tell about CefSwift. - [Animation](https://rajaniraiyn.dev/CefSwift/embed/animation): Pages under SwiftUI springs, transforms, matched geometry and transitions, in both renderings. - [Swipe navigation](https://rajaniraiyn.dev/CefSwift/embed/swipe-navigation): Two-finger swipes back and forward, your own indicator, and the back/forward list. - [Accessibility](https://rajaniraiyn.dev/CefSwift/embed/accessibility): VoiceOver, Voice Control and UI tests reading offscreen pages as they read windowed ones. ## How it works - [Process model and helpers](https://rajaniraiyn.dev/CefSwift/internals/process-model): Chromium's processes, the five helper apps, loading the framework, unresponsive pages, quitting and relaunching. - [Multi-process sandboxing](https://rajaniraiyn.dev/CefSwift/internals/sandboxing): Chromium's macOS sandbox for the helper processes: how it is sealed, what it needs, and running without it. - [The C bridge](https://rajaniraiyn.dev/CefSwift/internals/c-bridge): How CefKit calls CEF's C API: the generated bridge, the runtime loader, and where Swift meets C++. - [Threads and object ownership](https://rajaniraiyn.dev/CefSwift/internals/threads-and-ownership): Which thread runs what, who owns each CEF object, and how pages and their clients fit together. - [Chromium's services over Mojo](https://rajaniraiyn.dev/CefSwift/internals/mojo-services): How CefChromium reaches bookmarks, history, suggestions, tabs and discarding through Chromium's own WebUI handlers in hidden service hosts. - [Where bookmarks, history and settings live](https://rajaniraiyn.dev/CefSwift/internals/data-paths): Chromium's data directory, each profile's files, and the settings, task and certificate stores. - [Configuration, flags and features](https://rajaniraiyn.dev/CefSwift/internals/flags-and-features): Starting Chromium: presets, Chromium feature and switch overrides, preferences, languages, services, privacy and policies. - [Frame timing and IOSurface](https://rajaniraiyn.dev/CefSwift/internals/frame-timing): How offscreen frames arrive, who owns their IOSurface, and when they reach the screen. - [Layering SwiftUI over and under pages](https://rajaniraiyn.dev/CefSwift/internals/layering): The page's canvas, title bars in web content, Chromium's AppKit classes and what Chromium draws over a Chrome-style window. ## Performance - [Beside other browsers](https://rajaniraiyn.dev/CefSwift/performance/compared): The Browser example measured against Chrome for Testing and Helium: launch, memory, idle CPU and the GPU process, and what still trails. - [Memory](https://rajaniraiyn.dev/CefSwift/performance/memory): What a CefSwift app costs in processes and memory, what the presets turn off, and the process policy. - [Startup](https://rajaniraiyn.dev/CefSwift/performance/startup): Linking the framework at launch, what every bundle does, and system notifications at launch. - [Offscreen frames](https://rajaniraiyn.dev/CefSwift/performance/offscreen-frames): Offscreen frames copied only where they changed, and what that costs. - [Service-call benchmarks](https://rajaniraiyn.dev/CefSwift/performance/service-calls): What each Chromium service call and host costs, measured. - [Measured and not used](https://rajaniraiyn.dev/CefSwift/performance/measured-not-used): Memory switches, locale packs, SwiftShader and component updates: what was measured and left out, and why. ## Ship - [The Xcode and SwiftPM tracks](https://rajaniraiyn.dev/CefSwift/ship/tracks): Build the app bundle with the cef command plugin (Command Line Tools only) or with Xcode's build phase: one tool, equal tracks. - [Bundling](https://rajaniraiyn.dev/CefSwift/ship/bundling): What goes in the app bundle, per-product settings, capabilities, cef doctor and troubleshooting. - [Signing](https://rajaniraiyn.dev/CefSwift/ship/signing): Code signing, entitlements and provisioning profiles, keychain access and the prompts macOS shows. - [Notarization and distribution](https://rajaniraiyn.dev/CefSwift/ship/notarization): Local, development and Developer ID builds, notarized and stapled, with SwiftPM or Xcode. - [Updates with Sparkle](https://rajaniraiyn.dev/CefSwift/ship/updates): Sparkle 2 in a CefSwift app: keys, signing Sparkle's helpers, appcasts, deltas and their sizes. - [The App Sandbox](https://rajaniraiyn.dev/CefSwift/ship/sandbox): Why official CEF builds cannot run under the App Sandbox, and what confines the helpers instead. - [Upgrading CEF and profiles](https://rajaniraiyn.dev/CefSwift/ship/upgrading): How CEF updates arrive, CI and releases, and what an upgrade does to existing profiles. ## Reference - [Known limits](https://rajaniraiyn.dev/CefSwift/reference/known-limits): What CEF, official CEF builds and CefSwift cannot do, and the workaround where there is one. - [Changelog](https://rajaniraiyn.dev/CefSwift/reference/changelog): What changed in each CefSwift release, from its GitHub release notes. - [Built with CefSwift](https://rajaniraiyn.dev/CefSwift/reference/showcase): Apps built on CefSwift. ## Agent resources - [llms-full.txt](https://rajaniraiyn.dev/CefSwift/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://rajaniraiyn.dev/CefSwift/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://rajaniraiyn.dev/CefSwift/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://rajaniraiyn.dev/CefSwift/openapi.json. - [API catalog](https://rajaniraiyn.dev/CefSwift/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [agent-readability.json](https://rajaniraiyn.dev/CefSwift/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://rajaniraiyn.dev/CefSwift/sitemap.xml): Every indexable page URL with its last-modified date.