SWRev
JSON →SWRev is a lightweight, framework-agnostic library implementing the Stale-While-Revalidate (SWR) data fetching strategy. It allows applications to instantly display cached data (stale) while simultaneously revalidating that data with a fresh network request in the background, providing a fast and resilient user experience. Unlike framework-specific SWR implementations (e.g., Vercel's `swr` for React), SWRev focuses on core SWR logic, making it suitable for use with any JavaScript framework or even vanilla JavaScript projects. The current stable version is 4.0.0. The package has a slow release cadence, with its latest version published approximately three years ago, suggesting a mature and stable codebase that requires infrequent updates. It notably has zero runtime dependencies, which contributes to its lightweight nature.
Traffic · last 30 days ↓50% vs prev 7d
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany · 🇬🇧 United Kingdom