gpui-event

Define, emit, and subscribe to type-safe events in GPUI components.

62|1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/zerx-lab/rmx --skill gpui-event
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gpui-event
Source: https://github.com/zerx-lab/rmx/tree/main/.opencode/skills/gpui-event
Command: npx skills add https://github.com/zerx-lab/rmx --skill gpui-event

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

GPUI-based event systems help components coordinate state and behavior without tight coupling, enabling scalable, reactive architectures in complex UI graphs.

Core Features & Use Cases

  • Custom events: Define and emit type-safe events to decouple components.
  • Observations: React to entity/state changes to drive side effects.
  • Subscriptions: Listen to external entity events for cross-component workflows.
  • Global events: Broadcast app-wide events for cohesive behavior.

Quick Start

Use gpui-event to set up a component to emit a DataUpdated event when its data changes, and subscribe other components to react accordingly.

Frequently Asked Questions about gpui-event

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate state and behavior across GPUI components without tight coupling?▼

Coordinating GPUI components without tight coupling requires an event orchestration system to define, emit, and subscribe to type-safe events. This enables scalable, reactive architectures by handling inter-component communication for data updates and user actions.

How do I set up a component in Rust to emit and subscribe to custom events?▼

To set up event subscriptions in Rust, configure your GPUI component to emit a custom event like DataUpdated when its state changes, then have other components subscribe to that event to react and execute side effects accordingly.

Can I broadcast global events app-wide in a reactive Rust UI graph?▼

Yes, you can broadcast app-wide global events within GPUI. This functionality supports cohesive behavior across multiple entities and drives cross-component workflows through external entity observations and subscriptions.

What is the best way to react to entity and state changes in GPUI?▼

Reacting to entity and state changes in GPUI is best handled through observations. This mechanism allows components to monitor state transitions and trigger necessary side effects across inter-component communication scenarios.

Does this event system provide type safety for inter-component communication?▼

Yes, the event system provides type-safe events for inter-component communication. It ensures that data updates, user actions, and state transitions across multiple entities are handled safely within the reactive GPUI architecture.