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

rootsby-cli

v0.1.5

Published

Ry is a command-line interface tool that allows you to save prompts and execute them using the OpenAI API.

Downloads

11

Readme

Rootsby cli

Ry is a command-line interface tool that allows you to save prompts and execute them using the OpenAI API.

Installation

To install the Ry CLI package, you need to have Node.js and npm installed on your system. After that, you can install the package using the following command:

npm install -g rootsby-cli

Usage:

Once you have installed the package, you can use the following command to view the available commands:

# you can use rootsby or ry to access the package
ry --help

This will display a list of available commands along with a brief description of their usage.

Prompt Management

The prompt command allows you to manage your prompts. You can use the following options with the prompt command:

ry prompt my_prompt_name "The text of the prompt"
# Usage: ry prompt [options] [name] [text...]
# Options:
#   -l, --list    List all prompts
#   -s, --set     Set a prompt
#   -d, --delete  Delete a prompt
#   -h, --help    Display help for command

List Prompts

To list all the prompts you have saved, use the -l or --list option with the prompt command:

ry prompt --list

This will display a list of all the prompts you have saved along with their names and texts.

Set a Prompt

To set a prompt, use the -s or --set option with the prompt command:

ry prompt --set "Prompt Name" "Prompt Text"

Replace "Prompt Name" with the name of the prompt you want to save and "Prompt Text" with the text you want to use for the prompt.

Delete a Prompt

To delete a prompt, use the -d or --delete option with the prompt command:

ry prompt --delete "prompt_name"

Replace "Prompt Name" with the name of the prompt you want to delete.

Execute a Prompt

The ask command allows you to execute a prompt using the text. You can use the following options with the ask command:

# Usage: ry ask [options] [text...]

# Options:
#   -e, --exec [prompt_name]  Name of the prompt to execute
#   --api_key [key_value]     Value of the api key
#   -h, --help                Display help for command

To execute a prompt, use the -e or --exec option with the ask command:

ry ask --exec "Prompt Name" "Text to use for the prompt"

Replace "Prompt Name" with the name of the prompt you want to execute and "Text to use for the prompt" with the text you want to use for the prompt.

API Key

To use the OpenAI API, you need to provide an API key. You can do this by using the --api_key option with the ask command:

ry ask "Text to use for the prompt" --api_key "$YOUR_API_KEY" 

Replace YOUR_API_KEY with your actual OpenAI API key.

Configuration

The config command allows you to access and modify the configuration of the Ry CLI package. You can use the following options with the config command:

# Usage: ry config [options] [key] [value]

# Options:
#   -s, --set     Paired key value to set in the config
#   -d, --delete  Key to delete from the config
# --full Output the full config
# -h, --help Display help for command

Set a Configuration Key

To set a configuration key, use the -s or --set option with the config command:

ry config --set "this_is_my_key" "Config Value"

Replace "Config Key" with the name of the configuration key you want to set and "Config Value" with the value you want to set.

Delete a Configuration Key

To delete a configuration key, use the -d or --delete option with the config command:

ry config --delete "Config Key"

Replace "Config Key" with the name of the configuration key you want to delete.

Output the Full Configuration

To output the full configuration, use the --full option with the config command:

ry config --full

This will display the full configuration of the Ry CLI package.

Help

To get help on a specific command, use the --help command followed by the command you want to get help for:

# General help
ry --help
# Help with the prompt command
ry prompt --help
# Help with the ask command
ry ask --help
# Help with the config command
ry config --help