Skip to content

Home en

Tki_sor edited this page Sep 15, 2026 · 1 revision

English · 中文

Source page wiki/Home.md
Source version commit 29541c2c, 2026-09-12
Translation updated 2026-09-12

If the Chinese page has changed since that commit, the Chinese page is correct and this one may be out of date.

Links below marked 中文 point to pages that have not been translated yet.

Welcome to NekoJS

A modern, fast, and elegant Minecraft scripting engine

NekoJS is a Minecraft JavaScript scripting runtime built on NeoForge and GraalVM/GraalJS. It is aimed at modpack authors and mod developers. The goal is to provide a scripting experience inside Minecraft that is close to modern frontend engineering practice.

This wiki is organised by reader role:


Why choose NekoJS?

Feature Description
Powered by GraalVM Supports the latest ECMAScript standard. It replaces the older Rhino and Nashorn engines, so you get modern JavaScript syntax and the capabilities of the GraalJS runtime.
Built-in TypeScript and JSX support Includes an erasable TypeScript frontend for .ts and lightweight classic runtime lowering for .jsx and .tsx. No extra build step is required.
Native ESM runtime Supports import and export, live bindings, circular dependencies, top-level await, import.meta, dynamic import(), and ESM/CJS interoperability.
Node.js compatible API Includes shims for the core modules fs, path, buffer, process, timers, util, events, assert, os, and test.
Editor code completion /nekojs probe generates TypeScript and Python type declarations into .neko_probe/ with a single command. You do not need the external ProbeJS mod to get completion.
Server-side hot reload /nekojs reload hot reloads server scripts. Both NeoForge and Cleanroom support recipe hot reload. For details, see Commands 中文.
Multi-platform Supports NeoForge 26.1, 26.2, and 1.21.1, as well as Cleanroom 1.12.2 (Forge). All platforms share common infrastructure.

Get started in thirty seconds

  1. Install the required dependency mod Graal and NekoJS, then start the game.
  2. A nekojs/ folder is created automatically in the game root directory.
  3. Create hello.js inside nekojs/server_scripts/:
// server_scripts/hello.js
ServerEvents.started(event => {
  console.info('NekoJS is ready!')
})
  1. Enter a world, or run /nekojs reload. You are finished once the message appears in the log.

For the full walkthrough, see Quick start 中文.


Which pages should I read?


Supported Minecraft versions

Platform Minecraft version Loader Java
NeoForge 26.1 26.1.2 NeoForge 26.1.2-beta 25
NeoForge 26.2 26.2.0 NeoForge 26.2.0-beta 25
NeoForge 1.21.1 1.21.1 NeoForge 21.1.x 21
Cleanroom 1.12.2 1.12.2 Cleanroom (Forge) 0.5.14-alpha 25

Almost all script APIs behave the same on every platform. A small number differ on 1.12.2 because of API differences, and those cases are marked in the text.


Additional resources

  • docs/ROADMAP.md is the design roadmap for the project.

NekoJS Wiki

中文 · English

先看这里 / Start here

  • 首页 / Home · 中文 · EN
  • 平台与兼容性 / Platforms and compatibility · 中文 · EN
  • 快速开始 / Quick start · 中文 · EN
  • 配置参考 / Configuration · 中文 · EN
  • 常见问题 / FAQ · 中文 · EN

脚本作者 / Script authors

  • 脚本基础 / Script basics · 中文 · EN
  • 脚本 API 约定 / Script API conventions · 中文 · EN
  • 脚本属性 / Script properties · 中文 · EN
  • 全局绑定 / Global bindings · 中文 · EN
  • 数据、状态与持久化 / Data, state and persistence · 中文 · EN
  • Python 脚本 / Python scripts · 中文 · EN
  • Python 特性清单 / Python feature support · 中文 · EN
  • 事件参考 / Event reference · 中文 · EN
  • AI 辅助脚本编写 / AI-assisted authoring · 中文 · EN
  • 命令 / Commands · 中文 · EN
  • 错误与日志参考 / Error and log reference · 中文 · EN
  • 客户端绘制与后处理 / Client rendering and post effects · 中文 · EN

整合包作者 / Modpack authors

  • 版本化脚本包 / Versioned script packs · 中文 · EN
  • 配方系统 / Recipe system · 中文 · EN
  • 注册新内容 / Registering new content · 中文 · EN
  • 模块系统 / Module system · 中文 · EN
  • TypeScript 与 JSX / TypeScript and JSX · 中文 · EN
  • JSX 客户端 UI / JSX client UI · 中文 · EN
  • MixinJS(实验性) / MixinJS (experimental) · 中文 · EN
  • Node.js 兼容 / Node.js compatibility · 中文 · EN

插件开发者 / Plugin developers

  • 插件开发 / Plugin development · 中文 · EN
  • 类型适配器 / Type adapters · 中文 · EN
  • 事件扩展 / Event extensions · 中文 · EN
  • 注解体系 / Annotations · 中文 · EN

项目贡献者 / Project contributors

  • 项目架构 / Project architecture · 中文 · EN
  • Probe 类型生成 / Probe type generation · 中文 · EN
  • 构建系统 / Build system · 中文 · EN

Clone this wiki locally