Skip to content
Oguz Kabasakal
Contact
All experiments

Development & Design · Experiment

blitz-cache

A TypeScript-first data fetching and caching library with LRU storage, persistence, pagination, request cancellation, and React hooks.

About the work

blitz-cache is a TypeScript data-fetching and caching library. The core uses an LRU cache, stale-while-revalidate reads, pluggable persistence, request deduplication, and AbortController cancellation for stale requests.

The core package has no runtime dependency on React. I added adapters for vanilla JavaScript and other frontends, React hooks, pagination, optimistic updates, dependency-based invalidation, IndexedDB storage, prefetching, and a small DevTools package. I designed the public API around predictable cache keys, explicit invalidation, and cancellation, and maintain the package and documentation as an open-source project.