Product Hunt logo dark
  • Launches
    Coming soon
    Upcoming launches to watch
    Launch archive
    Most-loved launches by the community
    Launch Guide
    Checklists and pro tips for launching
  • Products
  • News
    Newsletter
    The best of Product Hunt, every day
    Stories
    Tech news, interviews, and tips from makers
    Changelog
    New Product Hunt features and releases
  • Forums
    Forums
    Ask questions, find support, and connect
    Streaks
    The most active community members
    Events
    Meet others online and in-person
  • Advertise
Subscribe
Sign in
Subscribe
Sign in
chatgpt.js

chatgpt.js

A powerful client-side JavaScript library for ChatGPT.

5.0
•2 reviews•

140 followers

A powerful client-side JavaScript library for ChatGPT.

5.0
•2 reviews•

140 followers

Visit website
Interface design tools
•
LLMs
•
UI frameworks
chatgpt.js is a powerful JavaScript library that allows for super easy interaction w/ the ChatGPT DOM. • Feature-rich • Object-oriented • Easy-to-use • Lightweight (yet optimally performant)
  • Overview
  • Launches1
  • Reviews2
  • Alternatives
  • Team
  • Awards
  • More
Company Info
chatgpt.js.orgGitHub
chatgpt.js Info
Launched in 2023View 1 launch
Forum
p/chatgpt-js
  • Blog
  • •
  • Newsletter
  • •
  • Questions
  • •
  • Forums
  • •
  • Product Categories
  • •
  • Apps
  • •
  • About
  • •
  • FAQ
  • •
  • Terms
  • •
  • Privacy and Cookies
  • •
  • X.com
  • •
  • Facebook
  • •
  • Instagram
  • •
  • LinkedIn
  • •
  • YouTube
  • •
  • Advertise
© 2025 Product Hunt
SocialLinkedInMediumX

Similar Products

Boring Avatars
Boring Avatars
JavaScript library to generate SVG avatars based on text
5.0(3 reviews)
Avatar generators
Wavie.js
Wavie.js
An awesome javascript library for creating background waves.
Webix
Webix
JavaScript UI Library; HTML5 JS framework, 102 UI Web Widget
UI frameworks
chatgpt.js gallery image
chatgpt.js gallery image
chatgpt.js gallery image
Free
Launch tags:
Design Tools•Developer Tools•Artificial Intelligence
Launch Team
Alan MeiraAdam Luiㅊ mk ㅊ

What do you think? …

Adam Lui
Adam Lui
chatgpt.js

chatgpt.js

Maker
📌
Hey guys, sharing this new ChatGPT JavaScript library that powers many award-winning & popular apps, including: - DuckDuckGPT - ChatGPT Infinity - Automatic ChatGPT DAN - ChatGPT Widescreen It just passed 100,000 monthly jsDelivry hits, so its popularity is growing, probably because it's reallly easy to use: https://chatgpt.js.org/#/?id=usage You can check out an extended list of popular apps that use this library here: https://chatgpt.js.org/#/?id=mad...
Report
2yr ago
Fabio Viola
Fabio Viola
@adamlui I had seen this library before on GitHub since it is used by several projects. Nice work, Adam!
Report
2yr ago
Adam Lui
Adam Lui
chatgpt.js

chatgpt.js

Maker
@tailormeta thank you!!
Report
2yr ago
Ricardo Luz

Voxme: AI coach, insights, guidance

How does chatgpt.js handle error management when interacting with the ChatGPT DOM? Are there any built-in features to aid developers in this aspect? And by the way, congrats on the launch!
Report
2yr ago
Adam Lui
Adam Lui
chatgpt.js

chatgpt.js

Maker
@ricardo_luz thanks! The lib uses fallbacks where possible so that apps can continue to run for a max positive user experience, for example: var menuBtn = document.querySelector('nav button[id*="headless"]') || {}; ..then if OpenAI changed the menu button, the lib selected an empty object so the app won't crash, and the lib is patched ASAP and served via the https://code.chatgptjs.org/chatg... so no maintenance required by app author (unless the jsDelivr URL was used which is required for userscripts that post to repo's like Greasy Fork that maintain a whitelist of pre-approved CDNs, then bumping the version is required) But even then, error logging is used to provide aid to devs on DOM updates that potentially beak things: try { menuBtn.click(); } catch (error) { console.error('🤖 chatgpt.js >> Headless menu not found'); return; } ...so if error is observed, you can quickly report it on GitHub and it will be patched right away (or even submit a pull request yourself!)
Report
2yr ago
Isaac Booker
Isaac Booker
MegaVote

MegaVote

Wow cool, Congrats Adam on your launch!
Report
2yr ago
Adam Lui
Adam Lui
chatgpt.js

chatgpt.js

Maker
@isaac_booker thanks bro!
Report
2yr ago
Appwrite
Appwrite — The open-source Vercel alternative
The open-source Vercel alternative
Promoted

Do you use chatgpt.js?

5.0
Based on 2 reviews
Review chatgpt.js?
Reviews
Helpful

You might also like

Boring Avatars
Boring Avatars
JavaScript library to generate SVG avatars based on text
Wavie.js
Wavie.js
An awesome javascript library for creating background waves.
Webix
Webix
JavaScript UI Library; HTML5 JS framework, 102 UI Web Widget
View more
Nikolai Persiianov
Nikolai Persiianov
•1 review
Congratulations! What are some unique features or aspects of your project that set it apart from competitors? How do you plan to stay ahead in the market?
Report
2yr ago
Adam Lui
Adam Lui
chatgpt.js

chatgpt.js

@nikolai_persiianov Thank you! Currently there are no competitors for client-side ChatGPT libraries (a ton of API wrappers exist in many languages for back-end) so that is likely partially responsible for the great traction thus far. Apart from being unique in existence, a lot of the functions are quite easy to use but very powerful. For example, chatgpt.alert() is used to easily trigger alerts to auto-updates when apps get updated, resulting in beautiful alerts by simply supplying a title, msg & named button function as arguments: ... that also drive traffic where you want (GitHub, blog, etc.) when you include links, to increase social activity on other platforms. Also the needs of users are used to build out next features. For example, someone needed it to render HTML, and the function was added within days) and because it's open-source yet very actively maintained, that keeps it ahead in the market at light speed (compare this to issues raised in some other repos take up to months to resolve)
Report
2yr ago
Thomas Leon Highbaugh
Thomas Leon Highbaugh
•12 reviews
First impression of your site: the font size is a little big, making the content feel more crowded than I personally prefer. However, that is a minor thing compared to the deeply appreciated no-nonsense and to the point documentation that site provides and the links at the end to some useful tools all sans any of the typical BS requiring I use Chrome instead to install the web extension for it that won't run on Firefox or nagging about the change in Chrome's manifest version for 12 paragraphs I don't really care enough to read since I am not using it anyway. Instead, clear writing and a product that targets common userscript managers, with friends that provide useful functionality as is.
Report
2yr ago