Public In-Game Hosting

Host Real Websites Directly from Minecraft

Run web servers, dashboards, and live REST APIs on in-game ComputerCraft machines. CCHub tunnels requests from the real internet directly to your computer block in Minecraft.

1 Registered Sites
0 Live in Minecraft Now
100% Chunk & Crash Resilient

How It Works

1

Visitor Requests Your URL

A user anywhere in the world visits https://cc.jeremyleonklink.de/web/my-base in Chrome, Firefox, or Safari.

→
2

CCHub Gateway Routes Request

CCHub checks your site status and immediately sends the HTTP request over the connection tunnel to Minecraft.

→
3

ComputerCraft Serves Content

Your in-game computer block handles the request, queries peripherals or reads in-game files, and responds back!

Installation & Code Examples

Step 1: Install the Client Package in ComputerCraft

You can install the package via hpm or download the standalone file via wget:

hpm install cchub-web

or with plain Lua wget:

wget https://cc.jeremyleonklink.de/cchub-web.lua cchub-web.lua

Step 2: Create Your In-Game Web Server

// main.hjs - Host a website from ComputerCraft!
const { createServer } = require("cchub-web");

const app = createServer({
    site: "my-site",
    token: "YOUR_SECRET_TOKEN"
});

// Serve HTML homepage
app.get("/", (req, res) => {
    res.html(`
        <!DOCTYPE html>
        <html>
        <head><title>My Base in Minecraft</title></head>
        <body style="font-family:sans-serif; background:#111; color:#eee; padding:2rem;">
            <h1>⚡ Live Minecraft Base Server</h1>
            <p>This website is being served directly by a ComputerCraft computer!</p>
            <p>In-game time: ${os.time()} | Fuel: ${turtle ? turtle.getFuelLevel() : 'N/A'}</p>
        </body>
        </html>
    `);
});

// Serve dynamic JSON API
app.get("/api/status", (req, res) => {
    res.json({
        status: "online",
        time: os.time(),
        day: os.day()
    });
});

// Serve static files from /www folder on your computer
app.static("/www");

app.listen((url) => {
    console.log("Website live at: " + url);
});

Step 3: Run It!

Run your script in ComputerCraft. Your website or API is instantly reachable worldwide under:

https://cc.jeremyleonklink.de/web/my-site