redis-js
Skill by upstash
Teaches AI assistants to use the Upstash Redis JavaScript and TypeScript SDK for serverless Redis work. It covers caching, session storage, rate limiting, leaderboards and full-text search for developers.
Install redis-js
Built from the published package, never by AI.
git clone --depth 1 https://github.com/upstash/redis-js /tmp/redis-js && mkdir -p ~/.claude/skills && cp -r /tmp/redis-js/skills ~/.claude/skills/redis-jsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/upstash/redis-js /tmp/redis-js && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/redis-js/skills ~/.gemini/antigravity-cli/skills/redis-jsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Redis JS is a skill guide for the @upstash/redis SDK, which handles serverless Redis operations in JavaScript and TypeScript. It is split into skill files for data structures, advanced features such as auto-pipelining, scripting and transactions, common patterns like caching, rate limiting, session management and leaderboards, performance, search, and migrations from ioredis and node-redis.
The SDK is installed with npm and connects with a REST URL and token, either passed to the Redis constructor or read from environment variables with Redis.fromEnv(). The guide says the SDK automatically serializes and deserializes JavaScript types. Search is covered through the @upstash/redis search extension and the @upstash/search-redis and @upstash/search-ioredis adapters. It is aimed at developers and AI assistants writing code that uses Upstash Redis.
Written from the project's SKILL.md and checked against it.
What it can do
- Data structuresCovers strings, hashes, lists, sets, sorted sets, JSON, streams and arrays in Redis.
- Automatic serializationPasses native JavaScript types to Redis without manual JSON.stringify or parsing.
- Full-text searchDescribes querying, filtering and aggregating with the @upstash/redis search extension.
- Auto-pipeliningExplains automatic request batching and manual pipelines with MULTI/EXEC and WATCH.
- Lua scriptingCovers server-side logic with EVAL and EVALSHA.
- Caching and sessionsShows cache-aside, write-through, TTL strategies and session storage patterns.
- Rate limiting and locksDescribes rate limiting with @upstash/ratelimit and distributed lock implementations.
- LeaderboardsShows sorted set leaderboards and real-time ranking patterns.
- Vector indexesCovers nearest-neighbour search inside Redis using redis.vector.
- Migration guidesExplains moving from ioredis or node-redis, including API and serialization differences.
What you need
- Upstash Redis REST URL and token
- npm to install @upstash/redis
Try asking
- Add Redis caching with a TTL to my product lookup function using @upstash/redis
- Build a leaderboard with sorted sets using the Upstash Redis SDK
- Set up rate limiting for my API route with @upstash/ratelimit and Redis
Good to know
- The source is a guide to SDK usage rather than a standalone tool.
- Search through TCP clients requires the separate @upstash/search-ioredis or @upstash/search-redis adapters.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
advanced-features/auto-pipeline.md1 KB -
advanced-features/pipeline-and-transactions.md1 KB -
advanced-features/scripting.md3 KB -
data-structures/arrays.md3 KB
Show all 32 files
-
data-structures/hashes.md2 KB -
data-structures/json.md4 KB -
data-structures/lists.md2 KB -
data-structures/sets.md3 KB -
data-structures/sorted-sets.md4 KB -
data-structures/streams.md5 KB -
data-structures/strings.md2 KB -
data-structures/vector-indexes.md3 KB -
migrations/from-ioredis.md4 KB -
migrations/from-redis-node.md4 KB -
patterns/caching.md1 KB -
patterns/distributed-locks.md3 KB -
patterns/leaderboard.md4 KB -
patterns/rate-limiting.md5 KB -
patterns/session-management.md5 KB -
performance/batching-operations.md2 KB -
performance/data-serialization.md3 KB -
performance/error-handling.md2 KB -
performance/pipeline-optimization.md2 KB -
performance/redis-replicas.md484 B -
performance/ttl-expiration.md775 B -
search/adapters.md3 KB -
search/commands/aggregating.md6 KB -
search/commands/aliases.md2 KB -
search/commands/index-management.md5 KB
And 2 more files on GitHub.
Alternatives to redis-js
All alternatives →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
Compare with hugging-face-datasets, db-repair or alloydb-basics
redis-js: common questions
What does the redis-js skill cover?
It covers the @upstash/redis SDK, including data structures, search, pipelines, scripting, common patterns and migrations. Each topic has its own skill file in the skills directory.
Does the SDK convert JavaScript types automatically?
The source says the SDK handles automatic serialization and deserialization of JavaScript types. The guide shows storing numbers and objects directly instead of parsing strings.
How do I connect to Upstash Redis with this SDK?
You can pass the REST URL and token to the Redis constructor or call Redis.fromEnv() with UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN set in your environment.
How do I install redis-js?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is redis-js free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is redis-js safe to use?
It scores 85 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 redis-js?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
