Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saltfishpr/redis-viewer

A tool to view redis data in terminal.
https://github.com/saltfishpr/redis-viewer

go redis tui

Last synced: about 2 months ago
JSON representation

A tool to view redis data in terminal.

Awesome Lists containing this project

README

        

# Redis Viewer

A tool to view Redis data in terminal.

![user interface](images/ui.png)

## Install

Go version >=1.16: `go install github.com/saltfishpr/redis-viewer@latest`

or

Download from [Release](https://github.com/saltfishpr/redis-viewer/releases).

## Usage:

See help: `redis-viewer --help`

| KeyBoard | Description |
| :------: | :--------------------- |
| ctrl+c | exit redis viewer |
| ↑ | previous key |
| ↓ | next key |
| ← | previous page |
| → | next page |
| r | reload data from redis |
| s | enter search keywords |
| enter | apply scan with text |

| Mouse | Description |
| :---------: | :----------------- |
| scroll up | detail scroll up |
| scroll down | detail scroll down |

default config file path is `$HOME/.redis-viewer.yaml`

example config file:

```yaml
addrs:
- 127.0.0.1:6380
- 127.0.0.1:6381
- 127.0.0.1:6382
- 127.0.0.1:6383
- 127.0.0.1:6384
- 127.0.0.1:6385

db:
username:
password:

master_name:
```

## Support:

- client, sentinel and cluster mode.
- `string, hash, list, set, zset` key types.

## Note:

In Windows, you should change system encoding to `UTF-8` before run this program.

## TODOs:

- [x] Add load animation.
- [x] Friendly value detail.
- [ ] Add log view.

Build with [bubbletea](https://github.com/charmbracelet/bubbletea).