Skip to content

Commit a868450

Browse files
committed
rename
1 parent d571d71 commit a868450

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Databrowser for Upstash Redis
1+
# RedisBrowser for Upstash Redis
22

3-
`@upstash/react-databrowser` is a React component that provides a UI for browsing and editing data in your Upstash Redis instances. It’s easy to set up and integrate into your React applications. This guide will help you get started with the installation and basic usage.
3+
`@upstash/react-redis-browser` is a React component that provides a UI for browsing and editing data in your Upstash Redis instances. It’s easy to set up and integrate into your React applications. This guide will help you get started with the installation and basic usage.
44

55
## Table of Contents
66

@@ -13,7 +13,7 @@
1313
Install the databrowser component via npm:
1414

1515
```sh-session
16-
$ npm install @upstash/react-databrowser
16+
$ npm install @upstash/react-redis-browser
1717
```
1818

1919
## 2. Configuration
@@ -31,23 +31,23 @@ NEXT_PUBLIC_UPSTASH_REDIS_REST_TOKEN=YOUR_REDIS_REST_TOKEN
3131

3232
### Creating the Data Browser Component
3333

34-
In your React application, create a new component that will utilize @upstash/react-databrowser.
34+
In your React application, create a new component that will utilize @upstash/react-redis-browser.
3535

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

3838
```tsx
39-
import { Databrowser } from "@upstash/react-databrowser"
39+
import { RedisBrowser } from "@upstash/react-redis-browser"
4040

41-
import "@upstash/react-databrowser/dist/index.css"
41+
import "@upstash/react-redis-browser/dist/index.css"
4242

43-
export default function DatabrowserDemo() {
43+
export default function RedisBrowserDemo() {
4444
const redisUrl = process.env.NEXT_PUBLIC_UPSTASH_REDIS_REST_URL
4545
const redisToken = process.env.NEXT_PUBLIC_UPSTASH_REDIS_REST_TOKEN
4646

4747
return (
4848
<main style={mainStyle}>
4949
<div style={divStyle}>
50-
<Databrowser token={redisToken} url={redisUrl} />
50+
<RedisBrowser token={redisToken} url={redisUrl} />
5151
</div>
5252
</main>
5353
)

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@upstash/react-databrowser",
2+
"name": "@upstash/react-redis-browser",
33
"version": "0.0.0",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
@@ -9,9 +9,9 @@
99
"access": "public"
1010
},
1111
"bugs": {
12-
"url": "https://github.com/upstash/redis-databrowser/issues"
12+
"url": "https://github.com/upstash/react-redis-browser/issues"
1313
},
14-
"homepage": "https://github.com/upstash/redis-databrowser",
14+
"homepage": "https://github.com/upstash/react-redis-browser",
1515
"files": [
1616
"./dist/**"
1717
],
@@ -79,4 +79,4 @@
7979
"react": "^18.2.0 || ^19",
8080
"react-dom": "^18.2.0 || ^19"
8181
}
82-
}
82+
}

src/components/databrowser/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { DataDisplay } from "./components/display"
1414
import { Sidebar } from "./components/sidebar"
1515
import { KeysProvider } from "./hooks/use-keys"
1616

17-
export const Databrowser = ({ token, url }: RedisCredentials) => {
17+
export const RedisBrowser = ({ token, url }: RedisCredentials) => {
1818
const credentials = useMemo(() => ({ token, url }), [token, url])
1919

2020
return (

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { Databrowser } from "@/components/databrowser"
1+
export { RedisBrowser } from "@/components/databrowser"

src/playground.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import ReactDOM from "react-dom/client"
22

3-
import { Databrowser } from "@/components/databrowser"
3+
import { RedisBrowser } from "@/components/databrowser"
44

55
ReactDOM.createRoot(document.querySelector("#root")!).render(
66
<main className="mx-auto flex h-[600px] max-h-full max-w-screen-lg items-center justify-center p-10">
7-
<Databrowser
7+
<RedisBrowser
88
token={process.env.NEXT_PUBLIC_UPSTASH_REDIS_REST_TOKEN}
99
url={process.env.NEXT_PUBLIC_UPSTASH_REDIS_REST_URL}
1010
/>

0 commit comments

Comments
 (0)