High-performance data fetching and caching runtime for TypeScript. Zero dependencies. Full type safety.
npm install @soulcache/coreA complete toolkit for efficient data management.
TTL caching with automatic garbage collection and LRU eviction.
Identical in-flight requests are automatically merged into one.
Optimistic updates with rollback and cache invalidation.
Cursor-based pagination with automatic page management.
Server-side prefetch with dehydrate/hydrate. Next.js, Remix, and more.
Invalidate and refetch queries with dependency tracking.
Pluggable storage adapters with automatic persistence.
Real-time inspection panel with query timeline and cache state.
Full TypeScript strict mode. Inferred types. Zero `any`.
React, Vue, Svelte, Solid, or plain JavaScript. No lock-in.
Start fetching data in seconds. SoulCache handles caching, deduplication, and cache invalidation automatically.
npm install @soulcache/coreconst client = new QueryClient()await client.fetchQuery({ queryKey, queryFn })Install what you need. Each package is tree-shakeable.