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 🙏

© 2025 – Pkg Stats / Ryan Hefner

caroushell

v0.1.20

Published

Terminal carousel that suggests commands from history, config, and AI.

Readme

Caroushell

npm version npm downloads

Caroushell is an interactive terminal carousel that suggests commands from your history, and AI suggestions as you type.

Features

  • The top panel of the carousel shows history.
  • The bottom panel of the carousel shows AI-generated command suggestions.
  • Go up and down the carousel with arrow keys.
  • Press Enter to run the highlighted command.
  • Logs activity under ~/.caroushell/logs for easy troubleshooting.
  • Extensible config file (~/.caroushell/config.toml) so you can point the CLI at different AI providers.

UI

The UI layout looks like this:

⌛history2
⌛history1
$> YOU TYPE YOUR SHELL COMMANDS HERE
🤖ai suggestion1
🤖ai suggestion2

Here's an example using a comment to get AI autocompletion for ffmpeg:

⌛echo 123
⌛cd
$> ffmpeg -i myvideo.mp4 # slowmo 50%
🤖ffmpeg -i myvideo.mp4 -filter:v "setpts=2.0*PTS" output_slow.mp4
🤖ffmpeg -i myvideo.mp4 -vf "setpts=0.5*PTS" output_fast.mp4

It would look like this:

Caroushell ai suggestion for ffmpeg slowmo

Requirements

  • Node.js 18 or newer.
  • On first launch Caroushell will prompt you for an OpenAI-compatible endpoint URL, API key, and model name, then store them in ~/.caroushell/config.toml.
  • You can also create the file manually:
apiUrl = "https://openrouter.ai/api/v1"
apiKey = "your-api-key"
model = "gpt-4o-mini"

or

GEMINI_API_KEY = "AIzaSyD...N-wK"

Any endpoint that implements the OpenAI Chat Completions API (OpenRouter, OpenAI, etc.) will work as long as the URL, key, and model are valid. If you only provide a Gemini API key in the config, Caroushell will default to the Gemini Flash Lite 2.5 endpoint and model.

Installation

Install globally (recommended):

npm install -g caroushell
caroushell

Or run it with NPX:

npx caroushell

Usage

Caroushell opens an interactive prompt:

  • Type to update the suggestions immediately and trigger refreshed history/AI results.
  • Use arrow keys to move between suggestions in the carousel.
  • Press Enter to run the highlighted command.
  • Press Ctrl+C to exit. Ctrl+D exits when the current row is empty.
  • Press Tab to autocomplete a file suggestion or browse files and folders with the arrow keys.

Logs are written to ~/.caroushell/logs/MM-DD.txt. Inspect these files if you need to debug AI suggestions or the terminal renderer. Configuration lives at ~/.caroushell/config.toml (override via CAROUSHELL_CONFIG_PATH).

Development

npm install            # install dependencies
npm run dev            # run the shell
npm run test:generate  # tests ai text generation
npm publish --dry-run  # verify package contents before publishing

The prepare script automatically builds before npm publish or when installing from git. The package ships only the compiled dist/ output plus this README and the MIT license so npx caroushell works immediately.

License

Released under the MIT License.