Skip to Content
Octapus

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": "oct:renderer", "target": "universal", "text": "host",
                "capabilities": ["scoped-styles", "visibility", "class-name-alias"] },
  "hostProtocol": 2,
  "hermesBytecode": 96,
  "octane": "0.23.2",
  "files": {
    "app.js": "<sha256>", "app.css": "<sha256>", "app.hbc": "<sha256>", "app.ofrm": "<sha256>"
  },
  "frame": {
    "file": "app.ofrm", "format": 4, "hbcFnv": "<FNV-1a 64 of app.hbc>",
    "hosts": 35, "restyled": 0, "pageRestyle": false, "styles": [12, 12], "bytes": 6440
  }
}
FieldMeaning
targetThe target this bundle was built for
rendererOctane renderer settings the bundle was compiled with
hostProtocolVersion of the commands the bundle sends to the native host. The app refuses bundles above OctapusBundle.supportedHostProtocol
hermesBytecodeHermes bytecode version of app.hbc. The app also reads it from the file itself and refuses other versions
octaneOctane version the bundle was built with
filesSHA-256 of each file in the bundle, for integrity checks on download
frameThe first-screen snapshot, or null when built without --bake

frame

FieldMeaning
fileSnapshot file name
format.ofrm version (4)
hbcFnvFNV-1a 64 of the app.hbc it was baked from. The snapshot is only used with that bytecode
hostsElements in the first commit
restyledElements restyled on device because their style depends on the viewport
pageRestyletrue if the page itself depends on the viewport, so everything is restyled
stylesDistinct computed styles for light and dark
bytesSnapshot size

The values in the example are illustrative.

On this page