High-performance data fetching and caching runtime for TypeScript. Zero dependencies. Full type safety.
npm install @soulcache/coreA complete toolkit for efficient data management.
Stale-while-revalidate with configurable TTL and automatic LRU eviction.
Identical in-flight requests are automatically merged into one.
Refetch on window focus, network reconnect, and custom intervals.
Exponential, linear, or constant backoff with error classification.
Cursor-based pagination with automatic page management.
Server-side prefetch with dehydrate/hydrate. Next.js, Remix, and more.
Real-time inspection panel with query timeline and cache state.
Full TypeScript strict mode. Inferred types. Zero `any`.
Extend with lifecycle hooks for queries, mutations, and cache.
React, Vue, Svelte, Solid, or plain JavaScript. No lock-in.
Start fetching data in seconds. SoulCache handles caching, deduplication, and background updates automatically.
npm install @soulcache/coreconst client = new QueryClient()await client.fetchQuery({ queryKey, queryFn })Install what you need. Each package is tree-shakeable.