TypeScript template for Sandustry mods (Steam [mods] beta). Full docs: docs site.
Need Node 24 and Sandustry with the [mods] beta.
git clone https://github.com/IrishBruse/SandustryModTemplate.git
cd SandustryModTemplate
npm install
npm run setup
npm run devThen F5 in VS Code (or npm run sandustry). In game, look for Template loaded. Alt+E opens the overlay sample.
More: Quick start · Troubleshooting
npm run setup— Check install, extractapp.asar(exceptnode_modules/) tosandustry/<version>-<branch>/, linkdist/andlogs/npm run sandustry— Stop and launch the game (no build)
npm run dev— Watch allsrc/mods; remove owned mods when the watch stopsnpm run dev:release— Same watch asdev, without debug helpers, sourcemaps, ordev-tools. Use to test mods before upload to workshop.npm run dev:pick— Same asdev, with a TTY picker firstnpm run examples— Watchexamples/mods (optional--mod <name>)
npm run build— Release allsrc/mods tobuild/<modinfo.id>/(Workshop staging)npm run publish— Runsnpm run build, then SteamCMD upload
npm run typecheck— TypeScript checknpm run test— Unit tests only (*.test.ts). No Chromium.npm run test:integration— Build mods, boot extracted dist in headless Chromium (CDP:9224), run*.integration.test.ts. Optional mod folder (nr test:integration template) or--examples. Usenpm run test:integration:viewfor a visible window (nr test:integration:view collector-element).npm run lint— Typecheck, oxlint, and format checknpm run lint:fix— oxlint--fixand oxfmt
npm run docs— Serve Docsify ondocs/npm run ui:css— Compile Tailwind for UI preview canvasesnpm run ui:previews— Generate UI preview PNGs