Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Upstash

Instructions for integrating Upstash Redis and QStash with Cloudflare Workers, including credential configuration via Wrangler secrets, package installation, and code implementation.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Upstash

Instructions for integrating Upstash Redis and QStash with Cloudflare Workers, including credential configuration via Wrangler secrets, package installation, and code implementation.

When To Use

Use when you need to connect a Cloudflare Worker to an Upstash Redis database or configure QStash task queues using environment secrets and specific HTTP clients.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-databases-third-party-integrations-upstash-workflow-guide.mdA guide explaining how to integrate Upstash Redis and QStash with Cloudflare Workers.Questions about a guide explaining how to integrate Upstash Redis and QStash with Cloudflare Workers.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up.textA text-based example demonstrating how to connect to an Upstash Redis instance from a Cloudflare Worker.Exact payloads, commands, or snippets shown in A text-based example demonstrating how to connect to an Upstash Redis instance from a Cloudflare Worker.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-2.textA plain text verification of a successful connection response from an Upstash database via Cloudflare Workers.Exact payloads, commands, or snippets shown in A plain text verification of a successful connection response from an Upstash database via Cloudflare Workers.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-3.textA text example demonstrating the use of the Redis CLI command to set a key-value pair within a Cloudflare Workers Upstash integration.Exact payloads, commands, or snippets shown in A text example demonstrating the use of the Redis CLI command to set a key-value pair within a Cloudflare Workers Ups...
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-4.textAn example showing how to set an environment variable for a Redis connection string within a Cloudflare Workers project.Exact payloads, commands, or snippets shown in An example showing how to set an environment variable for a Redis connection string within a Cloudflare Workers project.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-5.textCommands to add Upstash Redis REST URL and token as secrets to a Cloudflare Worker using Wrangler.Exact payloads, commands, or snippets shown in Commands to add Upstash Redis REST URL and token as secrets to a Cloudflare Worker using Wrangler.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-6.textThe npm installation command required to add the Upstash Redis client to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The npm installation command required to add the Upstash Redis client to a Cloudflare Workers project.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-7.textThe yarn command required to add the @upstash/redis package to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The yarn command required to add the @upstash/redis package to a Cloudflare Workers project.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-8.textThe pnpm command required to add the Upstash Redis client package to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The pnpm command required to add the Upstash Redis client package to a Cloudflare Workers project.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-9.textThe bun package manager command required to install the Upstash Redis client for Cloudflare Workers.Exact payloads, commands, or snippets shown in The bun package manager command required to install the Upstash Redis client for Cloudflare Workers.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-10.textA Cloudflare Worker script demonstrating how to use the @upstash/redis/cloudflare library to retrieve and store values in a Redis database using environment variables.Exact payloads, commands, or snippets shown in A Cloudflare Worker script demonstrating how to use the @upstash/redis/cloudflare library to retrieve and store value...
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-11.textA command-line instruction using wrangler to add a QStash token as a secret to a Cloudflare Worker.Exact payloads, commands, or snippets shown in A command-line instruction using wrangler to add a QStash token as a secret to a Cloudflare Worker.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-12.textThe npm installation command for the @upstash/qstash package used within Cloudflare Workers.Exact payloads, commands, or snippets shown in The npm installation command for the @upstash/qstash package used within Cloudflare Workers.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-13.textThe yarn command required to add the @upstash/qstash package to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The yarn command required to add the @upstash/qstash package to a Cloudflare Workers project.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-14.textThe pnpm command required to add the @upstash/qstash package to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The pnpm command required to add the @upstash/qstash package to a Cloudflare Workers project.
examples/workers-databases-third-party-integrations-upstash-cloudflare-workers-up-15.textThe command to install the Upstash QStash package using the Bun package manager for Cloudflare Workers.Exact payloads, commands, or snippets shown in The command to install the Upstash QStash package using the Bun package manager for Cloudflare Workers.

What This Skill Covers

  • Upstash ↗ is a serverless database with Redis\ and Kafka API. Upstash also offers QStash, a task queue/scheduler designed for the serverless.
  • Main sections: Upstash for Redis, Upstash QStash.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/databases/third-party-integrations/upstash