Skip to content

TheusHen/Mineflared

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🟩 Mineflared – Minecraft P2P Hosting CLI

License: MIT npm version Build

Note

Understand these bugs:

  • FIXED: Security for creating Minecraft-only servers and prevention of scam sites implemented.

  • FIXED: The DNS configuration for Cloudflare is incorrect and needs to be fixed.

Notes: Proxy protection for Bedrock servers will not be possible due to UDP/IP, and Java needs to be updated to support connecting to the default Minecraft port.


Host Minecraft servers with a few commands. No VPS, no static IP – Cloudflare protected.


🚀 Features

  • ⚡ Instant setup in seconds
  • 🛡️ DDoS protection via Cloudflare
  • 🔒 Security validation to prevent non-Minecraft content
  • 🌐 Dynamic DNS with custom subdomain
  • 📈 Real-time monitoring
  • 🔄 Auto-restart on crash

📦 Installation

npm install -g mineflared

Or via PowerShell:

iex (iwr -Uri "https://mineflared.theushen.me/install.ps1").Content

🔐 Authentication

Log in with GitHub:

mineflared login

🛠️ Usage

mineflared create           # Create new Java/Bedrock server
mineflared start <name>     # Start an existing server
mineflared status           # Show current server status
mineflared list             # List all your servers
mineflared config <name>    # Open server.properties editor in browser
mineflared backup <name>    # Create .zip or .rar backup
mineflared restore          # Restore from backup
mineflared language         # Change CLI language

🔒 Security

Mineflared includes comprehensive security validation to ensure only legitimate Minecraft servers are hosted:

🛡️ Server Validation

  • URL Verification: Only allows downloads from official Minecraft sources (PaperMC, Mojang, Purpur, etc.)
  • Content Analysis: Validates JAR files contain Minecraft-specific classes and packages
  • File Scanning: Detects and blocks web content (HTML, PHP, JSP, CSS, JS files)
  • Directory Structure: Ensures proper Minecraft server structure for both Java and Bedrock

🚫 Blocked Content

  • Web applications and websites
  • Non-Minecraft server software
  • Mixed Java/Bedrock configurations
  • Suspicious file uploads

Legitimate Sources

  • api.papermc.io (PaperMC)
  • piston-data.mojang.com (Vanilla Minecraft)
  • api.purpurmc.org (Purpur)
  • maven.minecraftforge.net (Forge)
  • maven.fabricmc.net (Fabric)
  • minecraft.net (Bedrock)

🔒 Privacy & Data

Local (CLI): Stored at $HOME/.config/minecli/config.json:

  • GitHub username
  • Auth token (JWT)
  • Public IP
  • Language

Backend (API): Stored in MongoDB:

  • GitHub username & ID
  • JWT token
  • Last known IP
  • GitHub access token

Cloudflare: Used to update subdomain <username>.mineflared.theushen.me with IP.

✅ No passwords, emails, server files or telemetry are collected. ❌ No third-party data sharing (only GitHub & Cloudflare integrations).


🗑️ Data Deletion

Run mineflared delete to:

  • Remove your data from the database
  • Delete your Cloudflare subdomain

This action is irreversible.


📄 License

MIT License


📚 Links

About

A Minecraft local server with Cloudflare

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

Contributors 3

  •  
  •  
  •