# Octapus - **Get started** - [Introduction](/llms.mdx/docs.md): Write an Octane web app once, ship it as a native macOS and iOS app, and show its first screen before any JavaScript runs. - [Installation](/llms.mdx/docs/installation.md): Build the Octapus toolchain from source and connect it to your app. - [Quick start](/llms.mdx/docs/quick-start.md): Build a small app for web, macOS and iOS, and see its first screen appear before JavaScript runs. - **Guides** - [Working with AI agents](/llms.mdx/docs/guides/agents.md): Octapus assumes an agent writes most of your app. Here is how to set one up so it can build, check and fix its own work. - [Writing your app](/llms.mdx/docs/guides/writing-apps.md): What you can use in .tsrx and CSS when the same app runs natively, and what to avoid. - [Native modules](/llms.mdx/docs/guides/native-modules.md): Call Swift from Octane apps, typed end to end, and exchange props and events with the host. - [Embed in an iOS app](/llms.mdx/docs/guides/ios.md): Add an Octapus screen to an existing UIKit or SwiftUI app. - [Embed in a macOS app](/llms.mdx/docs/guides/macos.md): Show an Octapus bundle in a SwiftUI or AppKit window. - [Ship as a Swift package](/llms.mdx/docs/guides/binary-distribution.md): Build an Octane app into prebuilt XCFrameworks that an existing iOS or macOS app adds as a Swift package. - [Choosing when to hydrate](/llms.mdx/docs/guides/hydration.md): Decide when JavaScript takes over the first screen, and what happens to taps that arrive before it does. - [Shipping updates](/llms.mdx/docs/guides/updates.md): Replace a bundle without an app release, and fall back safely when an update does not fit the installed app. - [Comparing native and web](/llms.mdx/docs/guides/dev-tool.md): Use the Octapus dev tool to see your app natively and in WebKit side by side, and find what differs. - [Troubleshooting](/llms.mdx/docs/guides/troubleshooting.md): The screen rebuilds on launch, a bundle is refused, the build fails, or native looks different from web. - **How it works** - [Overview](/llms.mdx/docs/concepts/overview.md): The path from one .tsrx file to a native screen that appears before JavaScript runs. - [First-screen snapshot](/llms.mdx/docs/concepts/snapshot.md): What the snapshot stores, why it holds no geometry, and how a device turns it into a screen. - [Hydration and adoption](/llms.mdx/docs/concepts/adoption.md): How your app's JavaScript takes over views that are already on screen without rebuilding them. - [Rendering](/llms.mdx/docs/concepts/rendering.md): Why native screens match the web build, and what the platform views actually do. - [UI parity testing](/llms.mdx/docs/testing.md): Deterministic proof that one Octane app renders the same on web, macOS and iOS. - **Reference** - [CLI (oct build)](/llms.mdx/docs/reference/cli.md): Every option of oct build, what it writes per target, and its JSON report. - [Swift API](/llms.mdx/docs/reference/swift-api.md): The types you use to load bundles, show Octapus screens and observe them. - [manifest.json](/llms.mdx/docs/reference/manifest.md): The file that describes a native bundle and pairs its pieces. - [.ofrm format](/llms.mdx/docs/reference/ofrm.md): Byte layout of the first-screen snapshot (v4) and of the laid-out frame a device draws (v3).