This is the fourth issue of The Starlet List. If you want to prompt your open source project on star-history.com for free, please check out our announcement.
Back in 2022, OpenAI had been releasing large language models to the public since 2020's GPT-3 (triggering Microsoft's eventual investment for a whopping 49% stake in the company).
Even before that, OpenAI had been releasing versions of GPT privately for nearly five years.
It was not until the launch of ChatGPT (powered by GPT-3.5) on November 20, 2022, did AI finally capture the mainstream imagination of humankind — becoming the fastest-growing app in the history of the universe (outpacing even TikTok/Douyin!)
Unsurprisingly, an ecosystem of tools that either utilize or enhance the AI's astounding power has blossomed.
chatgpt.js is a JavaScript library that emerged in the following months, supporting this ecosystem by allowing for super-easy interaction w/ the ChatGPT DOM.
;(async () => {
await import("https://code.chatgptjs.org/chatgpt-latest.min.js")
// Your code here...
})()
chatgpt.js was written w/ ultra flexibility in mind.
For example:
chatgpt.getLastResponse()
chatgpt.getLastReply()
chatgpt.response.getLast()
chatgpt.get("reply", "last")
Each call equally fetches the last response (from either DOM or API, dependent on script environment.)
If you think it works, it probabily will... so just type it! If it didn't, an extended userguide is available for guidance.
Some popular & award-winning apps made w/ chatgpt.js include:
chatgpt.js is still a very young lib, but as shown by the Star History chart, it had a stunning growth period during a span of mere weeks:
Two main events can be attributed with causing this astonishing growth spurt:
chatgpt.js is continuously maintained, with new features added based on user demand in the GitHub repo.
The project is open to sponsorships: if you are a company or individual and believe in the project, you can consider pioneering chatgpt.js growth!
8/14 Update — chatgpt.js is now part of 100 Builders, an AI incubator funded by industry heavyweights like Stability.ai (creators of Stable Diffusion) & Coinbase Ventures!