No description
Find a file
Vantz Stockwell 25083d5572 Defend against stale skill-tree JSON cache
A friend on Chrome hit "C.subtrees is not iterable" — Chrome was serving
the previous skill-tree JSON shape ({nodes, edges} at top level) out of
the disk cache while running the new bundle that expects {subtrees}.
Hard reload fixed his session but other users could hit the same.

Three layers of defense:
1. backend/data.controller.ts: Cache-Control switches from
   'public, max-age=3600' to 'no-cache, must-revalidate' so the browser
   always revalidates JSON files against the server.
2. frontend/data.ts: every data fetch gets ?v=2 + cache:'no-cache' to
   bust any existing browser/CDN entry.
3. frontend/data.ts loadSkillTree(): if the response still has the legacy
   shape (no subtrees, but nodes array), wrap it in a single anonymous
   subtree so the UI doesn't crash on iteration.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 08:33:30 -04:00
character-builder Defend against stale skill-tree JSON cache 2026-05-23 08:33:30 -04:00
specialization-calculator Add Dune Awakening character builder + initial project scaffolding 2026-05-23 07:30:37 -04:00
.gitignore Add Dune Awakening character builder + initial project scaffolding 2026-05-23 07:30:37 -04:00
README.md Add Dune Awakening character builder + initial project scaffolding 2026-05-23 07:30:37 -04:00

dune-tools

Fan-made tooling for Dune Awakening.

Projects

  • character-builder/ — Vue 3 + NestJS + Valkey app to plan a character (house, class, character XP, 5 specialization tracks, faction standing, skill trees). Shareable via short link. Runs as two Docker containers.
  • specialization-calculator/ — single-file HTML calculator for spec-track XP / quests / days.

Source data

The character builder is built from saved HTML snapshots of dune.gaming.tools that live in sample-data/. That directory is gitignored (~19 MB of raw HTML).

To regenerate character-builder/data/*.json:

  1. Save the relevant pages (right-click → "Save Page As → Web Page Complete") into sample-data/.
  2. From character-builder/, run uv run python3 scripts/extract.py.

The runtime JSON (character-builder/data/*.json) is committed so the app builds without the raw HTML.

Disclaimer

Unofficial fan project. Not affiliated with Funcom or any rights holder.