DEV Community

Cover image for Building a Wikipedia for Your Fictional World: How Emstrata's Lore Mode Works
Nick Goldstein
Nick Goldstein

Posted on

Building a Wikipedia for Your Fictional World: How Emstrata's Lore Mode Works

Building a Wikipedia for Your Fictional World: How Emstrata's Lore Mode Works

Ever tried to keep track of a fictional world you're building? Scattered notes, contradictions, that nagging feeling you messed something up three chapters ago. What if you could build something like Wikipedia, but for your world, with an AI helping you maintain consistency?

That's what Emstrata's Lore Mode does.


The Problem: Worldbuilding Is Hard

When you're building a fictional world, you're essentially creating an encyclopedia in your head. You need to track:

  • Figures: Who are the important people? When did they live? What did they do?
  • Places: Where do events happen? What are the geographic relationships?
  • Events: What happened, when, and why? How do events connect?
  • Organizations: What groups exist? Who founded them? What's their purpose?
  • Technologies: What's possible in this world? When were things invented?
  • Ideas: What philosophies drive your world? What belief systems exist?

The challenge? Keeping all of this consistent, interconnected, and accessible.

Traditional approaches fall short:

  • Scattered notes: Great for brainstorming, terrible for reference
  • Linear documents: Hard to navigate, harder to maintain
  • Spreadsheets: Structured but soulless, no narrative flow
  • Mind maps: Visual but don't scale well

What you really need is Wikipedia, but for your fictional world.


The Solution: An Encyclopedia That Writes Itself (With Your Direction)

Emstrata's Lore Mode is a collaborative AI-powered encyclopedia builder. You provide direction, the AI transforms it into structured, encyclopedic documentation.

The core thesis: Worldbuilding should feel like having a conversation with a research assistant who never forgets anything and maintains perfect consistency.

What Makes It Different

1. Wikipedia-Style Structure

Every entry has:

  • General Overview: The essential facts (2-3 statements)
  • Sections: Logical groupings of related information
  • Statements: Individual facts that form cohesive prose
  • Cross-references: Links to related entries

2. Opportunity Links (Wiki-Style Discovery)

When you mention an entity that doesn't have an entry yet, it becomes a clickable link. Click it, and that entry gets created based on context.

Three opportunity links appear:

  • Commander Vralic → Click to create Figure entry
  • Imperial Guard → Click to create Organization entry
  • Poopok Square → Click to create Place entry

It's Wikipedia's links, but AI-assisted.

3. Encyclopedia Voice (Always)

The AI maintains documentary precision:

❌ Novelistic: "The empire crumbled like autumn leaves, a once-mighty civilization reduced to whispers"

✅ Encyclopedic: "The Kalesh Empire collapses in 1247, fragmenting into seven successor states within six months"

Present tense, concrete details, neutral tone. No drama, just documentation.


How It Actually Works: The Three-Layer Architecture

Emstrata's Lore Mode uses a three-layer AI architecture working in sequence. Each layer has a specific job:

Layer 1: Inquirer Layer

Job: Identify what context the Encyclopedian will need

When you say "Create an entry for Uncle Tim, a martyred figure from shortly after the Betrayal," Inquirer examines your request and generates questions:

  • Does "The Great Betrayal" exist in the population?
  • If yes, what are the key facts about it?
  • What year did it occur?
  • What were the immediate consequences?

Inquirer passes these questions to Archivist.

Layer 2: Archivist (Context Retrieval)

Job: Answer Inquirer's questions with established facts

Archivist receives Inquirer's questions and responds:

  • Yes, "The Great Betrayal" exists
  • It occurred in 848 AC
  • Celestial dragons severed their bond with human civilization
  • All dragons vanished simultaneously on winter solstice
  • Celestial energy networks were disrupted

Critical principle: No hallucination. Archivist only returns documented facts or explicitly states when information doesn't exist.

Archivist passes these answers to Encyclopedian.

Layer 3: Encyclopedian (Content Generation)

Job: Use Archivist's context to generate consistent encyclopedia content

Encyclopedian receives Archivist's answers and your original request, then:

  1. Structures information into sections and statements
  2. Generates encyclopedic prose grounded in established facts
  3. Cross-references related entries (The Great Betrayal)
  4. Creates opportunity links for new entities mentioned

The AI isn't just writing text—it's building structured data.

Every section gets an ID. Every statement gets an index. This enables surgical editing later—change one sentence without touching anything else.


The Flow in Action

Let's see the three layers work together:

Your request: "Create an entry for Uncle Tim, a martyred figure from shortly after the Betrayal"

Inquirer generates questions:

  • Does "The Great Betrayal" entity exist?
  • What year did The Great Betrayal occur?
  • What were the political consequences?

Archivist answers:

  • Yes, entity exists
  • Occurred 848 AC
  • Emergency martial laws established, dragon-sympathizers persecuted

Encyclopedian generates:

Uncle Tim (Figure)
├─ General Overview
│   "Uncle Tim dies in 851 AC, three years after the Great Betrayal,
│   becoming a rallying symbol for justice reform movements."
├─ Background
│   "Tim operates a small trading post in the border settlements..."
└─ The Accusation
    "Local authorities arrest Tim in 851 AC on charges of harboring
    dragon-sympathizers in violation of post-Betrayal emergency laws..."

Opportunity links: "Emergency Martial Laws", "Dragon-Bonded Mages"
Enter fullscreen mode Exit fullscreen mode

All dates align with The Great Betrayal (848 AC). All references are consistent. Uncle Tim's execution in 851 AC is exactly "three years after" because Archivist provided that context.


The Editing System: Surgical Precision

Emstrata's Lore Mode doesn't treat entries as monolithic blobs. Everything is addressable:

Entry → Contains multiple Sections → Each contains multiple Statements

Want to change the second sentence in the "Military Career" section? You can target that exact statement. No regenerating entire sections. No losing other content.

Entry Types: The Building Blocks

Emstrata's Lore Mode supports nine entry types:

  • Figure (People)
  • Event (Historical Occurrences)
  • Place (Locations)
  • Organization (Groups)
  • Technology (Inventions)
  • Idea (Philosophies)
  • Artifact (Significant Objects)
  • Flora-Fauna (Living Organisms)
  • Natural-Law (Physical Phenomena)

Real-World Example: Building The Sundered Compact

Request: "A world where dragons and magic once existed but mysteriously vanished"

The system generates three foundational entries:

Posuukane (Figure): A hermit mage of unprecedented power, born 500 AC.

The Great Betrayal (Event): Occurs in 848 AC when celestial dragons collectively sever their bond with human civilization.

Vael Drake (Flora-Fauna): Largest known dragon species, 45-60 feet in length.

Three interconnected entries. The foundation is set. Now every subsequent entry can reference these through the Inquirer → Archivist → Encyclopedian flow.


What Makes This Different

Notion/Obsidian: You're doing all the work. No AI assistance, no consistency checking.

World Anvil: Templates are rigid. Structure is predefined.

ChatGPT/Claude conversations: No structure, no persistence, no precision editing. No consistency layer.

Emstrata's Lore Mode:

  • ✅ Wikipedia-style structure with full customization
  • ✅ Three-layer consistency: Inquirer asks, Archivist answers, Encyclopedian writes
  • ✅ Surgical editing (change one statement or whole sections)
  • ✅ Opportunity links for wiki-style discovery
  • ✅ Multi-step workflows via chain interactions

Try It Yourself

Emstrata's Lore Mode is live at emstrata.com

Start with a simple premise. Let the system generate foundational entries. Click opportunity links to expand. Watch your world emerge.

The AI handles structure and consistency. You provide direction. Together, you build something coherent and very useful.


*Nick Goldstein is building Emstrata, an AI-powered storytelling and worldbuilding platform.

Top comments (0)