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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ask-chat

v1.0.0

Published

ChatGPT in your terminal - powered by GPT-5. Debug code, get help, and chat with AI without leaving the command line.

Downloads

16

Readme

Ask-Chat CLI

ChatGPT in your terminal - powered by GPT-5

A lightning-fast CLI tool that brings the power of ChatGPT directly to your command line. Debug code, get instant answers, and boost your productivity without leaving the terminal.

Features

  • 🤖 GPT-5 Powered - Latest OpenAI model for superior responses
  • 🔍 Code Debugging - Analyze files for bugs with AI assistance
  • 📋 Clipboard Integration - Copy responses instantly
  • 🎨 Syntax Highlighting - Beautiful code display
  • 💬 Conversational Memory - Context-aware throughout your session
  • Streaming Responses - Real-time AI responses

Quick Start

Requirements

  • Node.js >= 18.0.0
  • OpenAI API key (Get one here)
  • pnpm >= 8.0.0 (recommended) or npm

Installation

Using pnpm (recommended):

pnpx ask-chat

Using npm:

npx ask-chat

On first run, you'll be prompted for your OpenAI API key. It will be securely stored in ~/.gpterminal.json.

Usage

Basic Chat

Simply start typing to chat with GPT-5:

bob: How do I write fizzbuzz in python?


Here's how you can write the fizzbuzz program in Python:


```python
for num in range(1, 101):
    divisible_by_three = (num % 3 == 0)
    divisible_by_five = (num % 5 == 0)

    if divisible_by_three and divisible_by_five:
        print("FizzBuzz")
    elif divisible_by_three:
        print("Fizz")
    elif divisible_by_five:
        print("Buzz")
    else:
        print(num)
```


In this program, we iterate over the numbers 1 to 100 using a `for` loop. For each number, we check if it is divisible by 3, 5, or both using the modulo operator (`%`).

If the number is divisible by both 3 and 5, we print "FizzBuzz". If it is divisible by 3, we print "Fizz". If it is divisible by 5, we print "Buzz". And if it is not divisible by either 3 or 5, we simply print the number itself.

Available Commands

debug

Analyze a file for bugs and get AI-powered debugging help:

debug ./myfile.js
debug /absolute/path/to/file.py

cat

Display a file with beautiful syntax highlighting:

cat ./myfile.js

copy

Copy the last AI response to your clipboard:

copy

pwd

Show your current working directory:

pwd

Other Commands

help    # Show all available commands
clear   # Clear the terminal
exit    # Exit the program

Configuration

Your configuration is stored in ~/.gpterminal.json. You can manually edit this file to:

  • Change your API key
  • Customize response colors
  • Modify the username display
  • Adjust the system prompt

Example configuration:

{
  "apiKey": "sk-...",
  "responseColor": "green",
  "userNameColor": "blue",
  "systemPrompt": "You are an assistant that helps software developers.",
  "userName": "YourName"
}

Development

Setup

git clone https://github.com/robertjbass/ask-chat.git
cd ask-chat
pnpm install

Build

pnpm run build

Development Mode

Run with hot-reload using tsx:

pnpm run dev

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Issues & Support

If you encounter any problems or have suggestions, please open an issue.

License

This project is licensed under the ISC License.

Author

Bob Bass


Made with ❤️ for developers who live in the terminal