shipped
chatgpt-prompts
140+ prompts as a typed NodeJS library
- Year
- 2023
- Role
- Solo
- Category
- oss
- Status
- shipped
- GitHub stars
- 712
- Forks
- 81
- Prompts
- 140+
Built with
- TypeScript
- Node.js
- GitHub Actions
In early 2023 the useful ChatGPT prompts were all sitting in a markdown file.
awesome-chatgpt-prompts had collected more than 140 of them, and using one
meant copying a paragraph out of a README and pasting it into a string.
This library turns each of them into a typed method.
const prompt = createChatGPTPrompt({ apiKey: OPENAI_API_KEY });
const res = await prompt.accountant("Why am I still broke as a software engineer?");
It extends Travis Fischer's unofficial NodeJS client for the API, and ended up featured in that project's own documentation. My most-starred repository, and still downloaded from npm three years after the last release.