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

@gvibehacker/nlsh

v1.0.0

Published

Natural language shell extension powered by pi-agent-core

Readme

nlsh — Natural Language Shell for Bash (AI CLI Command Assistant)

npm version npm downloads

nlsh lets you run shell commands with natural language using // in your terminal. It works like an AI shell copilot for Bash: describe what you want, review the generated command, then press Enter to run it.

If this project helps you, please ⭐ star the repo on GitHub — it really helps discovery.


Why nlsh?

  • Fast command generation from plain English
  • 🧠 Context-aware (current directory, OS, and your saved command memory)
  • 🔒 Safer flow: commands are shown first, then require confirmation
  • 💾 Save useful commands with //save for future prompts
  • 🧩 Works as a simple CLI (nlsh ask "...") and as an inline shell workflow (// ...)

Demo flow

// find all .ts files larger than 1MB
# nlsh prints a command
# press Enter to run, any other key to cancel

//save
# saves your last command into memory for better future results

Installation

1) Install globally from npm

npm install -g @gvibehacker/nlsh

2) Log in (set provider/model/API key)

nlsh login

You will be prompted for:

  • Provider (default: google)
  • Model (default: gemini-3.1-flash-lite-preview)
  • Log retention lines (default: 10000)
  • API key

For Google models, you can create a free API key in Google AI Studio: https://aistudio.google.com/apikey

3) Enable shell integration

nlsh install
source ~/.bash_profile

After this, commands beginning with // are intercepted by nlsh.


Usage

Inline mode (recommended)

Use // directly in Bash:

// list the 20 largest files in this project
// create a tar.gz backup of this folder excluding node_modules
// show me open ports and the owning processes

Save useful commands

//save

This stores the last command in ~/.config/nlsh/memory.json as reusable memory.

CLI mode

nlsh ask "find all log files modified in the last 24 hours"
nlsh save "grep -R --line-number TODO src"

Commands

nlsh install      Add shell hook to ~/.bash_profile
nlsh uninstall    Remove shell hook from ~/.bash_profile
nlsh login        Save provider/model/api key config
nlsh logout       Remove saved config
nlsh ask <text>   Ask nlsh to generate a shell command
nlsh save <cmd>   Save a command summary into memory

How it works

  • nlsh install injects a small Bash snippet into ~/.bash_profile.
  • The snippet routes //... to nlsh ask ....
  • nlsh sends prompt context to the model:
    • current working directory
    • OS/platform
    • saved memory entries
  • Model returns a single shell command.
  • nlsh shows the command and asks for confirmation before execution.

nlsh also logs interactions to:

  • ~/.config/nlsh/llm.log

Auditability

All LLM interactions are audited locally. Each request/response cycle is logged (including tool-call traces) so you can inspect what was sent and what came back.

  • Audit log file: ~/.config/nlsh/llm.log
  • Rotated log file: ~/.config/nlsh/llm.log.1

Configuration is stored in:

  • ~/.config/nlsh/config.json

Saved command memory is stored in:

  • ~/.config/nlsh/memory.json

Uninstall

nlsh uninstall
nlsh logout

SEO keywords

Natural language shell, AI shell assistant, Bash AI copilot, terminal command generator, CLI productivity, shell command helper, npm CLI tool, developer productivity tool.


Contributing

Issues and PRs are welcome.

If you’d like to help this project grow:

  1. Star the GitHub repo ⭐
  2. Share it with other terminal-heavy developers
  3. Open issues for prompt quality improvements and edge cases

License

ISC