Live Stream
Select loader & version, then search.
import os, asyncio, collections, shutil, urllib.request, json, time from fastapi import FastAPI, WebSocket, Form, UploadFile, File, HTTPException from fastapi.responses import HTMLResponse, Response from fastapi.middleware.cors import CORSMiddleware import uvicorn # --- CONFIG --- app = FastAPI() app.add_middleware(CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"]) BASE_DIR = os.environ.get("SERVER_DIR", os.path.abspath("/app")) PLUGINS_DIR = os.path.join(BASE_DIR, "plugins") mc_process = None output_history = collections.deque(maxlen=300) connected_clients = set() # --- HTML GUI --- HTML_CONTENT = """