
Vercel Kv
- 196 repo stars
- Updated July 25, 2026
- secondsky/claude-skills
Use Vercel KV (Redis-compatible, via Upstash) for Next.js caching, sessions, rate limiting, and TTL data storage.
About
Vercel KV is Redis-compatible key-value storage via Upstash for Next.js. Developers use it for caching, sessions, rate limiting, and TTL data storage, and to resolve KV_REST_API_URL, rate-limit, and serialization errors.
- Vercel KV (Redis via Upstash)
- Caching + sessions
- Rate limiting + TTL
- Strong consistency
Vercel Kv by the numbers
- Data as of Jul 28, 2026 (Skillselion catalog sync)
/plugin marketplace add secondsky/claude-skills/plugin install vercel-kv@claude-skillsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| repo stars | ★ 196 |
|---|---|
| Last updated | July 25, 2026 |
| Repository | secondsky/claude-skills ↗ |
What it does
Use Vercel KV (Redis-compatible, via Upstash) for Next.js caching, sessions, rate limiting, and TTL data storage.
README.md
Vercel KV Skill
Status: ✅ Production Ready
Last Updated: 2025-10-29
Package Version: @vercel/kv@3.0.0
Auto-Trigger Keywords
Primary
@vercel/kv,vercel kv,vercel redis,upstash vercel
Use Cases
- caching, sessions, rate limiting, distributed locks, leaderboards, counters
Errors
- "KV_REST_API_URL not set", "rate limit exceeded", "JSON serialization error", "TTL not set"
What This Skill Does
Redis-compatible key-value storage for Vercel applications. Perfect for caching, sessions, rate limiting, and temporary data with TTL.
✅ Redis API (get/set/incr/zadd) ✅ Automatic JSON serialization ✅ Edge & serverless compatible ✅ 10 errors prevented (TTL, serialization, naming, etc.) ✅ ~55% token savings
Quick Start
# 1. Create KV database in Vercel dashboard
vercel env pull .env.local
# 2. Install
bun add @vercel/kv # preferred
# or: npm install @vercel/kv
# 3. Use
import { kv } from '@vercel/kv';
const views = await kv.incr(`views:${slug}`);
await kv.setex('session:abc', 3600, { userId: 123 });
Full details: SKILL.md
Production Templates
Ready-to-use patterns for common Vercel KV use cases:
Core Patterns
templates/session-management.ts- Complete session handling (create, get, refresh, destroy) with auto-renewal, multi-device support, and security best practicestemplates/simple-rate-limiting.ts- Fixed window and sliding window rate limiters, middleware integration, view counters, and tiered limits
Configuration
templates/package.json- Dependencies and versions for Vercel KV + Next.js
All templates include:
- ✅ TypeScript types
- ✅ Error handling
- ✅ TTL management
- ✅ Security best practices
- ✅ Next.js integration examples
- ✅ Production-tested patterns
Errors Prevented (10 Total)
- Missing environment variables
- JSON serialization errors (BigInt, circular refs)
- Key naming collisions
- TTL not set (memory leaks)
- Rate limit exceeded
- Storing large values (>1MB)
- Type mismatches
- Pipeline errors
- Scan inefficiency
- Missing TTL refresh
Related Skills
- cloudflare-kv: Cloudflare's KV (eventual consistency)
- neon-vercel-postgres: For persistent data (not cache)
- vercel-blob: For large files/images
Official Docs
- https://vercel.com/docs/storage/vercel-kv
- https://redis.io/commands (Redis-compatible)