@upstash/react-redis-browser
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

RedisBrowser for Upstash Redis

@upstash/react-redis-browser is a React component that provides a UI for browsing and editing data in your Upstash Redis instances.

Install

Install the databrowser component via npm:

$ npm install @upstash/react-redis-browser

Usage

Here's a basic example of how to use the component:

import { RedisBrowser } from "@upstash/react-redis-browser"
import "@upstash/react-redis-browser/dist/index.css"

export default function RedisBrowserDemo() {
  return (
    <main style={mainStyle}>
      <RedisBrowser 
        url={UPSTASH_REDIS_REST_URL} 
        token={UPSTASH_REDIS_REST_TOKEN} />
    </main>
  )
}

const mainStyle = {
  width: "100vw",
  maxWidth: "900px",
  height: "500px",
  margin: "0 auto",
}

/@upstash/react-redis-browser/

    Package Sidebar

    Install

    npm i @upstash/react-redis-browser

    Weekly Downloads

    98

    Version

    0.1.9

    License

    MIT

    Unpacked Size

    455 kB

    Total Files

    7

    Last publish

    Collaborators

    • mdogan
    • buggyhunter
    • cahidarda
    • upstashnpm