gpui-global

Official

Global app state you can safely share.

Authorlongbridge
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Global state management enables app-wide data to be shared across components and contexts, ensuring consistent configuration and resources without prop-drilling.

Core Features & Use Cases

  • Global trait: Implement on types to expose them globally and enable access from anywhere.
  • Set, update, and notify: Pattern for mutating global state with controlled reactivity and manual notifications when necessary.
  • Best practices: Arc-based sharing, immutability by default, and safe interior mutability for selective updates.
  • Use Cases: App configuration, feature flags, and shared services.

Quick Start

Define a global type by deriving Clone and implementing Global, then register it in the GPUI context and access or update it from components.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gpui-global
Download link: https://github.com/longbridge/gpui-component/archive/main.zip#gpui-global

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.