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

ai-x-terminal

v2.4.2

Published

Enhance your command-line experience with AI capabilities using OpenAI's API. Easily integrate with projects and leverage AI in the terminal.

Readme

AI X Terminal

Links: GitHub Repo / npm Package

npm version npm downloads github issues license github stars

AI X Terminal is a powerful command-line tool that integrates OpenAI's API to enhance your terminal experience with AI capabilities. It supports appending file contents or entire workspaces to requests, thus allowing a seamless integration with your existing projects.

Demo

asciicast

Installation

To install AI X Terminal globally, you can use either npm or bun:

npm install -g ai-x-terminal

OR

bun add -g ai-x-terminal

Features

  • Command Line Arguments: Use the tool with various options to customize its behavior.
    • -f, --file <file>: Append specified file content to the AI prompt.
    • -w, --workspace: Append contents of all files in the current directory to the prompt.
    • -ls, --list: List all filenames in the current directory.
    • -p, --persona <persona>: Customize the AI's persona for responses.
  • OpenAI Integration: Initialize with your OpenAI API key for future use without re-entering.
  • Code Syntax Highlighting: Automatically detects code snippets and formats them for better readability.

Usage Examples

Basic Usage

ax "What is the meaning of life?"

Using a File

ax -f example.txt "Summarize this file."

Using the Current Workspace

ax -w "Provide an overview of this project."

Listing Files

ax -ls "Which of these files are safe to delete?"

Customizing AI Persona

ax -p "You are a coding expert" "Explain this code snippet."

Configuration

AI X Terminal uses a .ax.json configuration file to store settings like the persona. Modify this file to personalize your interactions.

Contributing

Contributions are welcome! If you have suggestions, feature requests, or bug reports, please create an issue or submit a pull request. Adhere to the code style used in the project and ensure your changes do not break any existing functionality.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Disclaimer

Keep your OpenAI API key confidential. Never share it publicly.

Upcoming Features

  • Multi-API support
  • Contextual AI enhancements

For more features and updates, refer to our changelog.


### Key Additions:
1. **Configuration Section**: Explains how to use `.ax.json`.
2. **Contributing**: Invites user contributions and sets expectations.
3. **Installation Details**: More clarity on installation via npm and bun.
4. **Usage Examples**: Improved with a new example of persona customization.
5. **Disclaimer note**: To remind users about API key security.

This will give prospective users a comprehensive overview and understanding of how to use and contribute to your project.