Skip to content
HUIAHUB

upstash/redis-js/skills

Upstash Redis JS

Guides coding agents using Upstash Redis for caching, sessions, rate limiting, leaderboards, search, Redis data structures, and automatic serialization.

Agent skillAgent skillsMIT
No scriptsNetwork accessNo hooksAsks for secretsSee the security check

What Upstash Redis JS does

This skill gives coding agents instructions and code examples for working with the @upstash/redis SDK in JavaScript and TypeScript projects. The agent starts with SKILL.md, which explains how to install the SDK and initialize a Redis client using a REST URL and token or Redis.fromEnv(). It recommends environment variables for credentials and shows how to store native JavaScript values without manually converting them to JSON. The quick reference covers strings, hashes, lists, sets, sorted sets, JSON, and key expiration.

For specific tasks, the agent can consult separate Markdown guides. Pattern files cover caching, session storage, rate limiting, distributed locks, and leaderboards. Other references explain batching, pipelines, transactions, Lua scripting, Redis replicas, vector indexes, and error handling. The search guides cover schema definitions, querying, filtering, aggregations, index management, and adapters for node-redis and ioredis. Migration guides explain changes needed when moving from those Redis clients to @upstash/redis.

The output is guidance and code examples that an agent can apply to an existing application. The repository documents npm install @upstash/redis for installing the SDK, but does not provide a dedicated skill installer. The skills/ directory must be added to the agent's skill location separately. Using the examples requires a configured Redis connection.

Install

git clone https://github.com/upstash/redis-js.git && mkdir -p .claude/skills && cp -r redis-js/skills .claude/skills/upstash-redis-js

Read the security check below before you run it. The repository's own instructions win if they differ.

Security check

What the skill's files do, from reading them. A flag that nobody has checked yet says "Not checked", never "No".

Runs scripts
No
Uses the network
Yes
Installs hooks
No
Asks for secrets
Yes

The security scan found that the skill does not run scripts or install hooks. It requires network access and Redis credentials. The examples use an Upstash REST URL and token, which should remain in environment variables rather than committed source files. The skill itself is documentation, but an agent following it may modify application code, install dependencies, or execute commands against a Redis database. Review proposed commands and code changes before approval, preferably using a test database. The SDK README also documents anonymous telemetry and options to disable it.

Scan details: SKILL.md mentions an API key, token or secret variable. SKILL.md instructions include web requests or URLs to fetch. Checked at commit 4d3f58ef6f01.

Use cases

  • Implement Redis caching, session storage, and key expiration in JavaScript applications.
  • Build rate limiting, distributed locks, and sorted-set leaderboards.
  • Add full-text search, filtering, aggregation, or vector queries to Redis-backed applications.
  • Migrate from ioredis or node-redis and update serialization and command syntax.

Limitations

  • The repository ships no dedicated skill installer. The install command manually copies the skills/ folder, including SKILL.md and its advanced-features, data-structures, migrations, patterns, performance, and search guides.
  • Running the examples requires Redis connection credentials and network access to the database.
  • The rate-limiting guide recommends `@upstash/ratelimit` for production because simple counters can be imprecise at window boundaries.
  • Search indexing is asynchronous. The search guide recommends `waitIndexing()` when queries must reflect recent changes.

Sources