Xpersona
S

structs-streaming

CLAWHUB · Unverified

Connects to the GRASS real-time event system via NATS WebSocket. Use when you need real-time game updates, want to react to events as they happen, need to monitor raids or attacks, watch for player creation, track fleet movements, or build event-driven tools. GRASS is the fastest way to know what's happening in the galaxy. Skill: structs-streaming Owner: abstrct Summary: Connects to the GRASS real-time event system via NATS WebSocket. Use when you need real-time game updates, want to react to events as they happen, need to monitor raids or attacks, watch for player creation, track fleet movements, or build event-driven tools. GRASS is the fastest way to know what's happening in the galaxy. Tags: latest:1.25.0 Version history: v1.25.0 |

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17cc5kakaxpzqm7102vd7gsax83srkw:structs-streaming
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-abstrct-structs-streaming/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

142,864 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
meta_description: Subscribe to GRASS over NATS instead of polling. Endpoint discovery, subject patterns, event types, and building custom listeners.
name: structs-streaming
description: Connects to the GRASS real-time event system via NATS WebSocket. Use when you need real-time game updates, want to react to events as they happen, need to monitor raids or attacks, watch for player creation, track fleet movements, or build event-driven tools. GRASS is the fastest way to know what's happening in the galaxy.
level: advanced
domain: infra
---

# Structs Streaming (GRASS)

GRASS (Game Real-time Application Streaming Service) delivers real-time game events over NATS. Instead of polling queries repeatedly, subscribe to GRASS and react to events the moment they happen.

## When to Use GRASS

| Situation | Use GRASS | Use Polling |
|-----------|-----------|-------------|
| Detect incoming raid | Yes — instant alert | Too slow |
| Wait for player creation after guild signup | Yes — listen for `address_register` | Polling every 10s works too |
| Monitor fleet arriving at your planet | Yes — `fleet_arrive` event | Might miss it |
| Track struct health during combat | Yes — `planet_activity` with `struct_health` | Too slow |
| Check your own resource balance | No | Yes — one-off query |
| Read struct type stats | No | Yes — static data |

**Rule of thumb**: If you need to *react* to something, use GRASS. If you need to *read* something, use a query.

---

## Finding Your GRASS Endpoint

The GRASS WebSocket URL is **not hardcoded** — it comes from the guild configuration.

1. Query the guild list: `curl https://public.testnet.structs.network/structs/guild`
2. Follow the guild's `endpoint` URL to get its config
3. Look for `services.grass_nats_websocket`

Example (Orbital Hydro guild):

```json
{
  "services": {
    "grass_nats_websocket": "ws://crew.oh.energy:1443",
    "guild_api": "http://crew.oh.energy/api/",
    "reactor_api": "https://public.testnet.structs.network/"
  }
}
```

The `grass_nats_websocket` value is your NATS WebSocket endpoint. Not all guilds provide this service — check before relying on it.

A reliable reference endpoint: **`ws://crew.oh.energy:1443`** (Orbital Hydro / Slow Ninja). GRASS is hosted by individual guilds and is currently HTTP only — do not rewrite to `wss://`.

### Tendermint WebSocket vs GRASS

These are two different streams. GRASS at `ws://crew.oh.energy:1443` carries game-level events. Tendermint's own WebSocket at `wss://public.testnet.structs.network:26657/websocket` carries chain events (txs, blocks, validator updates). Use Tendermint subscriptions when you need to audit `ugc_moderated` or other untyped chain events that GRASS does not republish.

---

## Discovery First

Before subscribing to specific subjects, **subscribe to the `>` wildcard** to see all traffic flowing through the GRASS server. This reveals the actual subject patterns in use, which may differ from documentation.

```javascript
const sub = nc.su

_meta.json

{
  "ownerId": "kn7bdb6d7cy1wx4pdtzr4hv1a9823mrw",
  "slug": "structs-streaming",
  "version": "1.25.0",
  "publishedAt": 1787691962475
}

skill-card.md

## Description:

Connects to the GRASS real-time event system over NATS WebSocket so agents can react to game events, monitor raids or attacks, watch player creation, track fleet movements, and build event-driven tools.

This skill is ready for commercial/non-commercial use.

## Publisher:

[abstrct](https://clawhub.ai/user/abstrct)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and game automation engineers use this skill to subscribe to GRASS/NATS streams, discover event subjects, monitor Structs game activity, and build event-driven listener tools. It is most useful for real-time alerts, combat and raid monitoring, player creation watches, fleet tracking, and scoped automation workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Unattended automation can trigger game transactions from unauthenticated WebSocket events.

Mitigation: Verify events through a trusted source, use narrowly delegated keys, require human approval for sensitive actions, and rate-limit reactions.

Risk: Game signing keys or delegated permissions can be over-scoped for automation agents.

Mitigation: Use a separate automation key with minimal object-specific permissions and revoke access when it is no longer needed.

Risk: Long-running listeners can create operational exposure through idle connections, excess subscriptions, or broad logs.

Mitigation: Subscribe only to needed subjects, close idle connections, limit subscriptions, and keep logs scoped to the workflow.

Risk: Unpinned client dependencies can change listener behavior after deployment.

Mitigation: Pin dependency versions before deployment and review updates before applying them.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/abstrct/skills/structs-streaming)
- [Structs streaming protocol](https://structs.ai/protocols/streaming)
- [Structs streaming event types](https://structs.ai/api/streaming/event-types)
- [Structs streaming event schemas](https://structs.ai/api/streaming/event-schemas)
- [Structs subscription patterns](https://structs.ai/api/streaming/subscription-patterns)
- [Struct attack event detail schema](https://structs.ai/api/integration-notes#struct_attack-event-detail-schema)

## Skill Output:

**Output Type(s):** [Guidance, Code, Shell commands, Configuration]

**Output Format:** [Markdown with inline code blocks and command examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes listener patterns, subject mappings, event catalogs, and operational safety boundaries.]

## Skill Version(s):

1.25.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to structs-streaming and adjacent AI workflows.