Skip to content
Pacholo Amit
Index
shipped

chatgpt-prompts

140+ prompts as a typed NodeJS library

Year
2023
Role
Solo
Category
oss
Status
shipped
GitHub stars
715, source
npm installs
922, source

Rolling twelve months

Prompts
140+

Measured

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 pulled down 922, source times in the last twelve months, three years after the last release I published.

Next in the recorduptime-kuma-themes