Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Library:Hermes JavaScript engine

From ReverseEngineering.wiki
Library
Developer Meta
License MIT
Website https://github.com/facebook/hermes
On this wiki Facts · Code · Notes · Topics

Meta's JavaScript engine for React Native that precompiles JS to bytecode (HBC) at build time; the bundle in an APK or IPA is then Hermes bytecode and not JavaScript text.

Identification

React Native apps keep their JS in assets/index.android.bundle (Android). If it starts with C6 1F BC 03 C1 03 19 1F the app uses Hermes; if it is readable (often minified) JavaScript, it does not. The bytecode format and header are on Format:Hermes bytecode (HBC); the version number (u32 after the magic) decides which disassembler can read it.

The repo builds tools: the hermes compiler, hbcdump/bytecode dumper, and hvm. Docs: doc/ReactNativeIntegration.md.

Native modules of a React Native app are normal Java/Kotlin (DEX) and C++ (.so) code; only the JS side is hidden in bytecode. See Technique:Cross-platform app frameworks, Platform:Android.

Code & repositories

  • https://github.com/facebook/hermes @ 17b37301da5da4a2cd55d78f9697c46c0fd96123 · license: MIT
    Hermes engine source: bytecode header, version constant, dumper tools.
    Tested on: source read, not run: source read, not run · checked 2026-10-18; last activity 2026-10-15