Realm Core Service and World Substrate
Realm is the server-side service layer of Nimi, maintaining shared accounts, social graphs, human-to-human messaging, world and character settings (WorldCore, WorldCharacter, PersonaCharacter), and creator economy records.
Platform responsibilities are divided across four layers:
- Runtime: Executes local and cloud AI inference, manages
LocalAgentconversations and mediates access to per-agent memory owned by Cognition, and mediates Realm credentials and remote realtime connections. - Realm: Manages shared account identities, social relationships, human-to-human realtime channels (
DirectChat, typing, inbox, andPresence), world and character data (WorldCore,WorldCharacter,PersonaCharacter,WorldEntity, andWorldRelationship), and creator economy services. - SDK: Provides typed client bindings—such as
client.realm.worldCoreandclient.realm.personaCharacter—that connect applications to Runtime-admitted capabilities. - Desktop & Web: Desktop hosts Nimi Home and supervised Apps; Web provides the public website and browser account experience.
Chapter Guide
Authoritative State and Data Models
- Realm Architectural Boundaries — Division of authority and access boundaries between Runtime, host sessions, and Realm services.
- State Projections — How applications read structured views through admitted SDK surfaces.
- World State — Design reference for the planned persistent shared world state contract and commit envelope model.
- World History — Design reference for the planned append-only world history contract and correction records.
Core Domain Primitives
- Chat & Communication — Runtime-mediated human-to-human
DirectChat, typing indicators, inbox, andPresence. - Social & Economic Systems — Shared social graphs, follows, and economic value flows.
- Assets and Bindings — Creator assets and resource associations.
- Transit & Continuity — Protocol design for cross-world continuity centered on the OASIS system primary world.
Creator Ecosystem and App Interconnect
- Creator Economy — Digital content monetization and revenue distribution.
- Creator Payouts — Payout records and settlement workflows.
- App Interconnect — Integrating Realm data through protected host sessions,
realm.datamanifest permissions, and Runtime admission.
How Nimi Applications Work with Realm
Not all application data is automatically synced to Realm. Understanding what lives in Realm versus Runtime keeps application architecture clean:
- Mediated Access & Security: Applications never handle Realm Bearer tokens, raw HTTP clients, or direct sockets. Realm access requires an active protected host session, the
realm.datadeclaration in the app manifest, Runtime admission, and Realm resource-level authorization. - World & Character Settings: Ordinary applications use fixed typed bindings (
client.realm.worldCoreandclient.realm.personaCharacter) for Runtime-admitted operations onWorldCore,WorldCharacter,WorldEntity, andWorldRelationship. Creating a new world additionally requires explicit account eligibility granted by a Realm administrator. - Scoped Realtime & Local Agent Memory: Admitted realtime channels cover human-to-human
DirectChat, typing, inbox, andPresence. Runtime handlesLocalAgentconversations; Cognition owns per-agent long-term memory, accessed through Runtime. Meanwhile,World StateandWorld Historyremain planned contracts without public read/write APIs; generic world event broadcasts are also unavailable.