Brapi
by BulbaSprout
Brapi is a Fabric library for drawing user interfaces, with rounded rectangles, gradients, textures, text and sprite slicing exposed through one simple API.
What it does
Brapi is a UI rendering library for Fabric mods. Layered above Minecraft's built-in rendering pipeline, the library lets developers draw circles, outlines and rounded rectangles, including rectangles whose corners differ in size, through one call per shape. Text, gradients, textures and 9-slice sprites are supported too, aimed at developers who want smoother visuals without building their own shader setup.
Heavy graphics libraries such as Skia are large and take effort to set up the first time. Brapi is meant as a lighter alternative for interface work. Developers do not have to write their own shaders or manage draw calls and flush steps, since the library works out the draw order so layered interface elements render in the right sequence.
Brapi requires Fabric API and is published for 1.21.11 only, released under the GNU Lesser General Public License v3.0 only, and is open source. The source code and issue tracker are public. It runs on the client alone, so it is only needed on the client side.
Key features
Rounded shapes
Circles, outlines and rounded rectangles can be drawn in one line, including rectangles whose corners have different sizes.
Automatic batching and layering
The library chooses the draw order of layered elements, so an interface keeps its intended appearance without manual ordering.
Colors in ARGB
Colors use the ARGB format, so opaque red and semi-transparent red are written as two separate hexadecimal values.
GUI scale coordinates
Positions and sizes are expressed in GUI scale units, so layouts keep their proportions when the scale changes.
Anchor positions
Elements can be placed relative to the left, right, top or bottom edges, and to the corners where those edges meet.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Custom interface panels
A mod with its own screens can draw rounded panels, buttons and labels without writing a rendering pipeline.
Sprite-based menus
9-slice sprites let a menu border stretch to any size while its corners keep their shape.
Who it’s for: Brapi is for mod developers who want more visual options than Minecraft's basic drawing tools provide. Players gain nothing from it directly, since it adds no items or blocks of its own.
Questions
Does Brapi need Fabric API?
Does Brapi have to be installed on the server?
Which game version does Brapi support?
In the catalog
Brapi is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 19,862 mods support Minecraft 1.21.11.
Similar mods
What the author says
A UI rendering library for Fabric mods. Supports rounded rectangles, text, gradients, textures, and 9-slice sprites with a simple API. With future support for SVG rasterizer, shadows, more text options, toggleable immediate mode rendering and lines. 🎨 All colors are ARGB: 0xFFFF0000 = opaque red, 0x80FF0000 = 50%…
Official listing
- Modrinth page
- modrinth.com/mod/brapi
- Owner
- BulbaSprout
- Published
- 2026-05-15
- Updated on Modrinth
- 2026-08-11
- Facts verified
- 2026-10-15
