$git clone https://github.com/pacholoamit/chatgpt-prompts> NOTE: chatgpt-prompts is under active development, most of the features are still experimental and subject to change. This library is also featured in the unofficial NodeJS client for OpenAI's ChatGPT 3 API.
| 1 | <p align="center"> |
| 2 | <h1 align="center"><b>🤖 Chat GPT Prompts</b></h1> |
| 3 | <p align="center"> |
| 4 | A collection of 140+ amazing and useful prompts for GPT-3 |
| 5 | </p> |
| 6 | </p> |
| 7 | <p align="center"> |
| 8 | <img src="https://img.shields.io/github/package-json/v/pacholoamit/chatgpt-prompts" /> |
| 9 | <img src="https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg" /> |
| 10 | <img src="https://img.shields.io/github/actions/workflow/status/pacholoamit/chatgpt-prompts/publish.yml" /> |
| 11 | <img src="https://img.shields.io/github/license/pacholoamit/chatgpt-prompts" /> |
| 12 | <img src="https://img.shields.io/node/v/chatgpt-prompts"> |
| 13 | </p> |
| 14 | |
| 15 | > NOTE: chatgpt-prompts is under active development, most of the features are still experimental and subject to change. This library is also featured in the [unofficial NodeJS client](https://github.com/transitive-bullshit/chatgpt-api) for OpenAI's ChatGPT 3 API. |
| 16 | |
| 17 | # 💻 Installation |
| 18 | |
| 19 | This package extends the unofficial [NodeJS Client](https://github.com/transitive-bullshit/chatgpt-api) for OpenAI's GPT-3 API. |
| 20 | Make sure you have `node >= 18` and have an OpenAI API Key that you can get [here](https://platform.openai.com/account/api-keys) before you proceed. |
| 21 | |
| 22 | ``` |
| 23 | npm install chatgpt chatgpt-prompts |
| 24 | ``` |
| 25 | |
| 26 | # 🏗️ Project Setup |
| 27 | |
| 28 | Please feel free to read this [blogpost](https://dev.to/pacholoamit/use-over-140-amazing-chatgpt-prompts-in-10-minutes-na3) I made if you are unfamiliar in setting up a NodeJS project that is ESM compatible. Otherwise, you can follow the commands below |
| 29 | to set up your project. |
| 30 | |
| 31 | ```bash |
| 32 | git clone --depth 1 https://github.com/pacholoamit/chatgpt-prompts.git |
| 33 | cp -r chatgpt-prompts/examples/basic my-chatgpt-app |
| 34 | cd my-chatgpt-app |
| 35 | npm install |
| 36 | npm start # Make sure to change the OPEN_AI_API_KEY in src/index.ts |
| 37 | ``` |
| 38 | |
| 39 | # 🚀 Quickstart |
| 40 | |
| 41 | By default the `chatgpt-prompts` persists the instance of the prompt you are using. All of the 140+ prompts found at [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) are compiled in this library. |
| 42 | |
| 43 | ```typescript |
| 44 | import { createChatGPTPrompt } from "chatgpt-prompts"; |
| 45 | |
| 46 | const run = async () => { |
| 47 | /** |
| 48 | * @description ChatGPT Prompt, accepts the same parameters as the |
| 49 | * ChatGPTAPI constructor, but returns a promise that resolves to a |
| 50 | * ChatMessage. |
| 51 | * |
| 52 | * @see {@link https://github.com/transitive-bullshit/chatgpt-api/blob/main/docs/classes/ChatGPTAPI.md#constructor} |
| 53 | * |
| 54 | */ |
| 55 | const prompts = createChatGPTPrompt({ |
| 56 | apiKey: "OPEN_AI_API_KEY", |
| 57 | }); |
| 58 | |
| 59 | // Use the Accountant prompt of ChatGPT |
| 60 | let res = await prompt.accountant("Why am I still broke as a software engineer?"); |
| 61 | console.log(res.text); |
| 62 | |
| 63 | res = await prompt.accountant("How do I not become broke as a software engineer?"); |
| 64 | console.log(res.text); |
| 65 | |
| 66 | res = await prompt.accountant("Am I a software engineer?"); |
| 67 | console.log(res.text); |
| 68 | }; |
| 69 | |
| 70 | run().catch((err) => console.log("Something went wrong")); |
| 71 | ``` |
| 72 | |
| 73 | # 💯 Credits |
| 74 | |
| 75 | - A big thank you to [Travis Fischer](https://github.com/transitive-bullshit) for making an amazing [NodeJS Client](https://github.com/transitive-bullshit/chatgpt-api) of the ChatGPT API. |
| 76 | - All of the prompts featured in this package comes from [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) maintained by [Fatih Kadir Akın](https://github.com/f) |
| 77 | |
| 78 | # ⭐ Prompts |
| 79 | |
| 80 | Here are all of the 140+ available prompts you can use with this package including the function definition associated with. |
| 81 | |
| 82 | |
| 83 | |
| 84 | ## Linux Terminal |
| 85 | |
| 86 | I want you to act as a linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. when i need to tell you something in english, i will do so by putting text inside curly brackets {like this}. my first command is pwd |
| 87 | |
| 88 | ### Definition |
| 89 | |
| 90 | ```typescript |
| 91 | |
| 92 | export const linuxTerminal = (instance: ChatGPTAPI) => { |
| 93 | const prompt = `I want you to act as a l |