Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hermes

> 编程语言
Open source

A JavaScript engine optimized for running React Native.

11.2K stars0 likes3 views
WebsiteGitHub

About

A JavaScript engine optimized for running React Native.

Hermes JS Engine

Hermes is a JavaScript engine optimized for fast start-up of React Native apps. It features ahead-of-time static optimization and compact bytecode.

If you're only interested in using pre-built Hermes in a new or existing React Native app, you do not need to follow this guide or have direct access to the Hermes source. Instead, just follow these instructions to enable Hermes.

Noted that each Hermes release is aimed at a specific RN version. The rule of thumb is to always follow Hermes releases strictly. Version mismatch can result in instant crash of your apps in the worst case scenario.

If you want to know how to build and hack on Hermes directly, and/or integrate Hermes built from source into a React Native app then read on.

Hermes Blog - Technical articles and deep dives into Hermes internals.

The instructions here very briefly cover steps to build the Hermes CLI. They assume you have typical native development tools setup for your OS, and support for cmake and Ninja. For more details of required dependencies, building Hermes with different options, etc. follow these links instead:

  • Building and Running Hermes
  • Using a custom Hermes build in a React Native app

To build a local debug version of the Hermes CLI tools the following steps should get you started on macOS/Linux:

bash
mkdir hermes_workingdir
cd hermes_workingdir
git clone https://github.com/facebook/hermes.git
cmake -S hermes -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build

Or if you're using Windows, the following should get you going in a Git Bash shell:

bash
mkdir hermes_workingdir
cd hermes_workingdir
git -c core.autocrlf=false clone https://github.com/facebook/hermes.git
cmake -S hermes -B build -G 'Visual Studio 16 2019' -A x64
cmake --build ./build

You will now be in a directory with the output of building Hermes into CLI tools. From here you can run a piece of JavaScript as follows:

bash
echo "'use strict'; function hello() { print('Hello World'); } hello();" | ./bin/hermes

Contributing

The main purpose of this repository is to continue to evolve Hermes, making it faster and more efficient. We are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Hermes.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Hermes.

License

Hermes is MIT licensed.

Issues· 267 open

View all issuesOpen on GitHub
  • #2212

    hermesc AOT compiler miscompiles unrelated code once a 4th class's private fields are resolved (corruption, not a real syntax error)

    Updated Sep 28, 2026
  • #2190

    Intermittent HadesGC OldGen corruption (EXC_BAD_ACCESS) correlated with low device memory, across unrelated RN app screens

    Updated Sep 28, 2026
  • #2209

    Android DateTimeFormat reports h11/h24 but formats midnight as h12/h23

    Updated Sep 26, 2026
  • #2201

    tryGetMutableBuffer() segfaults after another external ArrayBuffer gets a property

    Updated Sep 25, 2026
  • #2194

    Publish a Linux ARM64 (aarch64) hermesc binary in hermes-compiler

    Updated Sep 23, 2026
  • #2192

    RN 0.88 ships without lazy-compilation fix

    bugUpdated Sep 23, 2026
  • #1896

    [iOS] Crash in HiddenClass::addProperty during runtime initialization (bindNativePerformanceNow)

    need more infoUpdated Sep 20, 2026
  • #2189

    ISerialization hits "Too many handles allocated in GCScope" on small object arrays

    Updated Sep 18, 2026
  • #2186

    `static_h`: `HERMESVM_ALLOW_JIT=1` means "enabled if supported by the platform", but support is resolved only from predefines — asmjit can answer it at run time

    Updated Sep 17, 2026
  • #2187

    `static_h`: an asmjit failure is an unconditional `hermes_fatal`, so a platform that refuses executable memory turns a JIT *request* into a dead process instead of an interpreted one

    Updated Sep 17, 2026

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言