跳到正文

HungerBridge

作者:iFamished

A secure and lightweight HTTP bridge for Paper & Fabric

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

HungerBridge is a tiny, zero‑noise, multiloader HTTP bridge that lets external services communicate with your Minecraft server safely and efficiently. Designed for automation and engineered to stay completely out of your way.


What it does

  • Exposes a minimal HTTP API for remote automation
  • Supports Paper and Fabric with a shared common module
  • Provides run and log endpoints _(more coming soon!)_
  • Zero commands, zero chat output, zero clutter
  • Safe by default — shared secret authentication, no open RCON, no exposed internals

Why it exists

Traditional RCON is slow, fragile, and unsafe to expose publicly.
HungerBridge replaces it with a modern, stateless, authenticated HTTP layer that works identically across loaders.


Features

  • 🔌 Unified API across all loaders
  • 🧩 Python library
  • 🔐 Shared‑secret authentication
  • ⚡ Fast, lightweight, no tick overhead
  • 📝 Structured logging endpoint
  • 🏃 Command execution endpoint

Usage

HungerBridge is designed to be paired with HungerLib or any external client that can send authenticated HTTP requests.

Example integrations:

  • Automation scripts
  • Server orchestration
  • Custom dashboards
  • Server monitoring tools

HungerLib support

While HungerBridge can be used by any HTTP client, HungerLib is a Python library built for queries.

Installation

pip install hungerlib

Usage

from hungerlib import BridgeClient

# Create the client
bridge = BridgeClient(url="http://example.com:1913", token="YOUR_SECRET")

# Run a command
out = bridge.runCommand("say Hello from HungerBridge!", silent=False)
print("Command output:", out)

# Log something
bridge.log("Example script ran successfully", level="info")

# Get status
bridge.getStatus()

# Get version
bridge.getVersion()

Supported Platforms

| Platform | Supported | Version |
|———-|———–|———|
| Fabric | ✔ Yes | 1.21.10+|
| Quilt | ✔ Yes | 1.21.10+|
| Paper | ✔ Yes | 1.21.10+|
| Purpur | ✔ Yes | 1.21.10+|

Security Guide

HungerBridge is designed to be exposed safely when paired with Cloudflare.
This guide shows the minimal, recommended setup for securing your API over HTTPS.

Put HungerBridge Behind Cloudflare
Create a DNS record:

| Type | Name | Value | Proxy |
|:—-:|:—-:|:—————-:|:———————-:|
| A | api | | Proxied (orange cloud) |

This gives you:

  • HTTPS
  • DDoS protection
  • Firewall
  • IP masking

Your API will be available at:

常见问题

HungerBridge 支持哪些 Minecraft 版本?

HungerBridge 支持 Minecraft Java 版 1.21–26.2,共 16 个版本,可用的加载器:Fabric / Folia / Paper / Purpur / Quilt。下载时注意选择和你游戏版本一致的文件。

HungerBridge 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Folia / Paper / Purpur / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

iFamished 的其他作品

查看全部 →