databases (core)โฑ10 minutes
Get Started with Upstash
UnverifiedQuick 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 steps1
1
Create a database
Create a Redis database at upstash.com.
2
2
Install
Add the Upstash Redis SDK to your project.
bash
npm install @upstash/redis3
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
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.