A pure Rust library for reading StarCraft 1 replay files. Supports all versions.
This project is organized as a Cargo workspace containing:
- broodrep - The core library for parsing StarCraft replay files
- broodrep-cli - A command-line interface for the library
- broodrep-wasm - WebAssembly bindings for browser and Node.js usage
Use broodrep in web browsers and Node.js with the WebAssembly bindings:
import init, { parseReplay } from '@shieldbattery/broodrep';
await init(); // Initialize WASM module
const replayData = new Uint8Array(/* your replay file bytes */);
const replayInfo = parseReplay(replayData);
console.log('Game:', replayInfo.gameTitle);
console.log('Map:', replayInfo.mapName);
console.log('Players:', replayInfo.activePlayers);See broodrep-wasm for complete documentation and examples.
Test data is stored in Git LFS. If you haven't used Git LFS before, run:
git lfs install
- broodmap - a pure Rust implementation of StarCraft 1 map parsing
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.