ModsFinder

HtmlCraft API

by Yifei061004

HtmlCraft API lets developers build Minecraft screens by writing HTML and CSS instead of working with the GuiGraphics and Widget classes directly.

FabricForgeClient-side onlyGNU Lesser General Public License v2.1 onlyOpen source1.20.1 – 26.2

What it does

Rather than learning the Minecraft GUI classes such as AbstractContainerScreen, a developer describes an interface as HTML with CSS styling, and the library renders it inside a screen. A unified entry point offers a Builder pattern for creating HTML screens, and each chained call configures the HTML, CSS, data and events. An abstract base class extends the Minecraft Screen type, so custom screens can inherit the rendering behavior.

The library is a lightweight HTML and CSS rendering engine. Special characters are escaped into HTML entities, which guards against injection, and a thread-safe template variable context carries values into the markup. Elements with overflow-y set to scroll or auto respond to mouse wheel scrolling, moving 20 pixels per step, and click events report the clicked element and its coordinates.

HtmlCraft API runs on the client only, so the server does not need it, and players install it on the client side alone. It is published for Fabric and Forge, with files for 1.20.1, 26.1.2 and 26.2. The project is open source under the GNU Lesser General Public License v2.1 only, and its source code is public.

Key features

  1. HTML and CSS interfaces

    Screens are described with HTML markup and CSS styling, so web frontend techniques apply to Minecraft menus.

  2. Builder-based screen creation

    A chained Builder configures the markup, styles, data and event handlers of an HTML screen in one expression.

  3. Element ids and click events

    Elements can be addressed by their id attribute, and each click event reports the clicked element and its coordinates.

  4. Scrolling overflow areas

    Containers with overflow-y set to scroll or auto respond to the mouse wheel, moving 20 pixels per step.

  5. Escaped text output

    Special characters are converted to HTML entities automatically, which prevents injected markup in displayed text.

Compatibility

Latest build for each game version and loader.

26.21.0.0-26.2fabricNot available
26.1.21.0.0-26.1.2fabricNot available
1.20.11.0.0-1.20.1fabric1.0.0-1.20.1Forge
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

How it compares

Full comparison

ApricityUI is another library for HTML-style interfaces, open source under the GNU Lesser General Public License v2.1 only, and it supports Fabric, Forge and NeoForge for 1.18.2 – 26.1.2, with the client required and the server optional. UltralightFabric is a Fabric-only option for 1.18.1 under the GNU Lesser General Public License v3.0 only, and it is client-side only. Scarpet additions is a Fabric server mod for 1.19 – 26.3 under the MIT License, so it is not a rendering library for screens.

ModLoadersGame versionsEnvironmentUpdated
HtmlCraft APIFabric and Forge1.20.1 – 26.2Client-side only2026-08-14
ApricityUIFabric, Forge and NeoForge1.18.2 – 26.1.2Client required, server optional2026-10-05
UltralightFabricFabric1.18.1Client-side only2021-12-31
Scarpet additionsFabric1.19 – 26.3Server-side only2026-04-08

Questions

Does HtmlCraft API need to be installed on the server?

No. Only the player's game needs it, and servers run without it.

Which loaders does HtmlCraft API support?

It is published for Fabric and Forge. The latest Fabric file is 1.0.0-26.2fabric for 26.2, and the latest Forge file is 1.0.0-1.20.1Forge for 1.20.1.

Can the library be used for a version other than 26.2?

Files exist for 1.20.1, 26.1.2 and 26.2, so a build for the chosen version must be installed alongside the matching game version.

In the catalog

HtmlCraft API is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,894 mods support Minecraft 26.2.

More from Yifei061004

All projects

Similar mods

What the author says

HtmlCraft API is a lightweight HTML/CSS rendering engine that brings web frontend technologies into Minecraft GUI development. Instead of learning the complex Minecraft GUI API (GuiGraphics, Widget, AbstractContainerScreen, etc.), developers can build beautiful game interfaces by simply writing HTML + CSS. Place…
Yifei061004, on the Modrinth page

Official listing

Owner
Yifei061004
Published
2026-08-13
Updated on Modrinth
2026-08-14
Facts verified
2026-10-15

Tags