Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

upstash-redis

Skill by github

Teaches an assistant to use Redis over HTTP from serverless and edge runtimes with @upstash/redis. It also covers rate limiting with @upstash/ratelimit, for developers building Next.js, Vercel, Cloudflare Workers, Deno or Bun apps.

  • Score 91
  • 42k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install upstash-redis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-copilot/skills/upstash-redis ~/.claude/skills/upstash-redis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install upstash-redis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through using Redis from serverless and edge runtimes with the @upstash/redis client. The client sends every command as an HTTP request, so it works where a long-lived TCP connection does not, such as edge middleware and short-lived functions. The steps cover three common needs: cache-aside with TTLs, sessions with sliding expiration, and rate limiting with @upstash/ratelimit.

Each step ends with a checkpoint to confirm the setup works. The rate limiting section covers fixed window, sliding window and token bucket limiters and returns a 429 response with a Retry-After header. It is aimed at developers using Next.js, Vercel, Cloudflare Workers, Deno or Bun. The skill says not to use it for self-hosted or TCP Redis clients, Redis Cluster administration, or vector similarity search.

Written from the project's SKILL.md and checked against it.

What it can do

  • Redis client setupInstalls @upstash/redis and @upstash/ratelimit and creates one client from environment variables.
  • Cache-aside with TTLReads from Redis first, falls back to the database, and sets an expiry on cache entries.
  • Write-through and invalidationUpdates or deletes cached user records when the underlying data changes.
  • Sessions with sliding expirationCreates, reads and destroys session records, extending the TTL on each read.
  • Fixed window rate limitingLimits requests per fixed time window using Ratelimit.fixedWindow.
  • Sliding window rate limitingLimits requests over a rolling window using Ratelimit.slidingWindow.
  • Token bucket rate limitingAllows bursts of requests with Ratelimit.tokenBucket.
  • 429 responses with Retry-AfterReturns HTTP 429 with rate limit headers when a request is over the limit.
  • Edge analytics handlingPasses the pending promise to context.waitUntil on edge runtimes with analytics enabled.

What you need

  • Upstash Redis database with REST URL and token
  • Environment variables UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN
  • Node.js 18+ or any runtime with global fetch

Try asking

  • Add Redis caching with a one hour TTL to my getUser function.
  • Rate limit my Next.js search route to 10 requests per 10 seconds.
  • Create session helpers with sliding expiration using Upstash Redis.

Good to know

  • Every Redis command is an HTTP request, so batch commands with pipeline() or MGET/MSET.
  • Avoid KEYS * in production.
  • Targets @upstash/redis 1.x and @upstash/ratelimit 2.x.
  • Not for self-hosted or TCP Redis clients, Redis Cluster administration, or vector search.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/upstash-redis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB

Alternatives to upstash-redis

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

upstash-redis: common questions

Can I use Upstash Redis from Cloudflare Workers or edge middleware?

Yes. The skill says the client talks to Redis over HTTP, so it works in edge middleware and short-lived functions where a TCP connection does not.

Which rate limiting algorithms does this skill cover?

It covers fixed window, sliding window and token bucket. The skill describes sliding window as the default choice for most cases.

Should I JSON.stringify values before storing them?

No. The skill says values are serialized automatically, so objects, arrays and numbers round-trip without manual JSON handling.

How do I install upstash-redis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is upstash-redis free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is upstash-redis safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to upstash-redis?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

upstash-redis Install

Add to stack

Loading.