next-cache-components
Enable Partial Prerendering and granular caching in Next.js using the 'use cache' directive and cacheLife profiles.
Install
npx skills add https://github.com/vercel-labs/next-skills --skill next-cache-componentsStats
| Total installs | 12,956 |
| Weekly installs | 12.9K |
| GitHub stars | 778 |
| First seen | Jan 26, 2026 |
| Source | @vercel-labs/next-skills |
Summary
- Enable with cacheComponents: true in next.config.ts; replaces the old experimental.ppr flag
- Use the 'use cache' directive at file, component, or function level to cache async data with automatic key generation based on arguments and closures
- Control cache lifetime with cacheLife() using built-in profiles ('minutes', 'hours', 'days', 'weeks', 'max') or inline configuration with stale, revalidate, and expire times
- Invalidate caches with cacheTag() for tagging and updateTag() for immediate refresh or revalidateTag() for background revalidation
- Wrap dynamic content in Suspense; cannot access cookies(), headers(), or searchParams inside use cache blocks unless using 'use cache: private'
Tags
Related skills
| Skill | Installs | vs next-cache-components |
|---|---|---|
| log-analysis | 10,644 | -2,312 |
| vue | 12,816 | -140 |
| code-review | 12,454 | -502 |
| monitoring-observability | 10,961 | -1,995 |
| ui-component-patterns | 10,718 | -2,238 |
FAQ
- How many installs does next-cache-components have?
- next-cache-components has 12,956 total installs and 12.9K installs this week.
- Where is next-cache-components hosted?
- next-cache-components is published by @vercel-labs/next-skills at https://github.com/vercel-labs/next-skills.
- How many GitHub stars does next-cache-components have?
- next-cache-components has 778 GitHub stars.
- When was next-cache-components first indexed?
- OrangeBot.AI first indexed next-cache-components on Jan 26, 2026.
- How do I install next-cache-components?
- Run: npx skills add https://github.com/vercel-labs/next-skills --skill next-cache-components