Svelte Query

Performant and powerful remote data synchronization for Svelte

Hooks for managing, caching and syncing asynchronous and remote data in Svelte

This package has been migrated to the TanStack Query repo.

You can install it with npm install @tanstack/svelte-query

Visit for docs, guides, API and more!

Quick Features

  • Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, whatever!)
  • Auto Caching + Refetching (stale-while-revalidate, Window Refocus, Polling/Realtime)
  • Parallel + Dependent Queries
  • Mutations + Reactive Query Refetching
  • Multi-layer Cache + Automatic Garbage Collection
  • Paginated + Cursor-based Queries
  • Load-More + Infinite Scroll Queries w/ Scroll Recovery
  • Request Cancellation


PRs are welcome! You noticed a bug, a possible improvement or whatever? Any help is always appreciated, so don't hesitate opening one!

Be sure to check out the contributing guidelines to fasten up the merging process.

Get started (Devs)

git clone
cd svelte-query
yarn storybook

Running Storybook

cd storybook
yarn start

Running the tests

yarn test

Running the Docs

cd docs
yarn build
yarn start



yarn build

Top categories

Loading Svelte Themes