This repository contains example applications to illustrate the different capabilities of GraalVM
679
stars
1,196
commits
Java
primary language
Sep 3, 2026
updated
This repository contains a collection of example applications that highlight key features and best practices for working with GraalVM technologies.
To get started, clone this repository and navigate to the relevant demo directory:
git clone https://github.com/graalvm/graalvm-demos.git
cd graalvm-demos
You will find instructions for running a particular demo in the corresponding README.md file. Some demos redirect you to a specific guide on the GraalVM website.
Example applications showcasing the capabilities of GraalVM Native Image, including performance optimization and configuration tips.
Demos for building native images, including configurations and setup steps for various use cases.
-H:Preserve option to include all classes from a package in a native image, eliminating the need for JSON metadata configuration.Demos illustrating how to compile applications with Native Image that use some dynamic Java features including reflection, resource access, and so on.
Demos focusing on containerizing native Java applications and following best practices.
jdk.httpserver module can be compiled to produce small container imagesDemos showcasing how to monitor native applications using observability and diagnostics tools.
Demos optimizing native applications for different criteria (runtime and performance tuning, file size, build time, and more).
Performance measurement demos for Native Image.
Demos showcasing the building and deployment of native applications to Oracle Cloud Infrastructure (OCI), AWS, and Google Cloud.
Demos for building microservices ahead of time using frameworks such as Micronaut and Spring Boot.
Demos illustrating how to use Web Image, GraalVM's new experimental feature to produce a WebAssembly module together with a JavaScript wrapper that can run in browsers or on Node.js.
@JS annotation.javac into a Wasm module, which can then run either on the command line or in the browser. Check out the live demo here.Demos designed to test and showcase the capabilities of the Graal Just-In-Time (JIT) compiler. These examples focus on evaluating the compiler's performance, including its optimizations for modern Java workloads.
You can find demos and guides for GraalJS, GraalPy, GraalWasm, and other Graal Languages at github.com/graalvm/graal-languages-demos/.
Legacy or blog-related demos, as well as examples involving polyglot capabilities.
Unless specified otherwise, all code in this repository is licensed under the Universal Permissive License (UPL).
(top 30 of 41)
Java
71.5%
HTML
10.5%
Shell
5.4%
Batchfile
4.6%
JavaScript
2.4%
Scala
1.5%
Dockerfile
1.4%
This repository contains example applications to illustrate the different capabilities of GraalVM
679
stars
1,196
commits
Java
primary language
Sep 3, 2026
updated
This repository contains a collection of example applications that highlight key features and best practices for working with GraalVM technologies.
To get started, clone this repository and navigate to the relevant demo directory:
git clone https://github.com/graalvm/graalvm-demos.git
cd graalvm-demos
You will find instructions for running a particular demo in the corresponding README.md file. Some demos redirect you to a specific guide on the GraalVM website.
Example applications showcasing the capabilities of GraalVM Native Image, including performance optimization and configuration tips.
Demos for building native images, including configurations and setup steps for various use cases.
-H:Preserve option to include all classes from a package in a native image, eliminating the need for JSON metadata configuration.Demos illustrating how to compile applications with Native Image that use some dynamic Java features including reflection, resource access, and so on.
Demos focusing on containerizing native Java applications and following best practices.
jdk.httpserver module can be compiled to produce small container imagesDemos showcasing how to monitor native applications using observability and diagnostics tools.
Demos optimizing native applications for different criteria (runtime and performance tuning, file size, build time, and more).
Performance measurement demos for Native Image.
Demos showcasing the building and deployment of native applications to Oracle Cloud Infrastructure (OCI), AWS, and Google Cloud.
Demos for building microservices ahead of time using frameworks such as Micronaut and Spring Boot.
Demos illustrating how to use Web Image, GraalVM's new experimental feature to produce a WebAssembly module together with a JavaScript wrapper that can run in browsers or on Node.js.
@JS annotation.javac into a Wasm module, which can then run either on the command line or in the browser. Check out the live demo here.Demos designed to test and showcase the capabilities of the Graal Just-In-Time (JIT) compiler. These examples focus on evaluating the compiler's performance, including its optimizations for modern Java workloads.
You can find demos and guides for GraalJS, GraalPy, GraalWasm, and other Graal Languages at github.com/graalvm/graal-languages-demos/.
Legacy or blog-related demos, as well as examples involving polyglot capabilities.
Unless specified otherwise, all code in this repository is licensed under the Universal Permissive License (UPL).
(top 30 of 41)
Java
71.5%
HTML
10.5%
Shell
5.4%
Batchfile
4.6%
JavaScript
2.4%
Scala
1.5%
Dockerfile
1.4%