chatgpt.js

repository·main·Indexed 24 days ago

https://github.com/kudoai/chatgpt.js

An open source JavaScript library and interactive CLI for accessing AI models from providers like OpenRouter and Google AI. It supports multiple environments including Node.js, web browsers, Chrome extensions, and Greasemonkey userscripts. The package includes a CLI for sending queries, generating git commit messages, and creating ASCII art, as well as a set of specialized userscripts and extensions like AmazonGPT, BraveGPT, and GoogleGPT.

Tokens
10K
Snippets
27
Records
69
Agent score
85%

What's inside @kudoai/chatgpt.js

  1. ChatGPT Auto Refresh: Keep sessions fresh

    main
    ChatGPT Auto Refresh keeps your ChatGPT sessions active, helping to eliminate chat time limits, network errors, and Cloudflare checks. It can be installed via Greasemonkey/userscript managers.
  2. ChatGPT Widescreen: Enhance ChatGPT UI

    main
    ChatGPT Widescreen enhances the ChatGPT interface with wide, full, and tall-screen modes, as well as a spamblock mode. It also works on poe.com. Available for Chrome, Firefox, Edge, and via Greasemonkey.
  3. ChatGPT Auto-Continue: Automatically continue generating answers

    main
    ChatGPT Auto-Continue automatically triggers the 'continue' action when ChatGPT responses are cut off due to length limits. It is available as a browser extension for Chrome, Firefox, and Edge.
  4. AmazonGPT: AI chat & product summaries for Amazon

    main
    AmazonGPT adds AI chat and product/category summaries to the Amazon shopping experience, powered by the latest LLMs. It can be installed via Greasemonkey/userscript managers.
  5. Overview of Library Methods and Environments

    main

    The chatgpt.js library provides a wide range of methods categorized by their functional area (General, Chats, DOM, etc.). Methods are designed to run in different environments, which is critical for knowing where your code will execute:

    • Universal (🔄): Methods that work in both Node.js and Browser (DOM) environments.
    • Browser/DOM only (🌐): Methods that require a browser environment and access to the Document Object Model (e.g., dictate(), isTyping(), focusChatbar()).
    • Node.js only (🖥️): Methods intended for server-side or CLI usage (e.g., clearChats() in Node.js).