COWMODSКаталог модов

Graphene

Graphene is a client-side UI library for Minecraft (Fabric) that lets mod developers build interfaces with web technologies.

Автор: Tytoo1,4 тыс.7обновлён 30 авг. 2026 г.
БиблиотекиТехнологииУтилиты

Описание

Graphene

Modrinth GitHub Release Maven Central 26.2 Maven Central 26.1.2 Maven Central 1.21.11 License: MIT

Graphene is a client-side UI library for Minecraft that lets mod developers build interfaces with web technologies. It embeds Chromium through JCEF, so you can render HTML/CSS/JavaScript UIs in-game while keeping a clean Java API for mod integration.

A Three.js scene rendered by Graphene inside Minecraft

What is Graphene?

Graphene bridges Minecraft modding and modern web UI development. Instead of building every screen with Minecraft's rendering primitives, you can create interfaces with HTML, CSS, and JavaScript, then integrate them with your mod through a Java API.

Graphene provides:

  • interactive Chromium views that can be embedded in Minecraft screens;
  • packaged asset URLs and an optional development HTTP server;
  • two-way Java/JavaScript communication through an asynchronous bridge;
  • browser navigation, input, downloads, dialogs, context menus, and lifecycle controls;
  • off-screen browser sessions and surfaces for custom rendering integrations;
  • Chromium DevTools support for inspecting and debugging pages.

Check compatibility and installation for supported Minecraft and Loader versions.

Requirements

  • Java: 25 for Minecraft 26.2 and 26.1.2, 21 for Minecraft 1.21.11
  • GPU: NVIDIA GeForce GT 720 or better
  • For macOS users: macOS 12 (Monterey) or later

Supported Platforms

  • macOS: arm64, amd64
  • Linux: arm64, amd64
  • Windows: amd64, arm64

Tested Platforms

  • Windows 11 with AZERTY and QWERTY keyboard layouts
  • Linux (Wayland) with AZERTY and QWERTY keyboard layouts
  • macOS 26 with QWERTY keyboard layout

Installation

Graphene is published on Maven Central. Find the latest version on GitHub Releases, Modrinth, or the Minecraft-version-specific Maven Central artifacts, then add the artifact matching your target Minecraft version as a mod dependency:

repositories {
    mavenCentral()
}

dependencies {
    modImplementation("io.github.trethore:graphene-ui-26.2:<version>")
    // Or for Minecraft 26.1.2:
    // modImplementation("io.github.trethore:graphene-ui-26.1.2:<version>")
    // Or for Minecraft 1.21.11:
    // modImplementation("io.github.trethore:graphene-ui-1.21.11:<version>")
}

Declare Graphene as a runtime dependency in fabric.mod.json:

{
  "depends": {
    "grapheneui": ">=<version>"
  }
}

Register your mod from its client initializer and retain the returned context:

import io.github.trethore.graphene.api.Graphene;
import io.github.trethore.graphene.api.GrapheneContext;
import net.fabricmc.api.ClientModInitializer;

public final class ExampleModClient implements ClientModInitializer {
    private static GrapheneContext graphene;

    @Override
    public void onInitializeClient() {
        graphene = Graphene.register(ExampleModClient.class);
    }

    public static GrapheneContext graphene() {
        return graphene;
    }
}

See those documentation pages for more details:

Contributing

Contributions are welcome!

  • Read the contributor guide in CONTRIBUTING.md.
  • Report bugs or request features in Issues.
  • Open changes through Pull Requests.
  • All pull requests must be tested before being submitted.

Documentation

Start HERE!

License

Licensed under the MIT License by Titouan Réthoré.

Галерея

Graphene Demo Screen

Последние версии

Все версии →
release

Graphene 2.4.0

2.4.0
30 авг. 2026 г.142Minecraft: 26.2fabric
Скачать
Что нового
### Removed - Removed the deprecated `BrowserSurface` and `BrowserSurfaceInputAdapter` compatibility APIs and the corresponding `GrapheneWebViewWidget` constructors. ### Fixed - Published the shared module as `graphene-ui-common` for development environments while retaining its embedding in runtime JARs.
release

Graphene 2.4.0

2.4.0
30 авг. 2026 г.63Minecraft: 26.1.2fabric
Скачать
Что нового
### Removed - Removed the deprecated `BrowserSurface` and `BrowserSurfaceInputAdapter` compatibility APIs and the corresponding `GrapheneWebViewWidget` constructors. ### Fixed - Published the shared module as `graphene-ui-common` for development environments while retaining its embedding in runtime JARs.
release

Graphene 2.4.0

2.4.0
30 авг. 2026 г.280Minecraft: 1.21.11fabric
Скачать
Что нового
### Removed - Removed the deprecated `BrowserSurface` and `BrowserSurfaceInputAdapter` compatibility APIs and the corresponding `GrapheneWebViewWidget` constructors. ### Fixed - Published the shared module as `graphene-ui-common` for development environments while retaining its embedding in runtime JARs.
release

Graphene 2.3.0

2.3.0
30 авг. 2026 г.23Minecraft: 26.1.2fabric
Скачать
Что нового
### Added - Added neutral `BrowserView` ownership for browser sessions, resolution, and shared GPU frame textures. - Added `BrowserGuiSurface` and `BrowserWorldSurface` projections with GUI and world input adapters. - Added experimental borrowed browser texture access through `BrowserView.texture()`. - Added Fabric support for Minecraft 26.1.2. - Added MP4 and WebM MIME detection for Graphene-managed assets. - Added single byte-range responses for HTTP, app, and classpath resources. ### Changed - Deprecated `BrowserSurface` and `BrowserSurfaceInputAdapter` in favor of the view and projection APIs. - Reworked Fabric version-specific packages to deduplicate shared code.
release

Graphene 2.3.0

2.3.0
30 авг. 2026 г.11Minecraft: 26.2fabric
Скачать
Что нового
### Added - Added neutral `BrowserView` ownership for browser sessions, resolution, and shared GPU frame textures. - Added `BrowserGuiSurface` and `BrowserWorldSurface` projections with GUI and world input adapters. - Added experimental borrowed browser texture access through `BrowserView.texture()`. - Added Fabric support for Minecraft 26.1.2. - Added MP4 and WebM MIME detection for Graphene-managed assets. - Added single byte-range responses for HTTP, app, and classpath resources. ### Changed - Deprecated `BrowserSurface` and `BrowserSurfaceInputAdapter` in favor of the view and projection APIs. - Reworked Fabric version-specific packages to deduplicate shared code.
release

Graphene 2.3.0

2.3.0
30 авг. 2026 г.13Minecraft: 1.21.11fabric
Скачать
Что нового
### Added - Added neutral `BrowserView` ownership for browser sessions, resolution, and shared GPU frame textures. - Added `BrowserGuiSurface` and `BrowserWorldSurface` projections with GUI and world input adapters. - Added experimental borrowed browser texture access through `BrowserView.texture()`. - Added Fabric support for Minecraft 26.1.2. - Added MP4 and WebM MIME detection for Graphene-managed assets. - Added single byte-range responses for HTTP, app, and classpath resources. ### Changed - Deprecated `BrowserSurface` and `BrowserSurfaceInputAdapter` in favor of the view and projection APIs. - Reworked Fabric version-specific packages to deduplicate shared code.
release

Graphene 2.2.0

2.2.0
28 авг. 2026 г.37Minecraft: 1.21.11fabric
Скачать
Что нового
### Added - Gradle 9.7.1. - Qodana static analysis as a manual scan. - Added per-browser file-dialog authorization policies. - Added routed support for the File System Access API's `showDirectoryPicker()` method. ### Changed - Reworked `packages/` and `debug-client/` structure to deduplicate shared code. - Directory-picker routing now works without exposing the public JavaScript bridge and fails closed when unavailable. - Folder selections are validated before they are returned to Chromium. ### Fixed - Fixed a bug where `window.showDirectoryPicker()` method would let you select files instead of folders.
release

Graphene 2.2.0

2.2.0
28 авг. 2026 г.18Minecraft: 26.2fabric
Скачать
Что нового
### Added - Gradle 9.7.1. - Qodana static analysis as a manual scan. - Added per-browser file-dialog authorization policies. - Added routed support for the File System Access API's `showDirectoryPicker()` method. ### Changed - Reworked `packages/` and `debug-client/` structure to deduplicate shared code. - Directory-picker routing now works without exposing the public JavaScript bridge and fails closed when unavailable. - Folder selections are validated before they are returned to Chromium. ### Fixed - Fixed a bug where `window.showDirectoryPicker()` method would let you select files instead of folders.
release

Graphene 2.1.0

2.1.0
23 июл. 2026 г.94Minecraft: 26.2fabric
Скачать
Что нового
### Added - Added Fabric support for Minecraft 26.2. - Added Minecraft-version-specific Maven artifacts for all supported versions. - Added structured release notes through this changelog. - Added external SonarQube analysis configuration. - Added a helper script for archiving released changelog entries. ### Changed - Changed runtime JAR names to `graphene-<version>-<loader>-<minecraft-version>.jar`. - Improved SonarQube coverage and duplication reporting. - Centralized shared dependency and plugin versions in the Gradle version catalog. - Simplified release notes to curated changes and a full GitHub comparison. - Made publication targets sequential while keeping draft releases GitHub-only. - Added promotion of an existing draft after the remaining publication targets succeed.
release

Graphene 2.1.0

2.1.0
23 июл. 2026 г.128Minecraft: 1.21.11fabric
Скачать
Что нового
### Added - Added Fabric support for Minecraft 26.2. - Added Minecraft-version-specific Maven artifacts for all supported versions. - Added structured release notes through this changelog. - Added external SonarQube analysis configuration. - Added a helper script for archiving released changelog entries. ### Changed - Changed runtime JAR names to `graphene-<version>-<loader>-<minecraft-version>.jar`. - Improved SonarQube coverage and duplication reporting. - Centralized shared dependency and plugin versions in the Gradle version catalog. - Simplified release notes to curated changes and a full GitHub comparison. - Made publication targets sequential while keeping draft releases GitHub-only. - Added promotion of an existing draft after the remaining publication targets succeed.