Tango Web API

Tango Web API

An API to bundle Webservers and Webinterfaces for your Mods

by
428 Downloads
fabricneoforgelibraryutility
Rent Server with this Mod

About this Mod

TangoWebAPI

A single shared webserver mod for Fabric/NeoForge that removes boilerplate for other mods. TangoWebAPI provides one embedded HTTP server that mods can use to expose their own endpoints or static assets.

Features

  • Shared HTTP server (Java HTTP) for all mods, start/stop in common code.
  • Simple API for routes: get/post/registerRoute with mod namespace (/modid/...).
  • Static file serving per mod (serveStatic with safe path handling).
  • Built-in health/info/route listing: /tango-webapi/health, /tango-webapi/info, /tango-webapi/routes.
  • Configuration via file (config/tango-webapi.properties) or env/system props.
  • Error pages (404/405/503) with simple HTML templates.

Configuration

File: config/tango-webapi.properties

host=0.0.0.0
port=8080
maxRequestBytes=1000000

Or via env/system properties:

  • TANGO_WEBAPI_HOST / tango.webapi.host
  • TANGO_WEBAPI_PORT / tango.webapi.port
  • TANGO_WEBAPI_MAX_BYTES / tango.webapi.max_bytes

API for other mods (examples)

// Simple text route at /mymod/ping
TangoWebAPI.get("mymod", "/ping", ctx -> ctx.sendText(200, "pong"));

// JSON response
TangoWebAPI.post("mymod", "/data", ctx -> ctx.sendJson(200, "{\"ok\":true}"));

// Static assets from config/mymod/static under /mymod/static/**
TangoWebAPI.serveStatic("mymod", "static", Path.of("config", "mymod", "static"));

Built-in endpoints

  • GET /tango-webapi/health – status
  • GET /tango-webapi/info – host/port/max-bytes
  • GET /tango-webapi/routes – all registered routes incl. prefix routes

Testing

  • After game start: http://localhost:8080/tango-webapi/health / info / routes
  • Register your own route and hit it via browser/curl.
  • Serve a static page under your mod path and verify it loads.

Available Versions

Tango Web API 1.0.0release
MC 1.21.8neoforge
January 16, 2026
Tango Web API 1.0.0release
MC 1.21.8fabric
January 16, 2026
Tango Web API 1.0.0release
MC 1.21.10, 1.21.11neoforge
December 17, 2025
Tango Web API 1.0.0release
MC 1.21.10, 1.21.11fabric
December 17, 2025

How to Install Tango Web API 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 (1.21.11).

3

Install Mod

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

Compatibility

Mod Loaders

fabricneoforge

Minecraft Versions

1.21.11, 1.21.10, 1.21.8

Server-side

~ Optional

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Tango Web API 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 (1.21.11). You can switch loaders with one click in the panel.

Is Tango Web API compatible with fabric and neoforge?

Tango Web API officially supports fabric, neoforge for Minecraft 1.21.11, 1.21.10, 1.21.8. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Tango Web API – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Tango Web API 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 Tango Web API 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

1.21.111.21.101.21.8