CourierAPI

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.

by
82 Downloads
fabriclibraryutility
Rent Server with this Mod

Screenshots

Notifications on Screen
Notifications Animation

About this Mod

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

Command Description
/courier send <id> Broadcast a notification to all online players
/courier reload Reload couriernotifications.json from disk

Requires permission level 2 (operator).

Available Versions

CourierAPI 26.1.2-0.1release
MC 26.1.2fabric
April 25, 2026
CourierAPI 26.1.1-0.1release
MC 26.1.1fabric
April 25, 2026
CourierAPI 26.1-0.1release
MC 26.1fabric
April 25, 2026
CourierAPI 1.21.11-0.1release
MC 1.21.11fabric
April 25, 2026

How to Install CourierAPI on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).

3

Install Mod

Open the mod browser in the dashboard and search for "CourierAPI". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

26.1.2, 26.1.1, 26.1 (+1 more)

Server-side

~ Optional

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

CourierAPI server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.

Is CourierAPI compatible with fabric?

CourierAPI officially supports fabric for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with CourierAPI – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CourierAPI consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install CourierAPI with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Optional

Supported Versions

26.1.226.1.126.11.21.11