@b.s/gqwery
TypeScript icon, indicating that this package has built-in type declarations

3.1.1 • Public • Published


Simple, versatile, powerful asynchronous state management

Weekly react-qwery downloads Weekly svelte-qwery downloads Weekly vue-qwery downloads Weekly solid-qwery downloads Weekly solid-qwery downloads
CI Status License License
Open in React demo in StackBlitz Open in Svelte demo in StackBlitz Open in Vue demo in StackBlitz Open in Solid demo in StackBlitz

✨ Features

  • 💼 Normalized cache (update all mutations and queries by entity)
  • 🏃🏽‍♂️‍➡️ HTTP (both the usual request/response and Server Sent Events) and WebSocket executors
  • 📢 Synchronize all instances of Qweries by operation name
  • 🧐 Sourcemaps for easy debugging
  • ± Request deduplication by only fetching the largest selection of fields
  • 🌏 CJS + ESM
  • ... and everything qwery has to offer

qwery is a collection of lightweight composable hooks and helpers to aid with async state management. It was designed with the aim of simplifying architectural migrations to support building evolutionary architectures in mind. gqwery provides first class GraphQL support.

📚 For more information, check out the wiki.

∑ TLDR;

  • Normalized and document caching + structural sharing + query cancellation + automatic garbage collection + subscriptions/polling + suspense + refetching + mutations + broadcast updates + SSR = Any place ✅
  • Backend agnostic + client side transactions + retry mechanism + batching = Any time ✅
  • React + Vue + Solid + Svelte = Anywhere ✅

📦 Release

After a few bumpy 1.x.x and 2.0.x releases 😬, v2.1.x onwards are considered stable

🤛🏽 Credits

qwery heavily draws upon ideas from:

misc:

🤝🏽 Contributions

  • Contributions are welcome, just make a pull request

"I'm my own reason why I sing, and so are you, are you understanding?"

Package Sidebar

Install

npm i @b.s/gqwery

Weekly Downloads

16

Version

3.1.1

License

MIT

Unpacked Size

160 kB

Total Files

11

Last publish

Collaborators

  • nmathew98