mccons/minegate — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a fast Go library for tunneling and proxying Minecraft Java Edition traffic. I want it to feel simple to use, with one clean API for listening, dialing, relaying, and swapping the connection type without rewriting everything.

It should support normal TCP, TLS, WebSocket, KCP over UDP, QUIC, and SOCKS5, so people can route Minecraft connections through different networks. Make the proxy path very efficient, with raw packet forwarding when possible, batching writes, flow control so memory doesn’t explode, and basic packet priority so keepalives don’t get stuck behind big chunk data.

Please include packages for Minecraft packet reading and writing, compression, encryption, connection management, tunnels, and proxy helpers like handshake handling and BungeeCord or Velocity forwarding. Add small examples showing a transparent TCP proxy, KCP, QUIC, WebSocket, SOCKS5, multiplexing, packet I/O, encryption, and compression. Keep the code clean, documented, and usable as a library, not just a demo.

Want more depth? Deep Reverse