GraalJS

Quick rating

GraalJS

No reviews yet

A JavaScript language library.

QoL & Tweaks
API/Library
Mod Loaders
Forge
NeoForge
Minecraft
26.2

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Optional

About

Project Details

Type
Mod
License
am cc 0
Latest Version
graaljs-26.x-25.0.2-1-Neo-all.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

GraalJS is a fast JavaScript language implementation built on top of GraalVM. It is ECMAScript-compliant, provides interoperability with Java and other Graal languages, common tooling, and, if run on the GraalVM JDK, provides the best performance with the Graal JIT compiler by default. You can also use GraalJS with Oracle JDK or OpenJDK.

This mod packages GraalJS to facilitate other mods using GraalJS without needing to package it separately.
This mod does not contain any active modifications. When used as a library, you only need to add the dependency using

implementation "dev.anye.mc:graaljs:1.21.x-24.2.1-1-Neo-all"

It includes an EasyJS class for easy invocation of GraalJS

LOGGER.info("1 + 1 = {}",EasyJS.NotSafe().runCode("1+1"));

You can also directly use GraalJS

static String JS_CODE = "(function myFun(param){console.log('Hello ' + param + ' from JS');})";

public static void main(String[] args) {
    String who = args.length == 0 ? "World" : args[0];
    System.out.println("Hello " + who + " from Java");
    try (Context context = Context.create()) {
        Value value = context.eval("js", JS_CODE);
        value.execute(who);
    }
}

Version number explanation: GraalJS-(Supported Minecraft version)-(GraalJS version)-(This mod version number)-(Mod loader identifier)-(Packaging type)
For example: GraalJS-1.21.x-24.2.1-1-Neo-lite

GraalJS: https://www.graalvm.org/javascript/
GraalJS Documentation: https://www.graalvm.org/reference-manual/js/
This project's GitHub: https://github.com/An-Mao/MC-GraalJS

----Attention----
· This is not an official GraalVM product. If you encounter non-code related issues, please contact me.
· When starting the game with a JDK that includes GraalJS (such as GraalVM), errors may occur. Please use the lite version in the attached files.

Any questions can be asked in github or contacted as below:

This mod packages GraalJS to facilitate other mods using GraalJS without needing to package it separately.

Version number explanation: GraalJS-(Supported Minecraft version)-(GraalJS version)-(This mod version number)-(Mod loader identifier)-(Packaging type)
For example: GraalJS-1.21.x-24.2.1-1-Neo-lite

GraalJS: https://www.graalvm.org/javascript/
GraalJS Documentation: https://www.graalvm.org/reference-manual/js/
This project's GitHub: https://github.com/An-Mao/MC-GraalJS

----Attention----
· This is not an official GraalVM product. If you encounter non-code related issues, please contact me.
· When starting the game with a JDK that includes GraalJS (such as GraalVM), errors may occur. Please use the lite version in the attached files.

Any questions can be asked in github or contacted as below:

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works