Tags
Creators
Details
Licensed MIT
Published 7 months ago
Updated 34 minutes ago
All versions
1.0.0+mc1.21.11
Release
WebGUI 1.0.0+mc1.21.117 months ago 61
Compatibility
Minecraft: Java Edition
1.21.5–1.21.11
Platform
Fabric
Supported environments
Server-side
Client and server
Changes
[1.0.0] — 2026-05-07
Added
Core
- Full-screen GUI mode: replaces the Minecraft screen with any web page (React, Vue, plain HTML)
- Transparent HUD overlay mode: renders a web page over the game world without blocking gameplay
- Chromium rendering via MCEF — full CSS3, ES2023, WebSockets, WebGL
Server → client
/webgui gui <targets> <url>— opens a full-screen GUI for one or more players (requireswebgui.command.gui, op level 2)/webgui hud <targets> <url>— opens a HUD overlay (requireswebgui.command.hud, op level 2)- Auto-HUD on join: configurable via
config/webgui/server.json(autoHudOnJoin,autoHudUrl) - Main menu URL: server sends a URL that players open on demand via F6
- Signed token auth: HMAC-SHA256 tokens appended to URLs automatically when
enableTokens: true
Client keybinds
- F6 — open/close main menu page
- ` (backtick) — toggle interactive HUD mode (unlocks cursor, routes clicks and scroll to CEF)
JavaScript bridge
window.webgui.client— live player data pushed at 20 TPS:playerUuid,username,webviewMode,dimension,pos,serverwebgui:clientCustomEvent — subscribe withaddEventListener('webgui:client', e => ...)window.webgui.postToGame(payload)— send JSON from the page to the gamewindow.webgui.closeGui()— close the active GUI or HUD from the page- Built-in channels:
close,log(withlevelfield)
React library
@webgui/reactnpm package —useWebGUIClient()hook, no Provider required
Configuration (config/webgui/server.json)
enableTokens,tokenTtlSeconds,queryParamName,tokenSecretBase64autoHudOnJoin,autoHudUrl,mainMenuUrl,updateCheckUrl
Public API (land.webgui.api.WebviewApi)
openGui(player, url),openHud(player, url),sendMainMenuUrl(player, url)for use by other mods (call from server thread)
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:tDw1xQja:xNag66AK"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:tDw1xQja:xNag66AK"
}

