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

standard-prompts

v1.1.0

Published

Standard AI prompts for the command line.

Downloads

6

Readme

standard-prompts

Standard AI prompts that can be invoked from the command line. To get started, make sure node.js is installed and run:

npm install -g standard-prompts

Note: This command will install standard prompts in the NPM bin directory; you may need to source the .bashrc or .zshrc file in order for the commands to be available in the same terminal session.

Standard prompts uses the OpenAI API. Make sure to also set OPENAI_API_KEY environment variable (and optionally OPENAI_API_MODEL):

export OPENAI_API_KEY=<insert-api-key-here>
export OPENAI_API_MODEL=gpt-4

If OPENAI_API_MODEL env var is not set, Standard Prompts defaults to the gpt-4 model.

Usage

Input can be either passed in as an argument to a standard prompt or piped in. For example, both are valid:

ai_code_generate "Standard gitignore file for a node.js project"
echo "Standard gitignore file for a node.js project" | ai_code_generate

Philosophy

Composable

Standard prompts follows the Unix philosophy of being composable. For example, commands can be piped together:

cat email-draft.txt | ai_review_email | pbcopy

The example commands:

  • Takes an email draft from email-draft.txt
  • Pipes it to ai_review_email to review the email.
  • Finally, pipes the reviewed email to pbcopy, which saves it to the clipboard for pasting into an email.

Favor Markdown Output

Output is generally given as Markdown.

Available Standard Prompts

Email

| Command | Description | |---------------------|--------------------------------------------------| | ai_email_generate | Generate an email given passed specifications. | | ai_email_review | Reviews and suggests improvements for an email draft.| | ai_email_revise | Reviews and outputs only the contents of the improved email. |

Code

| Command | Description | |---------------------|--------------------------------------------------| | ai_code_qa | Answer questions about code input. | | ai_code_generate | Generate code given description input. | | ai_code_review | Reviews and suggests improvements for code. | | ai_code_revise | Reviews and outputs only the contents of the improved code. |

Financial

| Command | Description | |------------------------|-----------------------------------------------| | ai_financial_qa | Answers financial related questions. | | ai_financial_review | Reviews financial statements or documents passed as input.|

Health

| Command | Description | |----------------------|-------------------------------------------------| | ai_health_qa | Answers health related questions. | | ai_health_review | Reviews health-related documents passed as input.|

General

| Command | Description | |------------------|---------------------------------------------------| | ai_generate | Generates text based on a given input. | | ai_review | Reviews a given text input. | | ai_summarize | Summarizes a given text input. | | ai_qa | Answers general questions. |

Tip: you can summarize this Readme using Standard Prompts: curl -s https://raw.githubusercontent.com/jonmbake/standard-prompts/main/README.md | ai_summarize.