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.
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
HTML and CSS interfaces
Screens are described with HTML markup and CSS styling, so web frontend techniques apply to Minecraft menus.
Builder-based screen creation
A chained Builder configures the markup, styles, data and event handlers of an HTML screen in one expression.
Element ids and click events
Elements can be addressed by their id attribute, and each click event reports the clicked element and its coordinates.
Scrolling overflow areas
Containers with overflow-y set to scroll or auto respond to the mouse wheel, moving 20 pixels per step.
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.
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
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.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| HtmlCraft API | Fabric and Forge | 1.20.1 – 26.2 | Client-side only | 2026-08-14 |
| ApricityUI | Fabric, Forge and NeoForge | 1.18.2 – 26.1.2 | Client required, server optional | 2026-10-05 |
| UltralightFabric | Fabric | 1.18.1 | Client-side only | 2021-12-31 |
| Scarpet additions | Fabric | 1.19 – 26.3 | Server-side only | 2026-04-08 |
Questions
Does HtmlCraft API need to be installed on the server?
Which loaders does HtmlCraft API support?
Can the library be used for a version other than 26.2?
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
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…
Official listing
- Modrinth page
- modrinth.com/mod/htmlcraft-api
- Owner
- Yifei061004
- Published
- 2026-08-13
- Updated on Modrinth
- 2026-08-14
- Facts verified
- 2026-10-15
