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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@cdmx/wappler_sc_redis_tools

v0.0.2

Published

This SC Module provides a set of Redis-related tools for various operations, including data insertion, data retrieval, checking the Redis server's status, and inserting log data into Redis. These tools are designed to be used in Node.js applications and a

Readme

Created and Maintained by Roney Dsilva

Redis Tools

This SC Module provides a set of Redis-related tools for various operations, including data insertion, data retrieval, checking the Redis server's status, and inserting log data into Redis. These tools are designed to be used in Node.js applications and are optimized for robust error handling and clear parameter validation.

Table of Contents

Redis Insert Data

Description

Insert data into a Redis database under a specified key.

Input Parameters

  • Name: A unique name for this operation.
  • Key: The key under which the data should be inserted in Redis.
  • Data: The data to be inserted into Redis (should be a valid JSON string or object).

Output

  • Output: { success: true } if the operation was successful, or an error if not.

Redis Fetch Data

Description

Fetch data from a Redis database by key.

Input Parameters

  • Name: A unique name for this operation.
  • Key: The key from which data should be retrieved in Redis.

Output

  • Output: The retrieved data from Redis. If the data is JSON, it will be parsed and returned as an object; otherwise, the raw string is returned.

Redis Delete Data

Description

Delete data from a Redis database by key.

Input Parameters

  • Name: A unique name for this operation.
  • Key: The key to delete from Redis.

Output

  • Output: { success: true, deleted: <number> } where deleted indicates the number of keys that were deleted (0 if key didn't exist, 1 if key was deleted), or an error if the operation failed.

Check Redis

Description

Check the status of a Redis server (PING with timeout).

Input Parameters

  • Name: A unique name for this operation.
  • Timeout: Timeout in milliseconds for the server check (default: 5000ms).

Output

  • Output: The result of the PING command (usually 'PONG'), or an error if the server is unavailable or times out.

Redis Insert Log

Description

Insert structured log data into a Redis list for later analysis or auditing.

Input Parameters

  • Name: A unique name for this operation.
  • Key: The key (list) under which the log data should be inserted in Redis.
  • Timestamp: Timestamp for the log entry.
  • Log Level: The log level (e.g., info, error).
  • ID: The ID for grouping events.
  • Event: Event description.
  • Type: Type or action name of the event.
  • User ID: User ID from the provider.
  • Message: The log message.
  • Domain: Domain name.
  • System: System type.
  • Session ID: Session identifier.
  • Transaction ID: (Optional) Transaction identifier.
  • Message Context: (Optional) Additional details as a JSON object or string.
  • Is Note?: (Optional) Mark entry as a note.
  • Property Key: (Optional) Additional property key.
  • Property Value: (Optional) Additional property value.

Output

  • Output: { success: true } if the log was inserted successfully, or an error if not.

Error Handling

All Redis operations are wrapped in robust error handling. If an operation fails (e.g., invalid parameters, Redis unavailable, timeout), a clear error message is logged and thrown. Always check for errors in your integration and handle them appropriately.

Module Usage

  • All tools require a running Redis server and proper environment configuration (see REDIS_HOST, REDIS_PORT, etc.).
  • All parameters are validated before execution. Invalid or missing parameters will result in an error.
  • Data is automatically stringified and parsed as JSON where appropriate.