databases (core)โฑ10 minutes

Get Started with Upstash

Unverified

Quick Summary

โ€œServerless Redis, Kafka, and QStash โ€” pay per requestโ€

Best for: Startup founders and indie developers adding caching or rate limiting to Vercel or Cloudflare Workers deployments
Time to first integration: 10 minutes

๐Ÿ“‹Prerequisites

  • โœ“Node.js 18+ installed
  • โœ“A Upstash account โ€” sign up here
  • โœ“An existing project (Next.js, React, or Node.js recommended)

Setup Steps

4 steps
1

Create a database

Create a Redis database at upstash.com.

2

Install

Add the Upstash Redis SDK to your project.

bash
npm install @upstash/redis
3

Initialize

Create a client from your REST URL and token (or auto-detect from env).

typescript
import { Redis } from '@upstash/redis' const redis = Redis.fromEnv()
4

Use

Run standard Redis commands over HTTP.

typescript
await redis.set('key', 'value') const value = await redis.get('key')

Related Guides

Setting up a full stack? Check out these complementary guides.

Links

Upstash Guide | AI Navigator | AI Navigator