Same look on every platform
One Rust core computes the CSS cascade, block, flex and grid layout, line breaking and paint, with Chrome as the reference. Each platform only hosts the views.
Build for the web, iOS, macOS, Android and Windows. The native host draws the first screen while Hermes starts, then adopts the matching views when your app is ready to handle input.
bake build --target web,ios,mac --bake
Octane shop demo, SwiftUI and Expo · iOS Simulator, median of 7 runs · How it was measured
Launch, replayed
Two real launches of the same app, slowed down 20×. Without a snapshot the screen stays blank until Hermes has built the whole tree. With one, the frame is up in under 3 ms and Hermes adopts the views that are already on screen.

Blank until Hermes has run the app and created every view.
Not launched yet

The snapshot (.baked) is drawn before any JS. Hermes then adopts those views.
Not launched yet
Timings from the example app's LaunchMetrics log in the iOS brownfield host (iOS Simulator). The snapshot launch is a frame-cache hit: read 0.09 ms, draw 2.8 ms, adopt 4.8 ms.
Every platform
One app, native on iOS, Android, macOS and Windows, and the DOM on the web.
Live demo
The frame below is examples/app built with bake build --target web: a small gallery of demos. Its Starter tab is the official Octane starter, the screen in the native captures above.
Loading the example app…
import { useState } from 'octane';
export function Counter() @{
const [count, setCount] = useState(0);
<button onClick={() => setCount(count + 1)}>
{'Count: ' + count}
</button>
}Pipeline
Web ships as DOM. Native ships as Hermes bytecode plus a first-screen snapshot. At launch the snapshot shows first and Hermes hydrates it.
Native views drawn at O(1) per row. No JS.
Adoption mode takes over the screen. Zero new views.
Features
One Rust core computes the CSS cascade, block, flex and grid layout, line breaking and paint, with Chrome as the reference. Each platform only hosts the views.
A first-screen snapshot (.baked) baked at build time is drawn in one forward pass, O(1) per row. Hermes comes after.
Drop BakeNativeView into an existing UIKit or SwiftUI app. The public modules expose C headers only, so C++ interop stays off.
bake build builds web, ios, android, mac and windows with Vite and the selected React or Octane adapter. Branch per target with import.meta.env.BAKE_TARGET.
Usage
$ pnpm install && pnpm hermes
$ pnpm app
# = bake build --target web,ios,mac --bake
# or run it directly
$ bake build --target web,ios,mac --bake \
--viewport 640x480import BakeNativeAppKit
import SwiftUI
struct ContentView: View {
var body: some View {
// dist/mac: app.hbc + app.baked + app.css
BakeNativeView(bundle: BakeNativeBundle(directory: url))
}
}Measured on macOS
Measured on macOS with the official Octane starter app (examples/app). Time to interactive is from a debug build in the dev tool.