manifest.json
The file that describes a native bundle and pairs its pieces.
Every native bundle has a manifest.json. A bundle loaded from a folder without one is refused, because it is the contract between your build, your update server and the app.
{
"target": "ios",
"renderer": { "module": "bake:renderer", "target": "universal", "text": "host",
"capabilities": ["scoped-styles", "visibility", "class-name-alias"] },
"hostProtocol": 4,
"batchDigest": "0x<FNV-1a 64 of the batch stream schema>",
"hermesBytecode": 100,
"react": "19.3.1",
"files": {
"app.js": "<sha256>", "app.css": "<sha256>", "app.hbc": "<sha256>", "app.baked": "<sha256>"
},
"frame": {
"file": "app.baked", "format": 4, "hbcFnv": "<identity of app.hbc>", "target": "ios",
"hosts": 35, "restyled": 0, "pageRestyle": false, "styles": [12, 12], "bytes": 6440
},
"requires": {
"format": 1,
"batch": {
"stream": "<FNV-1a 64 of the shared encoding>",
"seed": { "count": 52, "hash": "<FNV-1a 64 of the seed strings>" },
"ops": { "create": { "tag": 1, "shape": "<FNV-1a 64 of its fields>" } }
},
"events": ["click", "input"],
"style": ["color", "padding"],
"modules": ["Share"]
}
}| Field | Meaning |
|---|---|
target | The target this bundle was built for |
renderer | Native renderer settings the bundle was compiled with |
hostProtocol | Version of the commands the bundle sends to the native host. The host checks the supported protocol range. The first BakeNative release requires protocol 4 |
batchDigest | Digest of the binary renderer batch stream app.hbc writes (native/rust/schema/batch.oschema), also in every batch it sends. The core reads the bundle's batches by the op names in requires.batch; without requires, the digest must equal the core's own |
hermesBytecode | Hermes bytecode version of app.hbc. The app also reads it from the file itself and refuses other versions |
react or octane | Version of the framework used to build the bundle |
files | SHA-256 of each file in the bundle. Used by download integrity checks and before paint for localized bake files |
assets | The bundled images and media (asset://<file>): each source path and the hashed file it became |
fonts | The @font-face faces the host registers before the first frame, in source order: descriptors, sources (files next to app.hbc) and the canonical rule body |
frame | The first-screen snapshot, required on React native builds, or null for an unbaked Octane bundle |
requires | What the bundle uses, which the runtime and its app package must provide (below) |
requires
Written by bake build. A bundle runs where every requirement is provided with the same shape; anything it does not use may be added, changed or removed. The Rust core checks it on every platform (Packaging: OTA compatibility).
| Field | Meaning | Provided by |
|---|---|---|
format | Version of this block (1). A runtime refuses formats it does not know | |
batch.stream | Hash of what every renderer op shares (encoding, header, interned tables) | the core: equal |
batch.seed | How many built-in strings the bundle's writer knows, and their hash | the core: the bundle's are a prefix of its own |
batch.ops | Every op the writer may send: its tag and a hash of its fields (the tag left out) | the core: each op by name with the same hash; a different tag is mapped |
events | Events the markup listens to (onClick → click) | the core dispatches each |
style | CSS properties in app.css and literal inline styles | the core knows each |
package | Packaged apps: the package id | the package: equal |
native | Packaged apps: { "<Module>.<member>": "<signature>" } of each native member called; a dynamic access lists the whole module | the package: each member with the same signature |
nativeBuild | Only when the app declares it: the lowest package nativeBuild | the package: at least it |
runtime | Only when the app declares a runtime range | the core's version is in it |
nativeModules | The native modules the app's own code calls unguarded (first-party ones and dynamic access left out); the root checks each is registered before the bundle runs | the root's registry |
optionalNativeModules | The ones it calls guarded (hasNative, in native): registered when present | the root's registry, if any |
views | { "<View>": "<signature>" } of each native view the bundle renders (the FNV-1a 64 of the spec's signature lines) | the host / package: each with the same signature |
modules | The first-party modules (Clipboard, Linking, Share) the bundle calls after tree-shaking, sorted. The host links only these (System modules) | a package: each is in its provides.modules. A package without modules predates them and has them all. A bundle without the field requires none |
A manifest without requires (built before it existed) is accepted when its batchDigest equals the core's exactly; an old native block is checked by its package and uses member signatures, and its native.fingerprint is ignored.
locales and frames
With locales in bake.config.ts, locales lists them (the first is the default) and frames holds each locale's first screen, by tag, with the fields of frame below. The default's file is app.baked, which frame describes too; the others are app.<tag>.baked. Each file is also in files with its sha256.
{
"locales": ["en", "ko"],
"frame": { "file": "app.baked", "format": 4, "hbcFnv": "<identity of app.hbc>" },
"frames": {
"en": { "file": "app.baked", "format": 4, "hbcFnv": "<identity of app.hbc>" },
"ko": { "file": "app.ko.baked", "format": 4, "hbcFnv": "<identity of app.hbc>" }
}
}- Which file a screen opens. The core resolves the app locale from
locales(the app's saved choice, then the device's languages, then the default). The host opensframes[<the app locale>].filewhen it names that locale's canonical file. If the entry names another file or the canonical file is missing, the screen mounts from JavaScript. - Without
locales. The manifest has neither key, and the host opensapp.bakedasframedescribes it. A bundle built beforeframesexisted is read the same way. - The direction is not in the manifest. It follows from the tag (
ar,he,faand other right-to-left languages and scripts), at bake time and on the device alike. - A frame of another build. Every entry's
hbcFnvis the identity in its file's header, and the runtime checks the header againstapp.hbcat open. A frame baked from anotherapp.hbcis not shown. - A localized frame with different bytes. Before layout or prewarm, the runtime also checks the selected bake against its SHA-256 in
fileswhen present. A mismatch mounts from JavaScript. Device cache frames use the cache slot identity instead.
The byte layout and which facts the file itself carries: .baked format.
frame
| Field | Meaning |
|---|---|
file | Snapshot file name |
format | .baked version (4) |
hbcFnv | Identity of the app.hbc it was baked from: FNV-1a 64 of the SHA-1 hermesc writes in the bytecode's last 20 bytes. The snapshot is only used with that bytecode, and the app checks it without reading the whole file |
target | The target it was baked for (ios, android, mac, windows), the bundle's target. Platform-specific values are applied on device (Targets) |
hosts | Elements in the first commit |
restyled | Elements restyled on device because their style depends on the viewport |
pageRestyle | true if the page itself depends on the viewport, so everything is restyled |
styles | Distinct computed styles for light and dark |
bytes | Snapshot size |
The values in the example are illustrative.