Ardenfall Compendium is an interactive map and searchable reference for players of Ardenfall by Spellcast Studios. It uses the game's own data to connect items, characters, quests, dialogue, spells, and world locations. This is an unofficial fan project that Spellcast Studios does not make or endorse.
- Explore the map to find world objects, characters, resources, and locations.
- Browse or search reference pages for equipment, spells, status effects, quests, and other game records.
- Follow relationships between pages to find dialogue, rewards, drops, and placed objects.
The site identifies the game build behind its data and marks missing or ambiguous information instead of guessing. You do not need a game installation to browse it. Use this repository to change the site or rebuild its data.
The website and pipeline need Bun and Node. package.json declares the Bun requirement, and flake.nix defines the development toolchain, including the .NET SDK needed for the extraction mod.
bunfig.toml delays newly released dependencies before Bun can resolve them, so fresh releases have time to settle.
On a supported Nix system:
nix develop
bun install --frozen-lockfileWithout Nix, install the required tools and run the same dependency command. The live extraction scripts also need Bash.
From the repository root:
bun run artifact:fixture synthetic fixtures/synthetic/snapshot
bun run --cwd site build:fixture
bun run devThis builds a synthetic artifact and stages it for local development. You can change the website without a game installation. Fixture data is not a copy of the published compendium and cannot be deployed as production data.
To preview the built fixture site:
bun run --cwd site previewflowchart LR
game["Ardenfall with BepInEx and HotRepl"] -->|export| snapshot["JSON snapshot"]
snapshot -->|validate and build| artifact["Release artifact: SQLite and images"]
artifact -->|stage and prerender| site["Static site"]
site -->|deploy| cloudflare["Cloudflare Static Assets"]
The BepInEx mod reads live game objects and writes a snapshot. The Bun pipeline validates the snapshot and produces the database, images, and metadata used to build the SvelteKit site. The browser receives static pages and assets, not a live game connection or the build database.
Live extraction needs a local main-game Ardenfall installation, BepInEx, the .NET SDK, and a HotRepl checkout. Demo and unknown products are rejected as publication sources.
Start with the local configuration template:
cp .env.example .envFill in your paths and connection settings using .env.example, then follow the live-extraction procedure. It covers installing BepInEx, building and deploying the mod, launching the game, and running bun run hotrepl:export. Keep the runtime connection on loopback because it permits unauthenticated code execution. Back up saves before probes that change game state.
The setup writes plugins and HotRepl configuration into the game installation. Export and pipeline output locations come from your local configuration. Keep game assemblies, live snapshots, and extracted assets out of Git.
Commit your source changes before building the release artifact. Production staging rejects an artifact recorded from a dirty tree. With the default configuration, the export writes each snapshot below snapshots/snapshots/. From the repository root:
bun run artifact:release snapshots/snapshots/<snapshot-id>The pipeline writes the artifact to pipeline/artifacts/releases/, in a directory named from the snapshot's game version and build identifier, and reports that directory. Use it in the deployment command below. Production staging requires a release artifact and its artifact-manifest.json. site/static is a staging cache that deployment fills from the artifact, so change the pipeline or the site source instead of files there.
Authenticate Wrangler through the site's dependency:
cd site
bunx wrangler login
cd ..Deploy from the repository root:
bun run --cwd site deploy:production ../pipeline/artifacts/releases/<game-version>-<build-identifier>This stages the artifact in the release slot, builds the pages and search index, runs the prerender and search checks, publishes static files to Cloudflare, and checks the deployed release. The private build database is not deployed. Fixture and release staging slots are separate, so fixture builds do not overwrite the staged live data.
Every page carries noindex until the site has real page titles and substantive content. Remove that directive from site/src/app.html and update its built-page test when those pages are ready for indexing, keeping robots.txt open to crawling so search engines can read the directive.
site/AGENTS.md explains staging, preview selection, and deployment rules. pipeline/src/cli.ts defines artifact commands and output naming.
Start with AGENTS.md for the development checks and live-data verification requirements. It links the subsystem guides and lists the full gate. The usual entry points are:
mod/for the extraction plugin andcontroller/for HotRepl setup and export automation.pipeline/for validation, canonical data, and artifact generation.site/for pages, search, the map, and deployment.entities/andschemas/for entity descriptors and data contracts.openspec/specs/for behavior requirements.
The fixture workflow above exercises the site without live data. It does not prove that extraction matches the game. Read the live-extraction procedure before changing export behavior or using runtime probes.
The code is licensed under the MIT License. The license does not cover Ardenfall's game data, text, names, or images, which belong to Spellcast Studios.