← projects

textures.gg

A site for finding and installing Melee texture mods. The previews render the real game models in your browser with Rust compiled to WASM.

downloads a day
~180
model previews
Rust → WASM
64×64 · 256 blocks · 2,048 bytes
stage
shipped
area
melee
stack
Cloudflare Workers, D1, R2, React, Rust/WASM
live
textures.gg ↗
source
texturesgg/site ↗

textures.gg is a catalog of Melee skins. You find one you like, check it out on the actual model, and install it.

The previews were the hard part. The site parses GameCube DAT files and renders them in the browser with Rust compiled to WASM, so what you see is the real model with the real texture, not a screenshot.

A lot of Melee's textures are stored as CMPR, which is basically the GameCube's version of DXT1. Every 4x4 block of pixels gets two colors, plus two more blended between them. The piece above is a tiny CMPR encoder running live in your browser. The real one is the gx-texture crate.

It all runs on Cloudflare Workers, with D1 for the catalog and R2 for the files. Everything is open source: the site is texturesgg/site, and the Rust is texturesgg/texturesgg. Most of those crates are on crates.io too.