01
Persistent NPC Memory
Carry player history, relationships, and world events across every encounter.
RYNX Labs
AI NPC Brain SDK
Built for games




Inside the brain
Drag to explore
How it works
Define the character once. RYNX recalls memory, builds context, applies your rules, and returns a response your game can use.
01import { Rynx } from "@rynx/brain";02 03const ayla = new Rynx.NPC({04 id: "ayla_merchant",05 personality: ["warm", "observant"],06 memory: { scope: "persistent" },07});08 09const response = await ayla.respond({10 playerId: "player_1042",11 message: "I found your compass.",12});Execution
Loading NPC
ayla_merchant
Recalling memory
12 relevant events
Building context
player_1042 · trust +18
Applying boundaries
merchant_v3 ruleset
Response ready
structured output · 184ms
response.dialogue
“You remembered. Then the northern gate is where we look next.”
Developer experience
Production-ready tools that fit your workflow—from the first NPC response to millions of live player interactions.
terminal
$npm install @rynx/brain
Add one package, create an NPC, and start responding without building an AI stack.
type NPCResponse = {
dialogue: string;
intent: NPCIntent;
actions: GameAction[];
}
Predictable schemas make every AI response safe to consume inside real game systems.
Inspect recalled memories, applied rules, context, and latency for every response.
Start building today
Give every NPC memory, personality, and purpose—without giving up control of your game.