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 🙏

© 2024 – Pkg Stats / Ryan Hefner

howtoai

v1.0.20

Published

![howtoai](https://raw.githubusercontent.com/zaidmukaddam/howtoai/main/assets/howtoai.png)

Downloads

7

Readme

howtoai

howtoai

A command-line interface for OpenAI ChatGPT.

  • 💬 Ask questions and chat with OpenAI ChatGPT
  • 💻 Use from the command-line, no need for a web browser
  • 💬 Live chat mode for real-time conversation with the model
  • 🤖 Interact with the model using natural language

Update ⚠️

On December 11, 2022, OpenAI implemented additional protections through Cloudflare to enhance security for the unofficial API. In order to use the API, you will need to obtain and use a valid OpenAI "session token" and Cloudflare "clearance token." It is recommended to refresh your Cloudflare cf_clearance token every hour or so, as these tokens expire after a period of two hours.

Installation

To install howtoai, run the following command:

npm i howtoai -g

This will install the howtoai package globally on your system, allowing you to use it from any directory.

Usage

To see a list of the available commands for howtoai, run the following command:

howtoai --help

This will display a list of the available commands, along with their usage instructions.

To use howtoai, you will need to login to your ChatGPT account. To do so, run the following command:

howtoai login

To log in to ChatGPT, you can follow these steps:

  1. Open the ChatGPT website in your web browser.

  2. Open the developer tools in your browser. You can do this by right-clicking on the page and selecting the "Inspect" or "Inspect Element" option.

  3. In the developer tools, go to the "Application" or "Cookies" tab.

  4. Find the cookie named __Secure-next-auth.session-token.

  5. Copy the value for cf_clearance and save it to your environment. This will be your clearanceToken.

  6. Run the command howtoai login in your terminal or command prompt.

  7. When prompted, paste the copied values into the input field.

After completing these steps, you should be logged in to ChatGPT.

To ask a question, run the following command:

howtoai <question>

This will send your question to ChatGPT, and the model will respond with an answer.

To start a live chat session, run the following command:

howtoai live

This will start a live chat session with ChatGPT. You can ask questions and the model will respond in real-time.

Author

howtoai was created and is maintained by Zaid.

(This readme was auto generated by ChatGPT and howtoai - Yes I'm worried too)