npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@caldwell619/red-five

v0.0.10

Published

<img src='docs/red-five-logo.svg' height='150px'>

Downloads

49

Readme

Red Five Standing By

A Redis dashboard that aims to be easy on the eyes, and easy to use.

Screenshots

It's impossible to do a live demo, as there would need to be a running Redis server, roles, auth etc.

As a result, a collection of screens can be found here to illustrate how the app looks when running.

Highlights

Browser based dashboard powered by Node that lets you see into your Redis instances.

  • Key Management
  • CLI
  • Monitoring

Usage

npx @caldwell-619/red-five

# or to install globally ( not recommended )

npm i -g @caldwell-619/red-five
red-five

After running the above command, you can open the browser to http://localhost:5001/ to see the dashboard.

Options

There are currently 2 optional flags you can pass to configure the behavior.

| Name | Flag | Default | Description | | ------------ | ------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- | | Log Level | --log-level debug | silent | Controls what level of logging is done while the app is running. Silent is no logging, debug is thorough logging on every request | | Open browser | -o or --open | false | If present, your system default browser will be opened to the running app after 4 seconds |

Goal

The goal is to be simple. This doesn't try to do too much, or is a complete solution. It's designed to be a simple, easy to use monitoring tool for inspecting you Redis instances.

If you'd like to see something new, submit an issue!

Contributing

If you're interested in contributing, follow these steps ( WIP ).

If you're interested in the tech stack, check out this quick writeup

Connections

If you do not have any configured connections, you will be redirected to a page to create one.

Creating

Click the small plus in the top right hand corner to open the dialog. The host in this case is just the domain, not the protocol such as http. Example: localhost or redis.io

Switching

To switch connections, click the top left drop down to open your connection manager.

Choose the checkbox of the connection you'd like to "make active". All operations will now be directed at this instance.

Auth

Currently, only auth strings are supported for auth. This was all I needed, but feel free to upvote this issue if you'd like more options.

Configuration

Your configuration is stored on your local machine at ~/.redfive/config.json. Feel free to add your own connections manually, referencing this structure.

It is validated on load, so don't be worried about the structure being off. If you don't want to use the GUI to add your own connections, you can so here.

Keys

The is the core feature. Seeing keys, values, and TTLs. You can also edit TTLs, and the value of said key.

Viewing

You can view the key in parsed JSON as well as it's raw string.

The default is just as it's stored, but you can attempt to view it in parsed, highlighted JSON.

Adding new keys

On the left side explorer, you can hover or click on the circular button to reveal a small menu. In this menu, you can refresh or add a new key.

:warning: Currently the only supported key type is a string.

Remove Keys

You can of course remove the key with the lower left trash button

CLI

Some people prefer the CLI to the actual GUI. Why not both? A built in CLI that's sending commands to your desired instance.

Persisting Messages

There is a switch at the top right corner that will begin to persist the responses to local storage so they aren't lost on page change or refresh.

There are 2 options for persisting that can be found on the settings page.

You can choose how many messages are persisted before being deleted, and you can choose the method of removal.

Wipe

Once the messages reach number x, they are completely removed. You start over at 0 persisted messages, and the window will be reset.

Pop as you go

When messages reach number x, the oldest message is removed to make way for the new one. This will keep your persisted messages at number x until you either stop persisting or change the setting.

Behavior when switching

Whenever you turn off message persisting, the stored messages will be erased. If you don't like that or want some other behavior, submit an issue!

Monitoring

To monitor you instance in real time, go to /monitor, or choose the monitor button on the top right nav.

Slide the toggle to begin monitoring

:warning: Monitoring will reduce the performance of the instance.

If you leave this page, you will still be monitoring that instance until you turn it off, or kill the server.