Mod
Tango Web API
No reviews yet
An API to bundle Webservers and Webinterfaces for your Mods
Provides a framework or library for other mods to use.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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/registerRoutewith mod namespace (/modid/...). - Static file serving per mod (
serveStaticwith 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.hostTANGO_WEBAPI_PORT/tango.webapi.portTANGO_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– statusGET /tango-webapi/info– host/port/max-bytesGET /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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources