npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

gpt4scrape

v1.0.2

Published

Unofficial scrape for gpt-4

Downloads

12

Readme

gpt4scrape

Overview

gpt4scrape is an unofficial tool for scraping GPT-4 using a free chatGPT4 website. This project is designed for fun and educational purposes, not for business or commercial use. The package leverages Playwright to capture WP Nonce tokens from network requests, which is a challenging task to accomplish using fetch. Contributions are welcome, especially if someone finds a way to achieve the same functionality using fetch.

Installation

To install the package and its dependencies, run:

npm install gpt4scrape

Usage

Here is an example of how to use the gpt4scrape package to interact with GPT-4.

Initializing and Sending Messages

  1. Initialize the chatbot and get the WP Nonce token.
  2. Send a series of messages to the chatbot.
const { InitialChatbot, ChatClient } = require('gpt4scrape');

async function runExample() {
  // Step 1: Initialize InitialChatbot and retrieve the nonce token
  const initialChatbot = new InitialChatbot();
  await initialChatbot.initialize();
  const nonce = initialChatbot.getNonce();
  console.log('Initial nonce:', nonce);

  // Step 2: Create ChatClient instance using InitialChatbot
  const chatClient = new ChatClient(initialChatbot);

  // Step 3: Send messages using ChatClient
  const messages = ["Hello!", "What's the weather today?", "Tell me a joke."];
  for (const message of messages) {
    const response = await chatClient.sendMessage(message);
    console.log('Response:', response);
  }
}

runExample();

Why Playwright?

Playwright is used in this project to capture the WP Nonce token from network requests. Capturing this token via fetch is challenging and complex, making Playwright a more suitable option for this task. If anyone can achieve this using fetch, contributions are highly appreciated.

Future Versions

In future versions, we plan to include a method for storing message history to enhance the functionality of the chatbot interactions.

Important Notes

  • This is an unofficial tool for scraping GPT-4 using a free chatGPT4 website.
  • This project is intended solely for learning and fun purposes.
  • The author is not responsible for any illegal activities conducted by users of this tool.

Disclaimer

This project is for educational and fun purposes only. The author is not liable for any misuse of this tool. Users should not use this tool for any illegal activities. This tool is not for sale and not intended for commercial use.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the functionality or address any bugs.

License

This project is licensed under the ISC License.

Contact

For any issues or questions, please visit the issues page.

Author

SACHIBOT