GraalJS is a JavaScript engine built on GraalVM and the Truffle language implementation framework. It provides an ECMAScript-compliant execution environment that can operate independently or be embedded within Java applications. Its architecture uses dynamic compilation and runtime optimisation to improve the performance of frequently executed code.
A distinctive aspect of GraalJS is its support for interoperability between programming languages. JavaScript code can interact with Java objects, invoke methods and exchange data with other languages supported by GraalVM. This makes the engine particularly useful for adding scripting capabilities to existing Java applications, developing polyglot software and migrating applications that previously relied on the Nashorn or Rhino JavaScript engines.
This is free and open source software.
Key Features
- Support for modern ECMAScript language specifications.
- Execute JavaScript applications through a dedicated standalone runtime.
- Node.js runtime supporting existing applications and a wide range of npm modules.
- Support for native Node.js extensions.
- Bidirectional access to Java objects, methods and JavaScript values.
- Embed JavaScript execution in Java applications through the GraalVM Polyglot API.
- Configurable host access policies governing interaction with Java classes and native resources.
- Share data and invoke functions across supported GraalVM languages.
- WebAssembly interoperability through the JavaScript WebAssembly API when the corresponding language support is available.
- Interactive JavaScript shell for evaluating expressions and experimenting with language features.
- Debugging and profiling facilities through the GraalVM instrumentation framework.
- Compatibility options to assist migration from Nashorn-based applications.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/oracle/graaljs
Support:
Developer: Oracle
License: Universal Permissive License v1.0
GraalJS is written in C++ and C. Learn C++ with our recommended free books and free tutorials. Learn C with our recommended free books and free tutorials.
Related Software
| JavaScript Engines | |
|---|---|
| V8 | High-performance JavaScript and WebAssembly engine |
| SpiderMonkey | JavaScript and WebAssembly Engine, used in Firefox, Servo and more |
| QuickJS | Small and embeddable Javascript engine |
| Hermes | JavaScript engine optimized for React Native |
| Rhino | JavaScript in Java |
| JerryScript | JavaScript engine for the Internet of Things |
| GraalJS | ECMAScript-compliant JavaScript engine |
| Escargot | Lightweight JavaScript engine |
| Duktape | Embeddable JavaScript engine, focusing on portability and compact footprint |
| Elk | Tiny embeddable JavaScript engine |
Read our verdict in the software roundup.
| JavaScript Runtime Environments | |
|---|---|
| Node.js | Hugely popular cross-platform JavaScript run-time environment |
| Bun | Fast JavaScript runtime designed as a drop-in replacement for Node.js. |
| Deno | Simple, modern and secure runtime for JavaScript and TypeScript |
| WasmEdge | High-performance, and extensible WebAssembly runtime |
| workerd | JavaScript and WebAssembly server runtime |
| LLRT | Designed for fast, resource-efficient serverless applications |
| txiki.js | Small and powerful JavaScript runtime |
| JerryScript | JavaScript engine for the Internet of Things |
| GraalJS | ECMAScript-compliant JavaScript engine |
| Window.js | JavaScript runtime for desktop graphics programming |
| Blueboat | Multi-tenant serverless JavaScript runtime |
| lo | Successor project to Just |
| StarlingMonkey | SpiderMonkey-based JavaScript runtime |
| Just | Very small v8 JavaScript runtime |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.