redis-js

Preserve JavaScript types across Redis REST operations with automatic serialization.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/alexisg24/claude-agrents-env-tests --skill redis-js-alexisg24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis-js
Source: https://github.com/alexisg24/claude-agrents-env-tests/tree/main/environments/nextjs-nestjs-pg-redis-agents/.agents/skills/redis-js
Command: npx skills add https://github.com/alexisg24/claude-agrents-env-tests --skill redis-js-alexisg24

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solve the friction of using Redis in serverless environments by providing a JavaScript/TypeScript SDK that preserves native data types across operations.

Core Features & Use Cases

  • Automatic serialization/deserialization of numbers, strings, objects, and arrays
  • Support for common Redis data structures (strings, hashes, lists, sets, sorted sets, JSON, streams)
  • Serverless-friendly REST access with URL/token initialization and environment-based setup
  • Use cases include caching, session storage, rate limiting, leaderboards, and JSON document workloads

Quick Start

Install the SDK and initialize Redis using the REST URL and token, then try a simple set/get example.

Frequently Asked Questions about redis-js

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Redis in a serverless JavaScript environment without manual serialization?

Use a serverless Redis SDK that provides automatic type preservation across REST calls, eliminating manual serialization for JavaScript and TypeScript applications. It natively handles numbers, strings, objects, and arrays without extra parsing steps.

Does Upstash Redis work with TypeScript for caching and session storage?

Yes, Upstash Redis works with TypeScript through a serverless SDK that supports caching and session storage. It connects via REST using URL and token initialization, preserving native data types across these common workload operations.

How do I initialize a Redis connection in a serverless function using environment variables?

Initialize the Redis connection in a serverless function by configuring the SDK with environment-based setup or explicit REST URL and token configuration. This approach avoids persistent connection limits typical in serverless environments.

Can I store and retrieve complex JSON documents in Redis without type loss?

You can store and retrieve complex JSON documents in Redis without type loss using an SDK with automatic serialization and deserialization. It maps objects and arrays directly to native JavaScript types across REST operations.

What Redis data structures are supported by JavaScript serverless SDKs?

JavaScript serverless SDKs support common Redis data structures including strings, hashes, lists, sets, sorted sets, JSON, and streams. This allows you to build rate limiting, leaderboards, and document workloads directly in TypeScript.