Computational Social Simulation

NPCs that remember what you did.

EchoState is a browser-based psychological simulation where characters form memories, develop opinions, spread rumors, and react emotionally over time. Every decision leaves a lasting echo across a living social network.

The whole world persists in your browser. No servers, no sign-up.

10
Seeded characters
7
Personality archetypes
5
Emotional axes
Mira Quill
Personality: Idealist
Live demo

“I'm watching how you treat people around here.”

Trust
52
Affection
40
Anger
12

Getting Started

A guided tour, for technical and non-technical visitors alike

EchoState looks complex, but using it is simple. Here is what it is, the problem it solves, and exactly how to get value from it in your first few minutes.

01

What it is

A living world of rule-based characters who remember your actions, form genuine opinions, gossip about you, and change how they treat you over time — all running entirely in your browser.

02

The problem it solves

Characters in most games and apps have goldfish memory — they forget you the moment you walk away. EchoState models persistent, social memory so worlds feel reactive, consequential, and alive.

03

Why it is useful

It is a sandbox for game designers, researchers, and curious minds to study how reputation spreads, how trust erodes, and how small choices cascade into lasting social consequences — no servers or API keys required.

How it works, in four steps

01

Interact with a character

Open the simulation and pick an NPC. Choose an action — help, betray, gift, threaten, compliment — and watch their emotional state shift instantly.

02

Watch opinions form

Each action writes a memory and nudges five emotional axes through the character's unique personality. A Manipulator forgives nothing; a Loyalist gives second chances.

03

See rumors ripple outward

Notable deeds travel across the relationship graph. Friends of friends hear what you did — even characters you've never met start forming opinions.

04

Trace every consequence

Advance the day. Scheduled consequences fire, and the timeline links each effect back to the exact cause. Nothing is random — everything has a reason.

How to get the most value

  1. 01Start with a Help or Gift action to see trust climb, then betray the same character to watch the relationship collapse.
  2. 02Open the Analytics page after a few actions to read reputation trends and trust distribution across the whole world.
  3. 03Visit a character's profile to read their raw memory log — it's the clearest window into why they feel the way they do.
  4. 04Advance several days in a row to let decay, drift, and delayed consequences play out on their own.

Core Systems

Eight engines working as one behavioral model

Each system is a pure, composable module. Together they produce emergent behavior that feels persistent rather than scripted.

01
Memory Engine
Every NPC stores timestamped, categorized memories of what you did and what they heard. Memories decay in salience but never silently vanish.
02
Emotion Engine
Five emotional axes — trust, fear, respect, anger, affection — evolve per interaction and drift toward a personality baseline over time.
03
Reputation Engine
Six global reputation dimensions track honesty, kindness, violence, generosity, greed and reliability across the whole world.
04
Personality System
Seven archetypes — Loyalist, Rebel, Manipulator and more — each interpret identical actions through different psychological lenses.
05
Relationship Graph
NPCs are bound by friendship, rivalry, family, alliance and distrust, visualized as a live, force-directed network.
06
Dialogue Engine
Context-aware, rule-based dialogue generated from emotional state, memories and personality. No paid AI model required.
07
Rumor Propagation
Notable actions ripple outward through the social graph. Trusted, well-connected NPCs spread information fastest.
08
Consequence Engine
Actions schedule delayed outcomes. Steal on day 1, and the guards may come looking on day 8.

Architecture

Engineered like a product, not a prototype

EchoState separates pure simulation logic from presentation. The engines are deterministic functions; an event-driven store composes them; the UI simply renders state. No backend, no API keys, no cost — the entire world persists locally.

Pure simulation engines
Deterministic, side-effect-free transforms
Zustand + localStorage
Persisted, rehydratable world state
Event-driven pipeline
Action → memory → emotion → rumor → consequence
Force-directed graph
Live relationship & rumor visualization

// interaction pipeline

  1. player.action(npc, category)
  2. -> memory.create(firsthand)
  3. -> emotion.apply(personality x impact)
  4. -> reputation.update(global)
  5. -> rumor.propagate(graph, trust)
  6. -> consequence.schedule(day + n)
  7. -> timeline.record(cause -> effect)

About me

Why I built this

I'm Raghav Kaushal, a computer science student in India. I build software to study how people learn, decide and pay attention — treating each project as a small research instrument rather than a product. I built EchoState because most interactive characters forget you the moment an interaction ends, and I wanted to see what changes when they don't. Every memory, rumour and delayed consequence in the simulation traces back to the action that caused it.

Raghav Kaushal
Computer Science Student · India
  • Computational social systems
  • Emergent AI behavior
  • Full-stack engineering

Step into a world that remembers

Interact with characters, watch opinions ripple through the network, and trace every consequence back to its cause.

Launch Simulation