Skip to content

CourierAPI

CourierAPI is a Fabric mod library that lets any mod send animated HUD notification cards to players — via the Java API, JSON files, or in-game commands. Supports server-to-client broadcasting and client-side local display.

Fabric
Loaders
Fabric
Downloads on Modrinth
233
Followers on Modrinth
1
versions
4
Updated
April 25, 2026Apr 25
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself
Notifications on Screen · swipe

At a glance

A library: other mods need it
Runs on Fabric
For Minecraft 1.21.11–26.1.2
Needed in the game; optional on the server
Latest version — 26.1.2-0.1 from April 25, 2026
License MIT — free
Where it's needed
In gamerequiredOn serveroptional

Needed in the game; optional on the server

Game versions1.21.11–26.1.2

CourierAPI Logo.

CourierAPI is a Fabric mod library that lets any mod send animated HUD notification cards to players — via the Java API, JSON files, or in-game commands. Supports server-to-client broadcasting and client-side local display.


Features

  • Animated slide-in / slide-out cards in the top-right corner of the HUD
  • Fully customizable colors — title, description, background, and border accent (ARGB)
  • Configurable display duration per notification
  • Up to 4 notifications visible at once; extras queue automatically
  • Description wraps to a second line when text is too long
  • Server → Client — send notifications via Java API or JSON files, no coding required
  • Client-only — display notifications locally from another client mod without a server
  • Drop-in /courier command for operators
  • Auto-creates a sample couriernotifications.json on first server start

For Developers

Add to your gradle.properties:

courierapi_version=0.1

Then in build.gradle:

repositories {
    maven {
        name = "LunazStudios"
        url  = "https://maven.lunazstudios.com/releases"
    }
}

dependencies {
    modImplementation "com.lunazstudios:CourierAPI:${project.minecraft_version}-${project.courierapi_version}"
}

Full documentation and API usage examples are available on the GitHub repository.


Server API

Notification n = Notification.builder("Event Started!", "Head to the arena.")
        .durationSeconds(6)
        .borderColor(0xFFFF4444)
        .build();

CourierAPI.send(player, n);        // single player
CourierAPI.broadcast(server, n);   // all online players

Client API

// Client-side only — do not call on a dedicated server
CourierClientAPI.showLocal(n);

JSON — No Coding Required

Place couriernotifications.json in your server root to define reusable notifications:

{
  "restart_warning": {
    "title": "Server Restart",
    "description": "The server restarts in 5 minutes.",
    "duration": 8,
    "border_color": "#FF5555"
  }
}

Trigger them in-game with /courier send restart_warning, or drop entries into couriernotifications_queue.json to dispatch from external scripts or RCON — no restart needed.


Commands

CommandDescription
`/courier send `Broadcast a notification to all online players
/courier reloadReload couriernotifications.json from disk

Requires permission level 2 (operator).

FAQ

How to install CourierAPI?

Install Fabric for your Minecraft version, download CourierAPI for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does CourierAPI support?

CourierAPI has builds for Minecraft 1.21.11–26.1.2.

Is CourierAPI needed on the server?

Needed in the game; optional on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More