40kdc-data
A community-authored Warhammer 40K data layer.
JSON Schemas for every game entity, plus an embedded dataset shipped
behind a linked, typed API in the @alpaca-software/40kdc-data
npm package and the wh40kdc Rust crate. Includes ListForge
and NewRecruit roster importers and exporters that mirror byte-for-byte
across both implementations.
The package is the load-bearing artifact; everything else on this page is documentation or a demo built on top of it.
Reference
Example toollets
Salvo
A 40k damage calculator. Pick a unit, a phase, the abilities you want to apply, and a target — see expected hits, wounds, saves, and models killed. Showcases the cruncher and abilities-resolver APIs.
Mission Matrix
Pick your Force Disposition and your opponent's to reveal the asymmetric primary-mission matchup for 11th-edition play. Showcases the linked dataset API — dispositions to matchups to missions to scoring cards.
Layout Editor
Author a terrain layout on a portrait board: drag pieces from the template catalog, rotate and flip them on-canvas, and let 180°-symmetric twinning mirror every placement across the board centre. Transcribe a reference card's edge measurements to back-solve a piece's centroid. Showcases the terrain resolver and the card-measurement solver; exports canonical terrain-layout JSON.