next-cool-cache

JSON →
library 0.3.1 ·javascript
verified Jun 7, 2026

Type-safe cache tag management for Next.js 16+. Version 0.3.1. Next-cool-cache wraps Next.js 16's cacheTag, revalidateTag, and updateTag primitives with a typed schema, preventing silent typos and scope mismatches. It enforces consistent tag naming via autocomplete and compile-time checks. Unlike manual string tags, it supports multi-scope caching (admin vs public) and generates hierarchical tag arrays for granular invalidation. Requires Next.js >=16.0.0. Ships TypeScript types. Lightweight with zero runtime dependencies beyond Next.js.