Skip to content

Schema

The OnlyWorlds schema is the standard every OnlyWorlds tool and world shares. It defines 22 element categories, the fields each one carries, and typed links between them. An element is one record in a world: a Character, a Location, a Law.

Use as much of it as you need. Only name is required: the key must be present, and an empty string is accepted, on every category, Pins and Markers included. So a world of nothing but Objects is a valid world. Supertype and subtype add a world’s own categories, x_ fields carry data the schema doesn’t model, and high-volume data can live in your own database beside the world, keyed by element id.

Category Definition
Character A Character represents an individual with agency and the capacity to make choices that affect their world.
Creature Creatures are living entities within a world that exhibit behavior and agency but lack the strategic reasoning, narrative focus, or social complexity of Characters.
Species A Species defines a distinct biological or cultural form of life.
Family A Family is a group tied together by lineage, heritage or community.
Collective A Collective is a group of individuals that acts as a unit but lacks formal governance or hierarchical structure.
Institution Institutions are organized bodies with purpose and structure.
Location A Location represents a distinct place within the world where activities occur and elements converge.
Object Objects are tangible, non-living things that can be made, owned, traded or destroyed.
Construct Constructs are abstract or conceptual structures that exist within a world and can have causal, symbolic, or systemic roles.
Ability An Ability represents something an entity in the world can do: a defined action, power, skill, or effect that can change the world or its perception.
Trait Traits describe qualities that shape how a character or creature acts, responds, or is perceived.
Title A Title is a formal designation that confers identity, standing, or power within a world.
Language Languages are systems of shared meaning, whether natural, constructed, or symbolic.
Law A Law represents a formalized rule or set of guidelines that governs the actions of individuals or groups within a specific jurisdiction.
Event An Event represents a time-bound happening within the world.
Narrative Narratives represent stories told in your world, and can involve the organization or reinterpretation of Events.
Phenomenon Phenomena are ongoing or emergent conditions that act in or upon the world.
Relation Relations are non-material and capture meaningful connections between world elements.
Map A Map represents a spatial template that defines a coordinate system for placing elements within your world.
Pin Pins represent a single element on a single Map, indicating its position in that particular world view.
Marker Groups of Markers, each at a specific coordinate, together designate a Zone in the world.
Zone Zones represent abstract or meaningful areas within the world that hold significance due to cultural, political, environmental, or narrative reasons.

Every element also carries the same base fields (name, description, supertype, subtype, image and more). Fields lists them, with the field types and what is required. Worlds covers the container that holds the elements and its timeline. A Worked Example reads one small world through the API, link by link.

Links are typed fields. A Character’s location is a single link that holds one Location; its friends is a multi link that holds any number of Characters. Each link field names the category it points to, so a tool always knows what kind of element is on the other end. One field, the Pin’s element, is a generic link that can point to an element of any category.

Links point one way, from the element that holds the field. For connections that carry their own history, span or intensity, the schema has a category of its own: Relation. Conventions covers when to use which.

What Where
The standard, as YAML github.com/OnlyWorlds/OnlyWorlds: one file per category, plus base_properties.yaml for the fields every element shares and a VERSION file
Governance council.onlyworlds.com: the schema changes in public, by motion and vote. Take part on the site or through the toolkit.
For tool builders schema-dist: the generated distribution, its decoder (the walk), and the ruling table. Vendor it rather than writing a parser of your own.