About gpui-query
The story behind async state management for GPUI
What is gpui-query?
gpui-query brings the reactive query patterns you love from the web world into Rust GPUI applications. Fetch, cache, and synchronize async data with a single hook — no manual lifecycle management required.
Built on a layered architecture with a framework-agnostic Core, a Client layer for caching and garbage collection, and a Hook layer that integrates directly with GPUI's reactive primitives, gpui-query is designed to feel natural in the Rust ecosystem while providing battle-tested patterns from TanStack Query.
Whether you are building plugins for the Zed editor or crafting your own GPUI application, gpui-query eliminates the boilerplate of managing asynchronous data so you can focus on shipping features.
The Author
Technology Stack
Built with proven technologies and patterns for reliable async state management.
GPUI
Zed's GPU-accelerated UI framework
Rust
Memory-safe, blazing fast
Query Cache
TTL, SWR, LatestWins policies
3-Layer Arch
Core, Client, Hook separation
Type Safe
Compile-time guarantees
Crate.io
Published Rust package
Open Source
gpui-query is open-source software released under the MIT License. You are free to use it in personal projects, commercial applications, and anything in between. Contributions, bug reports, and feature requests are always welcome on GitHub.
Explore More
Dive deeper into gpui-query with these resources.