Introduction
Write React or Octane screens once, ship them on iOS, macOS, Android and Windows, and show its first screen before any JavaScript runs.
The same shop app built with the Octane adapter, SwiftUI and Expo, in two scenes: a cold start (tap the app icon) and a screen opened inside an existing native app (tap a row). Medians of 7 alternating takes per app, iOS simulator, Release builds:
| BakeNative | Native (SwiftUI) | Expo | |
|---|---|---|---|
| Cold start → first screen | 2188 ms | 2162 ms | 2832 ms |
| Existing app: tap → content | 40 ms | 45 ms | 1172 ms (43 ms with React Native started ahead of time) |
All three apps load the same 10 MB catalog and build the same search index at startup. BakeNative renders its first screen at build time. Conditions and every take: Comparison.
BakeNative builds React .tsx and Octane .tsrx screens for web, iOS, macOS, Android and Windows. New apps use React. Existing Octane apps use the Octane adapter. Both pass native updates to one Rust layout and paint engine. Each platform hosts the resulting views.
What you get:
- One codebase. The same components, CSS and state logic run in the browser and in your native app. Platform differences are a compile-time branch, not a second app.
- Built-in views, and HTML when you need it. Screens use the adapter's
View,Text,Imageand list components. Supported HTML and CSS also render natively, so existing web markup can stay. See Use built-in views first. - A first screen with no wait. At build time BakeNative records your app's first screen as a first-screen snapshot. At launch the native view draws it in a few milliseconds, before JavaScript has started.
- No rebuild when JS arrives. When Hermes finishes its first render, BakeNative checks it against the snapshot and takes over the views already on screen instead of creating new ones.
- The same look as the web. CSS cascade, block / flex / grid layout, text and painting are computed the way the browser computes them, in one Rust core shared by every native platform. Chrome is the reference the parity tests compare against.
- Unsupported is a build error. A native target supports a subset of the web platform, and anything outside it fails
bake buildwith the file, the line and what to use instead. Nothing silently looks different on the device. - Drop-in for existing apps. A BakeNative screen is one view that you put inside an existing UIKit, SwiftUI, AppKit, Android or Win32 app, with typed native modules to talk to the host.
- Native code when you need it. Expose Swift, Kotlin or Rust functions to your app as typed native modules, called synchronously over JSI.
Built for agents
bake build --json reports diagnostics an agent can read. The web build runs in a browser, and the documentation is also available as Markdown.
See Working with AI agents for the setup.
How it fits together
React or Octane ── bake build ─┬─ web → a normal Vite site for the browser
└─ ios / mac / android / windows
→ app.hbc your app compiled to Hermes bytecode
→ app.baked the first-screen snapshot
launch: app.baked → Rust core lays it out → native views on screen, no JS
app.hbc → Hermes renders → matches the snapshot → takes over those viewsArchitecture shows the whole system on one page.
Platforms
The same app, from one codebase, on macOS, Windows, the web, iOS and Android. Each platform was recorded separately and aligned on the same scripted walkthrough.
| Target | Runs on | Install |
|---|---|---|
| Web | Any browser (an ordinary Vite build) | npm |
| Windows | Windows 10/11 x64, a Win32 host | npm, or source |
| iOS | iOS 16+, UIKit and SwiftUI | npm on Apple silicon, or source |
| macOS | macOS 14+ on Apple silicon, AppKit and SwiftUI | npm, or source |
| Android | Android 10+ (API 29), Android views | source build |
Early preview
With a matching release of the scoped packages, npm brings the Windows host on Windows and the iOS and macOS runtime on Apple silicon. Use a source checkout for Android. On Intel Macs, npm provides the CLI and build tools. See Installation for the steps and runtime capabilities. APIs may still change.