A fictional college-football dynasty simulator: 120 D-I programs, hidden player ability, role-based depth charts, recruiting with real geography, scouting and development, coaching careers, weekly game-day play and permanent program history. It ships as a standalone web build and as an Electron desktop alpha.
Current version: 0.37.0 (see VERSION.txt). CHANGELOG.md has the
version-by-version record.
The game includes the One More Saturday experience pass: a compact weekly desk, factual postgame stopping points, quieter football presentation, personal history, and safe saved-state/re-entry feedback. See agent_docs/ONE_MORE_SATURDAY_PLAN.md for scope and agent_docs/latest_session_work.md for verified delivery status.
v0.17.0 makes coached and simulated games play the same way, keeps elite programs elite through recruiting, names players in the play-by-play, gives rosters realistic names, numbers and class years, and makes recruiting effort matter. v0.16.0 added permanent homegrown first-start entries in player profiles and school history, a three-stop first-Saturday introduction (with the full desk tour still available), a saved instruction for delegated medical decisions, and optional Coach big moments navigation. Preparation choices expose their selected state and point budget to assistive technology; the yearbook keeps keyboard focus inside and returns it when closed. See docs/DYNASTY_ENGAGEMENT_2026-11-08.md for scope and validation limits.
index.html and sw.js are generated by npm run build -- never hand-edit them, and commit both after a
version bump or a change under assets/.
| Path | Role |
|---|---|
app.js + app/*.js |
Engine and UI core, split into ordered parts (app/manifest.json) that the build splices back into one closure. Source of truth. |
*.js / *.css feature modules |
Feature extensions (recruiting, scouting, game-engine-v2, weekly coaching, presentation, guidance, etc.). tools/build.js injects them into app.js (engine extensions) or appends them after it (presentation modules) in a fixed, dependency-ordered list. A new module must be added to that list. |
schools-data.js |
The 120 fictional programs every new universe starts from (DynastySchools). |
mascots.js |
A nickname for each program, keyed by school id (DynastyMascots). |
crash-guard.js |
Loaded first: records uncaught errors on the device and shows the crash screen. |
phone-a11y.css |
Loaded last: the 44px control and 12px text floors at phone width. |
manifest.webmanifest, pwa.js, sw.js |
The installable, offline web build. sw.js is generated by npm run build from tools/sw-template.js. |
storage.js |
Browser IndexedDB archive persistence (DynastyStorage). |
body.html, styles.css |
Page markup and base stylesheet. |
portraits/ |
Frozen deterministic Portrait V1 renderer. |
assets/, team-colors.json |
Logos, helmets and program colors. |
desktop/ |
Electron shell (main.js, preload.js, storage.js); packaged with Electron Forge (forge.config.js). |
tests/ |
Node unit tests, browser (Playwright) tests, desktop tests. |
tools/ |
Build, publish, audit, long-run and release-guard scripts; harness.js runs the engine in Node behind a DOM shim. |
npm ci npm run build # generate index.html npm test # version check, smoke, and Node unit suites npm run test:one-more-saturday # payoff, personal history and real persistence regressions npm run test:one-more-saturday-browser # real weekly loop and cold re-entry at desktop/phone widths npm run test:browser # Chromium UI/visual suites npm run test:browser-storage # browser save/load and storage npm run audit # engine balance/consistency audit npm run longrun # multi-season (12) stability run npm run test:accessibility # axe-core on every screen, plus the phone touch and text floors npm run measure:long-save # 30 seasons: plain and compressed backup size and write time npm run verify:release # release-source and build-currentness checks npm run validate:full # build + verify + all of the above
Browser tests locate Chromium through tests/helpers/chromium-path.js; set
CHROMIUM_PATH to point at a specific binary.
Desktop alpha:
npm run desktop:dev # build and launch in Electron npm run desktop:make # macOS universal zip (Apple silicon + Intel) npm run desktop:make:windows # Windows x64 zip
Other targeted suites are listed in package.json (test:guidance,
test:game-engine-v2, test:development, test:desktop-storage, ...).
VERSION.txt is the single release-version source. APP_VERSION in app.js
and version in package.json must match it; tools/build.js and
tests/version.js fail on a mismatch. Bump all three together.
.github/workflows/validate.yml runs on pull requests and pushes (except
gh-pages) using npm ci: build, release verification and the unit suite on
every push; browser and audit jobs follow the validation cadence (full on
pull requests, manual runs, [full-ci]/[release-ci] commits and periodically).
Desktop packaging jobs (macOS, Windows) run only when desktop-related files
change, a commit contains [release-ci] or [desktop-ci], or on manual dispatch.
The manual Publish Dynasty Lab workflow (.github/workflows/publish.yml)
validates and then publishes the build to the gh-pages branch: choose preview
plus a name, or production and confirm with PUBLISH. Local equivalents:
npm run publish # production (/) npm run publish:preview -- <name> # /preview/<name>/ node tools/publish.js --list # what is published node tools/publish.js --remove <name>
This README does not state which version is currently live; check the publish
workflow runs and git history. The source branch is canonical; gh-pages is
deployment output only. Previews and production share one origin and therefore
share browser save storage -- export a JSON backup before switching builds.
CHANGELOG.md-- release history.STORAGE.md-- save format and persistence contract; read before changing save behavior.VISUAL_IDENTITY.md-- visual identity rules.IDEAS.md-- idea backlog.docs/RELEASE_GAMEPLAN_2026-11-11.md-- the review and plan toward 1.0, with what has shipped and what is left.docs/-- milestone checkpoints, validation policy, release notes,docs/roadmap/.docs/archive/-- historical root-level handoffs, worklog and roadmaps (may be out of date).agent_docs/-- working context for coding agents.