upstash-redis-js

upstash-redis-js is a skill for Claude Code, Codex from frontal-labs/mcp-server. It costs 346 tokens per session (2,246 once invoked), scanned A, original, Apache-2.0.

A TypeScript and JavaScript guide for using Upstash Redis, a hosted key-value database accessed over HTTP. It covers use in web servers, serverless platforms, and edge runtimes.

In plain words
What is it for?
Use it to add caching, session storage, key-value data, leaderboards, and expiring records to a JavaScript or TypeScript application.
Why use it?
It helps avoid learning the Redis client interface and common data-storage patterns from scratch. It also explains approaches for caching, expiring data, and storing sessions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add caching, session storage, key-value data, leaderboards, and expiring records to a JavaScript or TypeScript application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frontal-labs/mcp-server/upstash-redis-js
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add frontal-labs/mcp-server --skill upstash-redis-js
Clone the repo
git clone --depth 1 https://github.com/frontal-labs/mcp-server

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upstash-redis-js

README.md
[![agentmods](https://agentmods.dev/badge/skills/frontal-labs/mcp-server/upstash-redis-js/github.svg)](https://agentmods.dev/skills/frontal-labs/mcp-server/upstash-redis-js)
Your own site
<a href="https://agentmods.dev/skills/frontal-labs/mcp-server/upstash-redis-js"><img src="https://agentmods.dev/badge/skills/frontal-labs/mcp-server/upstash-redis-js/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upstash-redis-js

Your own site · 80×15
<a href="https://agentmods.dev/skills/frontal-labs/mcp-server/upstash-redis-js"><img src="https://agentmods.dev/badge/skills/frontal-labs/mcp-server/upstash-redis-js.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 346 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00346 $0.02246
Opus 5.5 $0.00138 $0.00898
Sonnet 5.5 $0.00069 $0.00449
Haiku 4.5 $0.00035 $0.00225

Measured yesterday against content hash e70aaebc9ad7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

upstash-redis-js scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/upstash-redis-js/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 file:

UPSTASH_REDIS_REST_URL=https://your-redis.upstash.io
UPSTASH_REDIS_REST_TOKEN=your-token-here

No credentials yet? If you're an agent that needs scratch Redis and the user hasn't provided a database, you can mint a temporary one with a single POST to https://upstash.com/start-redis (3-day TTL, no signup).

Skill Files Overview

Data Structures (data-structures/)

Redis data types with auto-serialization examples:

  • strings.md - GET, SET, INCR, DECR, APPEND with automatic type handling
  • hashes.md - HSET, HGET, HMGET with object serialization
  • lists.md - LPUSH, RPUSH, LRANGE with array handling
  • sets.md - SADD, SMEMBERS, set operations
  • sorted-sets.md - ZADD, ZRANGE, ZRANK, leaderboard patterns
  • json.md - JSON.SET, JSON.GET, JSONPath queries for nested objects
  • streams.md - XADD, XREAD, XGROUP, consumer groups
  • arrays.md - ARSET, ARINSERT, ARSCAN, ARGREP, AROP, ring buffers with ARRING on sparse index-addressed arrays
  • vector-indexes.md - VECTOR.CREATE, VECTOR.ADD, VECTOR.QUERY nearest-neighbour search inside Redis via redis.vector

Advanced Features (advanced-features/)

Complex operations and optimizations:

  • auto-pipeline.md - Automatic request batching, performance optimization
  • pipeline-and-transactions.md - Manual pipelines, MULTI/EXEC for atomic operations
  • scripting.md - Lua scripts, EVAL, EVALSHA for server-side logic

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 205 lines · 346 tokens per session scan A e70aaebc9ad7

Subscribe to this mod's changes

upstash-redis-js is a skill published in the GitHub repository frontal-labs/mcp-server (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 346 tokens to every session and 2,246 once invoked, about $0.0014 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-15.