Skip to content

Phira-mp +

Phira-mp + 是基於 phira-mp 擴充的 Phira 多人遊戲伺服端,提供 WASM 插件、管理控制臺、HTTP API 與監控資料流。

核心特性

  • WASM 插件系統 — 基於 wasmtime 動態載入,透過 phira:host/api 存取全部伺服端能力
  • TUI 管理控制臺 — 基於 ratatui + crossterm 的終端介面,支援命令輸入、日誌即時顯示
  • 內建功能 — 房間資訊 Web API、黑名單管理、輪次資料持久化、速率限制等均整合在核心中

技術棧

技術用途
Rust主要開發語言(2021 Edition)
Tokio非同步執行時期
ratatui + crosstermTUI 終端介面
ClapCLI 參數解析
AxumHTTP/SSE 伺服器
wasmtimeWASM 執行時期(可選)
fluent在地化 (i18n)
reqwestHTTP 客戶端
tracing日誌與診斷

快速開始

bash
# 安裝/更新 Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update stable

# 克隆倉庫
git clone https://github.com/HyperSynapseNetwork/Phira-mp-plus.git
cd Phira-mp-plus

# 構建(首次編譯約需 2-5 分鐘)
cargo build

# 啟動(debug 模式)
./target/debug/phira-mp-plus-server

# 指定設定檔
./target/debug/phira-mp-plus-server --config my_config.yml

文件

許可

AGPLv3


Last modified byFireflyF09on2026-06-26 16:11

Built with VitePress