Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@upstash/react-cli

Package Overview
Dependencies
Maintainers
6
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@upstash/react-cli

@upstash/react-cli CLI for Upstash Redis

  • 1.0.13
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
14K
increased by0.49%
Maintainers
6
Weekly downloads
 
Created
Source

@upstash/react-cli

CLI for Upstash Redis
upstash-react-cli.vercel.app

Upstash Redis CLI

1. Install

$ npm install @upstash/react-cli

2. Add a client component in your app:

// /app/components/cli.tsx

"use client"
import { RedisCli } from "@upstash/react-cli";

import "@upstash/react-cli/dist/index.css";


<div
        style={{
          width: "100%",
          height: "100%",
          maxWidth: "48rem",
          maxHeight: "32rem",
        }}
      >
  <RedisCli url="UPSTASH_REDIS_REST_URL" token="UPSTASH_REDIS_REST_TOKEN" />;
</div>

With Tailwind CSS

If you already have a tailwindcss toolchain, you can omit the css import and add the library to your tailwind config file:

// tailwind.config.js

module.exports = {
  content: [
    // ...
    "./node_modules/@upstash/react-cli/**/*.js", // <--  add this line
  ],
  //...
}

FAQs

Package last updated on 24 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc