$npx skillfedfor your agent

redis-js

redis-js is an HTTP-based Redis client for JavaScript and TypeScript that works with Upstash's serverless infrastructure. It handles caching, session storage, rate limiting, and full-text search while automatically serializing and deserializing JavaScript types—no manual JSON conversion needed. The SDK supports all Redis data structures and includes patterns for leaderboards, distributed locks, and performance optimization.

redis-js lets you cache data and manage sessions with Upstash's serverless Redis SDK for JavaScript and TypeScript.

AI-generated summary based on this skill's SKILL.md

959 91 MITupdated by upstash

Decision gist · record as of 2026-07-27

redis-js lets you cache data and manage sessions with Upstash's serverless Redis SDK for JavaScript and TypeScript. redis-js is an HTTP-based Redis client for JavaScript and TypeScript that works with Upstash's serverless infrastructure. It handles caching, session storage, rate limiting, and full-text search while automatically serializing and deserializing JavaScript types—no manual JSON conversion needed. The SDK supports all Redis data structures and includes patterns for leaderboards, distributed locks, and performance optimization.

manual: git clone https://github.com/upstash/redis-js → cp -r redis-js/skills ~/.claude/skills/skills
skills/SKILL.md · version 54199151

Use it when

  • Yes, redis-js excels at caching and session storage in serverless environments.
  • redis-js supports rate limiting and leaderboards through sorted sets and atomic operations.

Verify before relying

Read SKILL.md below before installing (30 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

upstash/redis-js/skills · repository language: TypeScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What is redis-js and how does it work with serverless Redis?

redis-js is an HTTP-based Redis client for JavaScript and TypeScript designed for Upstash's serverless infrastructure. It handles caching, session storage, rate limiting, and full-text search while automatically serializing and deserializing JavaScript types—eliminating manual JSON conversion. The SDK supports all Redis data structures and is distributed under the MIT license.

Can redis-js be used for redis caching and session storage?

Yes, redis-js excels at caching and session storage in serverless environments. It provides straightforward APIs for storing and retrieving cached data with automatic type serialization, making it ideal for managing user sessions, temporary data, and frequently accessed information without the overhead of traditional Redis setup.

How do I implement rate limiting and leaderboards with redis-js?

redis-js supports rate limiting and leaderboards through sorted sets and atomic operations. You can use sorted sets to track user scores for leaderboards and implement rate limiting by maintaining counters with TTL expiration. The SDK's automatic serialization simplifies working with these data structures compared to manual approaches.

Does redis-js support full-text search and data aggregation?

redis-js enables querying and aggregating data with full-text search capabilities. It works with Redis's search functionality to index and retrieve complex data patterns, supporting nested object queries and advanced filtering—all while maintaining automatic serialization of JavaScript types.

What performance optimizations does redis-js provide?

redis-js optimizes performance through pipelines and batching, allowing you to group multiple operations into single requests. This reduces network overhead in serverless environments and improves throughput when executing related commands sequentially or in parallel.

Can I migrate from ioredis or node-redis to redis-js?

Yes, redis-js is designed as a migration path from traditional Redis libraries like ioredis and node-redis. While the API differs due to its HTTP-based nature, redis-js provides equivalent functionality for caching, data structures, and session management with the added benefit of serverless compatibility and automatic type handling.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Upstash Redis SDK - Complete Skills Guide

This directory contains comprehensive guides for using the @upstash/redis SDK. These skill files are designed to help developers and AI assistants understand and use the SDK effectively.

Installation

npm install @upstash/redis

Quick Start

Basic Initialization
import { Redis } from "@upstash/redis";

// Initialize with explicit credentials
const redis = new Redis({
  url: "UPSTASH_REDIS_REST_URL",
  token: "UPSTASH_REDIS_REST_TOKEN",
});

// Or initialize from environment variables
const redis = Redis.fromEnv();
Environment Variables

Set these in your .env

(truncated - see the full file via the links below)

File tree — 15 files
skills/SKILL.md
skills/advanced-features/auto-pipeline.md
skills/advanced-features/pipeline-and-transactions.md
skills/advanced-features/scripting.md
skills/data-structures/hashes.md
skills/data-structures/json.md
skills/data-structures/lists.md
skills/data-structures/sets.md
skills/data-structures/sorted-sets.md
skills/data-structures/streams.md
skills/data-structures/strings.md
skills/migrations/from-ioredis.md
skills/migrations/from-redis-node.md
skills/patterns/caching.md
skills/patterns/distributed-locks.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Cache data and manage sessions using serverless Redis”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

upstash-redis-js
by upstash · upstash/skills

Build serverless Redis applications with the Upstash Redis TypeScript/JavaScript SDK. Handles caching, session storage, rate limiting, leaderboards, and full-text search with automatic serialization of native JavaScript types. Includes support for all Redis data structures and Lua scripting.

MITupdated Jul 2026
★ 15repo stars
upstash-redis-start
by upstash · upstash/skills

Get a working Redis database for your agent instantly via a single HTTP request to Upstash's start-redis endpoint. No signup, credentials, or configuration needed—just POST with an idempotency key and receive an endpoint and token ready to use. Ideal for agent short-term memory, conversation logs, work queues, and ranked recall; databases expire after 3 days unless claimed.

MITupdated Jul 2026
★ 15repo stars
upstash-ratelimit-js
by upstash · upstash/skills

This skill guides you through implementing rate limiting with Upstash's Redis-backed TypeScript/JavaScript SDK. Learn to install the SDK, connect to Redis, create a rate limiter, and apply it to incoming requests using sliding window or other algorithms.

MITupdated Jul 2026
★ 15repo stars
Upstash Redis Kv
by intellectronica · intellectronica/agent-skills

Upstash Redis Kv connects to Upstash's Redis-compatible key-value store through a REST interface, enabling you to persist and query data using standard Redis commands. The skill supports all major Redis data structures—strings, hashes, lists, sets, and sorted sets—along with operations like caching, counters, and leaderboards.

CC0-1.0updated Apr 2026
★ 279repo stars
upstash-cli
by upstash · upstash/skills

Upstash CLI lets you manage Redis, Vector, Search, and QStash resources programmatically through the Upstash Developer API. All commands output JSON and run non-interactively, making them ideal for automation workflows. Handle database creation, backups, indexes, team members, and service configuration from the command line.

MITupdated Jul 2026
★ 15repo stars
upstash
by upstash · upstash/skills

Access unified documentation and guidance for all Upstash SDKs including Redis, QStash, Vector, Search, Workflow, and Box. Choose the relevant sub-skill for your language and use case, whether you're caching, scheduling messages, building vector applications, or orchestrating serverless workflows.

MITupdated Jul 2026
★ 15repo stars

More skills Redis (NOASSERTION) · python-backend (MIT) · upstash-box-py (MIT) · upstash-box-js (MIT)

Tags
serverless-databasein-memory-cachekey-value-storereal-time-featurestype-serializationrest-api-clientdistributed-systemsperformance-optimizationschema-search