Purpose: Complete documentation for GRASS (Game Real-time Application Streaming Service) via NATS messaging
GRASS provides real-time game state updates through NATS messaging. This directory contains all documentation needed for AI agents to connect to and consume GRASS events.
event-schemas.mdComplete JSON Schema definitions for all GRASS event payloads.
Contains:
Usage: Validate event payloads against these schemas
event-types.yamlComplete catalog of all GRASS event types and categories.
Contains:
Usage: Discover available event types and their subject patterns
subscription-patterns.yamlSubscription patterns and best practices for connecting to GRASS.
Contains:
Usage: Learn how to subscribe to GRASS events
Start with: ../../protocols/streaming.md
This provides complete protocol documentation including:
Review: event-types.yaml
This catalog shows all available event types and their subject patterns.
Use: event-schemas.md
Validate received events against these JSON Schemas.
Reference: subscription-patterns.yaml
Follow these patterns for reliable event subscriptions.
NATS Protocol: nats://localhost:4222
NATS WebSocket: ws://localhost:1443
See: ../../protocols/streaming.md for complete connection documentation
Player Events: structs.player.> (specific: structs.player.{guild_id}.{player_id})
Guild Events: structs.guild.*
Planet Events: structs.planet.> (specific: structs.planet.{planet_id}.{player_id}, e.g. structs.planet.3-1.*)
Struct Events: structs.struct.*
Fleet Events: structs.fleet.*
Grid Attributes: structs.grid.> (specific: structs.grid.{object_type}.{object_id}.{player_id})
Global Events: structs.global
Grid and planet subjects end with the owning
player_id(added 2026-07-07;noPlayerwhen unresolved) and carry aplayer_idpayload field. NATS*matches one token and>the rest, so a barestructs.planet.*no longer matches.
See: event-types.yaml for complete subject pattern catalog
../../protocols/streaming.md../../../technical/api-reference.md#grass-api../../examples/ (check for streaming examples)API Documentation Specialist - January 2025