This covers GPUI's event system, subscriptions, and emission patterns. You'll need this when wiring up component communication, handling user interactions, or building reactive state flows in GPUI applications. The framework uses a subscription model where entities can emit events and other parts of your app can observe or subscribe to them. It's more granular than you might expect coming from web frameworks, giving you fine control over what updates when. The reference material breaks down cx.emit, cx.subscribe, and cx.observe with their different use cases, which is helpful since the distinctions matter for performance and lifecycle management.

skills.sh installs
272
GitHub stars
12.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add longbridge/gpui-component --skill gpui-event --agent claude-code

Installs into .claude/skills of the current project.

Files

This covers GPUI's event system, subscriptions, and emission patterns. You'll need this when wiring up component communication, handling user interactions, or building reactive state flows in GPUI applications. The framework uses a subscription model where entities can emit events and other parts of your app can observe or subscribe to them. It's more granular than you might expect coming from web frameworks, giving you fine control over what updates when. The reference material breaks down cx.emit, cx.subscribe, and cx.observe with their different use cases, which is helpful since the distinctions matter for performance and lifecycle management.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/longbridge/gpui-component
Categories
Frontend Development, Finance & Trading
First seen
Jun 3, 2026

More from longbridge/gpui-component

All 16
1longbridge avatargpui-entitylongbridge/gpui-componentEntity management and state handling in GPUI. Use when working with entities, managing component state, coordinating between components, handling async operatio254skills.sh installs
2longbridge avatargpui-actionlongbridge/gpui-componentAction definitions and keyboard shortcuts in GPUI. Use when implementing actions, keyboard shortcuts, or key bindings.253skills.sh installs
3longbridge avatargpui-style-guidelongbridge/gpui-componentGPUI Component project style guide based on gpui-component code patterns. Use when writing new components, reviewing code, or ensuring consistency with existing231skills.sh installs
4longbridge avatargpui-globallongbridge/gpui-componentGlobal state management in GPUI. Use when implementing global state, app-wide configuration, or shared resources.229skills.sh installs
5laguagu avatarai-sdk-6laguagu/claude-code-nextjs-skillsVercel AI SDK v6 development. Use when building AI agents, chatbots, tool integrations, streaming apps, or structured output with the ai package. Covers ToolLoo216skills.sh installs
6oguzhan18 avatarrxjsoguzhan18/angular-ecosystem-skillsALWAYS use when working with RxJS Observables, operators, and reactive patterns in Angular applications.214skills.sh installs