MCPcopy Index your code
hub / github.com/SvelteStack/svelte-query

github.com/SvelteStack/svelte-query @v1.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.0 ↗ · + Follow
541 symbols 1,292 edges 172 files 10 documented · 2% 10 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Visit sveltequery.vercel.app 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

Contributing

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 git@github.com:SvelteStack/svelte-query.git
cd svelte-query
yarn
yarn storybook

Running Storybook

cd storybook
yarn
yarn start

Running the tests

yarn test

Running the Docs

cd docs
yarn
yarn build
yarn start

http://localhost:3000

Build

yarn build

Extension points exported contracts — how you extend this code

Cancelable (Interface)
(no doc) [2 implementers]
src/queryCore/core/retryer.ts
UseQueriesStoreResult (Interface)
(no doc) [1 implementers]
src/types.ts
AsyncStorage (Interface)
(no doc)
src/queryCore/createAsyncStoragePersistor-experimental/index.ts
UseQueryStoreResult (Interface)
(no doc)
src/types.ts
CreateAsyncStoragePersistorOptions (Interface)
(no doc)
src/queryCore/createAsyncStoragePersistor-experimental/index.ts
UseQueryOptions (Interface)
(no doc)
src/types.ts
QueryDefaults (Interface)
(no doc)
src/queryCore/core/queryClient.ts
UseInfiniteQueryStoreResult (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

resolve
called by 28
src/queryCore/core/retryer.ts
batch
called by 20
src/queryCore/core/notifyManager.ts
getQueryCache
called by 13
src/queryCore/core/queryClient.ts
subscribe
called by 12
src/queryCore/core/subscribable.ts
hasListeners
called by 12
src/queryCore/core/subscribable.ts
find
called by 11
src/queryCore/core/queryCache.ts
defaultQueryObserverOptions
called by 10
src/queryCore/core/queryClient.ts
build
called by 10
src/queryCore/core/queryCache.ts

Shape

Method 216
Function 182
Interface 103
Class 40

Languages

TypeScript100%

Modules by API surface

src/queryCore/core/queryObserver.ts44 symbols
src/queryCore/core/query.ts42 symbols
src/queryCore/core/types.ts41 symbols
src/queryCore/core/queryClient.ts38 symbols
src/queryCore/core/utils.ts30 symbols
src/queryCore/core/queryCache.ts22 symbols
src/queryCore/core/mutation.ts22 symbols
src/queryCore/core/retryer.ts16 symbols
src/queryCore/core/queriesObserver.ts15 symbols
src/queryCore/core/mutationCache.ts15 symbols
src/types.ts13 symbols
src/queryCore/core/mutationObserver.ts13 symbols

For agents

$ claude mcp add svelte-query \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page