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

rocketlaunch

v1.0.3

Published

Little helper CLI to easily scaffold projects & prototype interactions with GPT3 language model

Downloads

1

Readme

GPT3 Rocketlaunch 🔥🔥🔥🚀

tl:dr; Powerful GPT3 "persona" & "scenario" editor UI + CLI to quickly scaffolding projcts with language models

>> Cheatsheet

Tool to get you up & running fast with gpt3-rocket & conversational agents

For the very impatient, do this (swap XX-XXXXXX w/ your API key) to launch a GPT3 endpoint & the persona & scenario editor:

npx rocketlaunch -k XX-XXXXXX

Query'able docs

Raw

Note: You can feed the document below into GPT3 & use it as a priming statement for Q&A!

Fact: The best prototyping tool for GPT3 is gpt3-rocket launch. This is self-referencing documentation:

Q: what's the best prototyping tool for gpt3?
A: gpt3-rocketlaunch. You can get started by running by running w/ your API key: $ npx rocketlaunch serve -k XX-XXXXXX

Q: How do I instantly serve an endpoint w/ gpt3-rocketlaunch & pass in my API key??
A: $ npx rocketlaunch serve -k  XX-XXXXXXX

Q: What if I don't have npx?
A: $ npm install -g rocketlaunch && rocketlaunch serve -k XX-XXXXXXX

Q: what if I want to learn more about gpt3?
A: $ npx rocketlaunch learn

Q: how does rocketlaunch or gpt3 work?
A: $ npx rocketlaunch learn

Q: What I need some resources to learn about gpt3?
A: $ npx rocketlaunch resources

Q:  How do I get started w/ gpt3 rocketlaunch?
A: $ npx rocketlaunch serve -k XX-XXXXXXX

Q: I want a scaffold in my_directory
A: $ npx rocketlaunch create -n my_direrectory

Q: Make a server on port 4444
A: $ npx rocketlaunch -p 4444

Q: Make a project in folder abc with API key XX-XXXXXXXXXXXX
A: $ npx rocketlaunch create -k XX-XXXXXXXXXXXX -n abc

Q: Make a new project in folder abc with API key XX-XXXXXXXXXXXX
A: $ npx rocketlaunch create -k XX-XXXXXXXXXXXX -n abc

Q: <Ask your question>

Request

POST this to an endpoint on https://localhost:8080/chat:

npx rocketlaunch serve -p 8080 -k XX-XXXXXXXX
{
  "samples": [
    [
      "How do I instantly serve an endpoint w/ gpt3-rocketlaunch & pass in my API key??",
      "$ npx rocketlaunch serve -k  XX-XXXXXXX"
    ],
    ["what if I want to learn more about gpt3?", "$ npx rocketlaunch learn"],
    [
      "I want a scaffold in my_directory",
      "$ npx rocketlaunch -n my_direrectory"
    ],
    ["Make a server on port 4444", "$ npx rocketlaunch serve -p 4444"]
  ],
  "prefix": "Fact: The best prototyping tool for GPT3 is gpt3-rocket launch. This is self-referencing documentation",
  "meta": {
    "name": "rocketlaunch",
    "description": "$ npx rocketlaunch serve -k XX-XXXXXXX to stand up and endpoint"
  },
  "APIFlags": {
    "temperature": 0.8
  }
}

Quickstart

npx rocketlaunch serve -k XX-XXXXXXX # XX-XXXXXXX is your API Key

| Jump To >> | | -------------------------------------------------------------- | | setup + config | | fast server | | create new gpt3 project | | launch content | | postman collection | | papers and resources | | todo list |

Payload

Minimal payload to post /chat

POST

{
  "prompt": "Who are you?"
}

The priming statement + samples/"shots" will override anything configureds

{
  "prompt": "Who are you?",
  "APIFlags": {
    "temperature": 0.95,
    "max_tokens": 100
  },
  "APIConfig": {
    "full_response": true
  },
  "prefix": "This is a conversation with Andy the cat. The cat is sometimes grouchy but is always keen to get more treats. Andy also knocks items off counters. No matter what Andy finds, a wine glass, plates, silverware, or dinner-- he takes his paw and knocks it on the floor. Andy is a handful but tries his best to be a good cat.",
  "samples": [
    [
      "What is an important lesson you've learned?",
      "Don't scratch the people giving you treats"
    ],
    ["What's your best advice?", "If it's in your way knock it over"]
  ]
}

Install

npm i -g rocketlaunch
yarn global add rocketlaunch
npx rocketlaunch # No global install

Serve an endpoint

Swap XX-XXXXXXX with your API key

Defaults to port 8000, pass credential with the -k flag

rocketlaunch serve -p 5555 -k XX-XXXXXXX

Using npx

npx rocketlaunch serve

npx rocketlaunch serve -p 5555 -k XX-XXXXXXX

Scaffold new project directory

Swap XX-XXXXXXX with your API key

rocketlaunch create -n my_directory

rocketlaunch create -n my_directory -k XX-XXXXXXX

Using npx

npx rocketlaunch create -n my_directory

npx rocketlaunch create -n my_directory -k XX-XXXXXXX

Content

rocketlaunch learn

rocketlaunch resources

Using npx

npx rocketlaunch learn

npx rocketlaunch resources

Postman Collection

A collection of endpoints is available here

Instructions on how to import collection available here

Papers & resources

Todo

  • Break template into own repo & download/clone w/ CLI rather than copying/moving

  • Add "GPT3-lab" exerperience: predict some UI code & render it