Wargrid Platform Reference
This page lists the current Wargrid platform pieces that are implemented in the new stack.
Applications
apps/site: marketing and legal surface forwargrid.appapps/play: SvelteKit play client and PWA shell forplay.wargrid.appapps/admin: admin and moderation surface foradmin.wargrid.appapps/api: Elysia API for metadata, content, queue presets, liveops bootstrap, and testing metadataapps/multiplayer: Colyseus server baselineapps/docs: Docusaurus documentationapps/blog: Astro blogapps/studio: local content and balancing studio
Shared packages
@wargrid/contracts@wargrid/auth@wargrid/db@wargrid/mail@wargrid/telemetry@wargrid/game-content@wargrid/game-rules@wargrid/game-sim@wargrid/matchmaking-social@wargrid/testing-tools@wargrid/design-system@wargrid/i18n
Implemented API routes
GET /api/healthGET /api/metaGET /api/content/catalogGET /api/matchmaking/queues- returns
maps.shortandmaps.longas{ layout, analysis } layoutcarries width, height, lanes, overlap cells, and build zonesanalysiscarries path/build counts plus per-lane small and large route lengths
- returns
GET /api/player/bootstrapGET /api/player/decksPOST /api/player/decks/importPOST /api/player/decks/defaultGET /api/player/socialPOST /api/player/social/actionsGET /api/player/lobbiesPOST /api/player/lobbiesGET /api/admin/bootstrapGET /api/liveops/admin-bootstrapGET /api/testing/legacy-toolsALL /api/auth/playerALL /api/auth/admin
Current queue presets
casual-shortcasual-longranked-shortranked-longcustom-hosted
Current validation commands
Run the standard checks:
bun run typecheck
bun run lint
bun run test
bun run storybook:build
bun run docs:build
bun run blog:build
Storybook
- Storybook is hosted from
apps/play/.storybook. - Reusable UI components live in
packages/design-system. - Current stories live in
packages/design-system/src/components/*.stories.ts.
Player meta state
apps/api/src/player-state.tsowns the mutable fixture-backed deck, social, and lobby state used by the current play shell.apps/play/src/lib/player-platform.tsis the typed client for those routes.apps/play/src/routes/+page.sveltenow validates bootstrap, auth, deck import/default selection, social actions, and lobby creation against the same shared contracts.
Grid and map tooling
@wargrid/contractsnow exposes shared schemas forGridPoint,BuildZone,PathLane,MapLayout, andMapLayoutAnalysis.@wargrid/game-simnow owns:- seeded short and long map generation
- overlap resolution
- build-zone generation that stays off the lane corridor
- small and large unit route checks
- structure placement validation for tower and trap cells
- matrix generation for app previews and local tooling
apps/studionow renders the same board matrix and lane analysis that the API exposes.apps/play/src/lib/GridPreview.sveltenow renders lane corridor cells from the shared simulation package instead of reconstructing wide rectangles locally.
Run vendor doc sync:
bun run vendor-docs:sync
Legacy validation bridge
The current testing package still points to the legacy tool roots:
tools/cdptools/image-tools
Use the generated command helpers in @wargrid/testing-tools when building AI validation flows.