Skip to content

Tango Web API

An API to bundle Webservers and Webinterfaces for your Mods

FabricNeoForge
Loaders
FabricNeoForge
Downloads on Modrinth
709
Followers on Modrinth
1
versions
4
Updated
January 16, 2026Jan 16
Published
in 2025
This is a library — other mods need it, and it adds nothing to the game by itself

At a glance

A library: other mods need it
Runs on Fabric and NeoForge
For Minecraft 1.21.8, 1.21.10–1.21.11
Works on either side — install it in the game, on the server, or both
Latest version — 1.0.0 from January 16, 2026
License MIT — free
Where it's needed
In gameoptionalOn serveroptional

Works both in the game and on the server — install where you need it

Game versions1.21.8, 1.21.10–1.21.11

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.

FAQ

How to install Tango Web API?

Install Fabric for your Minecraft version, download Tango Web API 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 Tango Web API support?

Tango Web API has builds for Minecraft 1.21.8, 1.21.10–1.21.11.

Is Tango Web API needed on the server?

Works on either side — install it in the game, on the server, or both

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