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

@paynegh/terminal-gpt

v0.1.0

Published

nlsh (Natural Language Shell) — talk to your terminal in plain English.

Downloads

48

Readme

nlsh - Natural Language Shell

Talk to your terminal in plain English.

Requirements: macOS or Linux (Windows not currently supported)

Install

Option 0: npm (global)

# from the repo (until published on npm)
cd TerminalGPT
npm install
npm link

# now you can run:
nlsh

Notes:

  • Requires Python 3 (python3) and pip.
  • Postinstall will run python3 -m pip install --user -r requirements.txt.
  • To skip pip install: NLSH_SKIP_PIP=1 npm install.

Option 1: One-liner (curl)

bash <(curl -s https://raw.githubusercontent.com/PushDream/TerminalGPT/main/install.sh)

Option 2: Clone and setup

git clone https://github.com/PushDream/TerminalGPT.git
cd TerminalGPT
./setup.sh

Option 3: Download ZIP (no git needed)

wget https://github.com/PushDream/TerminalGPT/archive/refs/heads/main.zip
unzip main.zip
cd TerminalGPT-main
./setup.sh

Option 4: Manual (minimal)

git clone https://github.com/PushDream/TerminalGPT.git
cd TerminalGPT
pip install google-generativeai
python nlsh.py

Uninstall

curl -fsSL https://raw.githubusercontent.com/PushDream/TerminalGPT/main/uninstall.sh | bash

Usage

nlsh

Type naturally:

  • list all python filesfind . -name "*.py"
  • git commit with message fixed buggit commit -m "fixed bug"
  • show me disk usagedf -h

Or use shell commands directly - nlsh automatically detects when you're typing a command vs. natural language.

Features

Core Features

  • Natural language to shell commands - Powered by Google Gemini AI
  • Smart command detection - Automatically distinguishes between natural language and direct shell commands
  • Command history context - AI remembers recent commands for context-aware suggestions
  • Editable AI suggestions - Modify suggested commands before execution

Enhanced Features (v2.0.0+)

  • Persistent command history - History saved across sessions (~/.nlsh_history)
  • Tab completion - Autocomplete file paths and commands
  • Environment variable expansion - Support for $HOME, $USER, etc.
  • Built-in commands - exit, quit, clear work as expected
  • Improved command detection - 40+ additional shell commands recognized
  • Interactive program support (v2.1.0) - Run nano, vim, htop, and other interactive programs directly
  • Smart OS/shell detection (v2.2.0) - AI automatically adapts to your OS (Linux/macOS) and shell (bash/zsh/fish)

Commands

  • !api - Change API key
  • !version - Show version
  • !history - Show command history
  • !help - Show help
  • !<cmd> - Run any command directly (e.g., !git status)
  • exit or quit - Exit nlsh
  • clear - Clear screen
  • Ctrl+D - Exit
  • Ctrl+C - Cancel current operation

Credits

Original author: Junaid Mahmood

Enhanced by: PushDream - v2.0.0+ improvements including:

  • Persistent readline history with file storage
  • Tab completion for paths and commands
  • Exit/quit/clear built-in commands
  • Environment variable expansion
  • Editable AI command suggestions
  • Version tracking
  • Expanded shell command detection (40+ additional commands)
  • Synchronized history between readline and AI context
  • Interactive program support (v2.1.0) - nano, vim, htop, etc.
  • Smart OS/shell detection (v2.2.0) - AI adapts to Linux/macOS and bash/zsh/fish