WebMC (codename WebCraft) is a free, source-available browser client for Minecraft: Java Edition 26.3 (protocol 777). You join real Java Edition multiplayer servers from Firefox or Chrome, with no Java client installed.
It is written from scratch in TypeScript and renders with WebGL2. A tiny local bridge relays the game connection, because browsers cannot open raw TCP sockets.
browser (WebGL2 client) ──WebSocket──▶ local bridge (Node.js) ──TCP──▶ any Java Edition 26.3 server
WebMC is an unofficial fan project. It is not affiliated with or endorsed by Mojang Studios or Microsoft. It contains no Mojang code or assets: textures are copied from your own copy of the game on first start.
- Real multiplayer: joins vanilla, Paper and Velocity-proxied servers running 26.3 (protocol 777), including the transfer packet hosting proxies use. The server stays authoritative.
- World rendering:
- chunk meshing in web workers;
- smooth lighting and ambient occlusion, with a client-side light engine for block changes;
- biome-tinted grass, foliage and water;
- animated textures;
- sorted translucent water, ice and glass;
- block models for torches, chests, pistons, redstone, candles, campfires, portals and more.
- Mobs and entities: box models for players, animals, monsters, villagers (with professions) and more, plus paintings, item frames, leads, dropped items, XP orbs, projectiles and particles. Player skins come from the server when it sends them.
- Gameplay:
- Movement and physics: walking, sprinting, sneaking, swimming, crawling, flying, elytra gliding, ladders, and slime, ice and honey surfaces.
- Effects: levitation, slow falling and jump boost.
- Actions: block breaking and placing, combat, eating.
- Screens:
- inventory and every container (chests, furnaces, crafting, brewing, anvils and more);
- drag-splitting stacks;
- villager trading;
- chat with translations;
- name tags, tooltips, durability bars;
- the game's own bitmap font.
- Performance:
- occlusion (cave) culling;
- entity culling;
- fixed-size GPU geometry pages;
- batched entity drawing;
- worker meshing sized to your CPU;
- a render-scale option.
- Built-in FPS telemetry helps diagnose lag.
The STATUS.md changelog records what is implemented, how each part was verified, and what is still missing.
- Node.js 20 or newer.
- Minecraft: Java Edition 26.3, installed through the official launcher. WebMC copies the textures out of your own
26.3.jar; start 26.3 once in the launcher so the file is downloaded. - A browser with WebGL2 (current Firefox, Chrome or Edge).
- A server running 26.3 in offline mode, or behind a proxy that accepts offline players. Microsoft-account login is not implemented.
- Download this repository (Code → Download ZIP, or
git clone https://github.com/alynspecter/WebMC.git). - Double-click
start-webcraft.bat. On the first run it:- installs dependencies (
npm install); - creates
bridge.config.jsonfrombridge.config.example.json; - imports the textures from
%APPDATA%\.minecraft\versions\26.3\26.3.jar(it asks for the path if your JAR is elsewhere); - starts the bridge and the client, and opens the browser with everything filled in.
- installs dependencies (
- Add your server to
"allowedTargets"inbridge.config.json, e.g."play.example.net:25565", then restart the bridge. The bridge only connects to servers on this list. - In the browser, enter the server address and a username, then click Connect.
git clone https://github.com/alynspecter/WebMC.git
cd WebMC
npm install
cp bridge.config.example.json bridge.config.json # then add your server to "allowedTargets"
npm run import-assets # once: copies textures from your 26.3.jar
npm run bridge # terminal 1: the local bridge (ws://127.0.0.1:8787)
npm run dev # terminal 2: the client, open http://127.0.0.1:5173Open the URL the bridge prints (http://127.0.0.1:5173/#bridge=...&token=...) to have the bridge address and token filled in.
WebMC ships no Mojang files. npm run import-assets reads your own 26.3.jar and copies:
| From your JAR | To (git-ignored) | Used for |
|---|---|---|
assets/minecraft/textures/ |
assets/textures/ |
Blocks, items, mobs, GUI, font, particles |
data/minecraft/ |
assets/data/ |
Developer tools only |
| Mob model geometry (built in the game's code) | assets/models/entity_layers.json |
Mob, boat and minecart models |
It looks for the JAR in this order:
npm run import-assets -- --jar "path/to/26.3.jar"(the bridge accepts--jartoo);"minecraftJar": "path/to/26.3.jar"inbridge.config.json;- the
WEBCRAFT_MINECRAFT_JARenvironment variable; - the launcher's default location:
- Windows:
%APPDATA%\.minecraft\versions\26.3\26.3.jar - macOS:
~/Library/Application Support/minecraft/versions/26.3/26.3.jar - Linux:
~/.minecraft/versions/26.3/26.3.jar
- Windows:
Other options:
--force: re-imports even if assets are already there.--check: only reports whether they are.
Mob models aren't stored as files in the JAR: the game builds them in code. The importer reads that code from your JAR and runs it in a small built-in bytecode interpreter, which produces each model's parts, pivots and cubes exactly as the game defines them. Nothing from the JAR is decompiled or saved as code, and nothing is uploaded.
Without imported assets the client still runs, using generated placeholder textures.
These match the Java client:
| Key or mouse | Action |
|---|---|
| WASD | Move |
| Space | Jump (double-tap to fly in creative) |
| Shift | Sneak |
| Ctrl, or double-tap W | Sprint |
| Left mouse | Attack / break |
| Right mouse | Use / place |
| E | Inventory |
| Q | Drop (Ctrl+Q: whole stack) |
| 1–9 or the wheel | Hotbar |
| T | Chat |
| / | Command |
| F3 | Debug overlay (FPS, culling and geometry stats) |
| Esc | Pause / release the mouse |
- "Target ... is not in the bridge allowlist": add the server's
host:porttoallowedTargetsinbridge.config.jsonand restart the bridge. - Pink or speckled placeholder textures: the assets weren't imported. Run
npm run import-assets -- --jar "path/to/26.3.jar". - Disconnected while logging in: the server is probably in online mode. WebMC needs offline mode, or a proxy that allows offline players.
- Low FPS:
- lower the render distance or the Render scale on the connect screen;
- check the F3 overlay: it shows FPS, frame time, draw calls and culling.
The code is a set of npm workspaces in TypeScript:
| Package | What it does |
|---|---|
packages/protocol |
Protocol 777 packets, chunk, NBT, item and entity-data decoding |
packages/engine |
Blocks, models, meshing, lighting, physics, WebGL2 renderer, culling |
packages/session |
Game state from server packets: world, entities, inventory, containers, movement |
packages/bridge |
WebSocket↔TCP relay with a target allowlist; asset importer; skin proxy |
apps/client |
The browser app: input, HUD, screens, entity scene, particles |
The details are in docs/ARCHITECTURE.md.
npm test # unit tests (Vitest)
npm run typecheck # TypeScript
npm run build # production build of the clientSTATUS.md marks every feature with the level of evidence behind it:
- unit: covered by a test;
- fixture: checked against a local protocol fixture;
- live: confirmed on a real server.
Contributions are welcome! Read CONTRIBUTING.md first: it explains how to help, and grants contributors permission to change the code for contributions to this repository.
Open an issue with:
- what you did, what happened, and what you expected;
- your browser and OS;
- the server software and version, if you know them;
- an F3 screenshot, for visual bugs.
The bridge can record sessions for debugging ("captureDir" in bridge.config.json). Recordings grow by hundreds of MB per session and contain player names, chat and server addresses, so leave it off unless asked, and share captures privately, never in public issues.
WebMC is source-available under the PolyForm Strict License 1.0.0. You may download, run and play it for personal, non-commercial use.
You may not publish modified versions, re-upload it, sell it, or reuse its code in other projects. The one exception: CONTRIBUTING.md lets you change the code to contribute to this repository. There is one WebMC, and improvements go here.
WebMC's renderer and engine are independent implementations, but many ideas came from studying these open-source projects. No code was copied from them. Thank you to their authors:
- Sodium by CaffeineMC: section-graph occlusion (cave) culling, entity culling by visible sections, the chunk-builder thread count rule, and region-style geometry storage.
- Divine Voxel Engine by Divine Star Software: fixed-size GPU buffer pages instead of one growing buffer, and batched mesh uploads, a browser voxel engine's take on the same problem.
- ImmediatelyFast by RaphiMC: batching immediate-mode draws (entities, particles) into fewer uploads and draw calls.
- Lithium, FerriteCore and Starlight: studied for game-logic, memory and lighting optimizations.
- Mojang Studios, for Minecraft: Java Edition. Textures are loaded from each player's own game files.
- Built with TypeScript, Vite, Vitest and ws.
Can I play Minecraft Java Edition in a web browser? Yes, in multiplayer. WebMC connects to normal Java Edition 26.3 servers from Firefox or Chrome. You need Node.js to run the small local bridge, and your own copy of the game for the textures.
Is this Eaglercraft? No. WebMC is a separate project, written from scratch. It speaks the current Java Edition protocol (26.3 / 777) to ordinary servers and needs no special server plugin.
Does it work with online-mode (premium) servers? Not yet: Microsoft-account login is not implemented. It works with offline-mode servers and proxies that allow offline players.
Do I need to own Minecraft?
Yes. The textures come from your own 26.3.jar; WebMC does not distribute them.
Does it support singleplayer? No. WebMC is multiplayer-only. Run a local 26.3 server for a private world.
Keywords: Minecraft in browser, Minecraft Java Edition web client, play Minecraft Java in Firefox/Chrome, WebGL2 Minecraft client, TypeScript Minecraft client, Minecraft protocol 777, Minecraft 26.3 client, browser voxel renderer, WebSocket TCP bridge for Minecraft.