Skip to content

About

Try to understand a vanished culture by interpreting procedurally generated artefacts

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Those Who Came Before

An archaeological artefact discovery game where player mistakes compound into an unreliable narrative

Note

Up Next

  1. Stack migration: Deno is winding down, so a spike (11SM.1) picks the replacement runtime, test runner, formatter, adapter and host, and the port follows. Everything below waits on it.
  2. The generated scholars get beliefs of their own: each one will hold a set of claims about cultures, artefacts and dates, deliberately right about most and wrong about some, so the corpus the player inherits carries real errors to find.
  3. Excavation batches: artefacts dug together, with a burial's trade goods or a workshop's one prestige piece sitting among the everyday finds
  4. A fuller description template system with property slots

After the migration, a run of design rulings on decoration layering, the material catalogue and component roles still stands between here and the end of the generation phase; after it, world state: chronology, cultures and the seed that ties one dig to one history. There is no playable game yet.


Ask DeepWiki


About

You play an archaeologist interpreting excavated artefacts. Every interpretation you record feeds a lens that filters what you observe next: expected properties are foregrounded, familiar classifications are suggested, details that contradict your published claims go unnoticed. Errors are generative; they shape the story you tell and the career you build on it. The player is the unreliable narrator.

Project Status

The design is specified across fourteen documents (docs 00 to 13); doc 11 and doc 12 both record their open questions resolved as of the current design round. The implementation was reset for launch and is being rebuilt phase by phase against the MVP roadmaps. 126 of 391 roadmap tasks are done (32%). The Foundation phase is complete: Deno runtime, the full type system, the seeded PRNG and the Project Explorer shell. The Generation Pipeline phase is 86/172 done: the component grammar system, plausibility checking, material assignment, decorative motif and introduced-material resolution, feature extraction, tag classification, description generation, NPC scholar generation and the language/naming system are all in place. Its first milestone moves the project off Deno (which is winding down after joining Cloudflare) before any other work continues. Exact task-by-task status lives in .claude/roadmaps.json (canonical) and its per-phase projections in docs/roadmaps/, not this summary.

What the Repository Currently Contains
  • A SvelteKit skeleton: one player-facing route, three static components (Header, Footer and Timeline), DaisyUI theming, and the twelve-panel Project Explorer described below
  • The complete MVP type system in `src/lib/types/`: eighteen modules, roughly 160 interfaces and aliases covering artefacts, world generation, interpretation, lens, documents, career, contradictions, corpus, descriptions, plausibility and saves
  • A seeded PRNG (xoshiro128**) and percentile statistics (`engine/statistics.ts`) in `src/lib/engine/`, with determinism, distribution and regression tests
  • A component grammar system in `src/lib/data/grammars/` and `src/lib/engine/generation/grammar.ts`: eight geometric primitives, MVP grammar rules, culture/phase-biased weighted selection, complexity-tier budgets, accumulation constraint checking and tree-to-`NormalisedArtefact` flattening
  • Plausibility checking in `src/lib/engine/generation/plausibility.ts` (`checkPlausibility`, material-physics and ergonomic rule predicates)
  • Material assignment in `src/lib/engine/generation/materials.ts` (culture affinity × phase technology × geological scarcity weighting, trade-aware availability) and a material property model (formability, hardness, working-state axes) it grades decoration against
  • Decorative motif and introduced-material resolution in `src/lib/engine/generation/decoration.ts` (cultural motif vocabularies plus cross-cultural exchange, per-technique introduced-material tag sets, material-aware execution grading, substrate enforcement)
  • Unified feature extraction and rule-based tag classification in `src/lib/engine/generation/classification.ts` and `src/lib/data/classification.ts` (44 rules, each carrying a plain-language reading of its condition and conclusion; culture-phase baseline sampling via `engine/generation/baselines.ts` for tags scored relative to a culture's own norms, doc 11 §2.9)
  • Description generation in `src/lib/engine/generation/description.ts` (`generateDescription`, register-filtered across observational, interpretive and technical templates in `src/lib/data/descriptions/`)
  • NPC scholar generation in `src/lib/engine/world/scholars.ts` (`generateNPCScholars`): a cohort dealt with a guaranteed senior anchor and an early-career researcher, coherent specialisations and an identity `InterpretiveModel`
  • A language and naming system in `src/lib/engine/world/phonology.ts` and `naming.ts`: a generated language forest plus a curated modern language for player-facing names
  • The Project Explorer at `/dev/explorer` (dev builds only): a developer workbench with twelve panels: an overview, PRNG output, a live type index with dependency and reference graphs, structure viewer, plausibility panel, material viewer, decoration inspector, tag inspector, rule calibration, description viewer, names panel and scholars panel
  • A CLI sampler suite (`deno task sample*`, see [`scripts/dev/README.md`](scripts/dev/README.md)) for eyeballing pipeline output stage by stage ahead of its Explorer panel landing
  • The full design specification in `docs/`

Quick Start

Requires Deno. There is no package.json; dependencies resolve through deno.json on first run.

deno task dev        # Dev server with HMR
deno task build      # Production build
deno task preview    # Preview the production build
deno task check      # Type checking
deno task test       # Run tests
deno fmt             # Format
deno lint            # Lint

# Milestone 2 pipeline samplers (gum menu, or run one directly; --json for raw output)
deno task sample                  # menu over the samplers below
deno task sample:artefact         # anatomy tree + plausibility verdict
deno task sample:materials        # anatomy tree with each part's material pick
deno task sample:decoration       # anatomy tree with decorative layers nested per part
deno task sample:features         # annotated classifier reading, per-value provenance
deno task sample:classification   # scored tag map with per-rule contributions

Tech Stack

  • Runtime: Deno
  • Framework: Svelte 5 (Runes) + SvelteKit 2
  • Build: Vite 7
  • Styling: Tailwind CSS 4 + DaisyUI 5
  • Language: TypeScript
  • Adapter: @deno/svelte-adapter (deploys to Deno Deploy)

Documentation

Contributing

A personal project by Jason Warren. Feedback and suggestions are welcome via issues.

Licence

© Goblin Uprising - All rights reserved.

About

Try to understand a vanished culture by interpreting procedurally generated artefacts

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages