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

tabby-ai-chat

v1.0.2

Published

AI Chat plugin for Tabby - Chat with AI while accessing terminal context

Downloads

745

Readme

tabby-ai-chat

AI Chat plugin for Tabby - Chat with AI while accessing terminal context.

Features

  • AI Chat Panel - Integrated chat interface in terminal tabs
  • Terminal Context - Automatically capture and send terminal output as context
  • Multiple Providers - Support for OpenRouter and LiteLLM/custom endpoints
  • Model Selection - Browse and search available models
  • Code Actions - Copy code blocks or execute commands directly in terminal
  • Customizable - Adjust panel width, temperature, token limits, and more

Installation

From Tabby Plugin Manager

  1. Open Tabby
  2. Go to Settings > Plugins
  3. Search for tabby-ai-chat
  4. Click Install

Manual Installation

# Install globally
npm install -g tabby-ai-chat

# Or install to Tabby's plugin directory
cd ~/.config/tabby/plugins  # Linux/macOS
cd %APPDATA%\tabby\plugins  # Windows
npm install tabby-ai-chat

Configuration

After installation, go to Settings > AI Chat to configure:

Provider Setup

OpenRouter (recommended for cloud):

  1. Get an API key from openrouter.ai/keys
  2. Select OpenRouter as provider
  3. Enter your API key
  4. Choose a model from the list

LiteLLM / Custom Endpoint (for self-hosted):

  1. Select LiteLLM as provider
  2. Enter your endpoint URL (e.g., http://localhost:4000/v1)
  3. Optionally add an API key
  4. Enter or select your model name

Settings

| Setting | Description | Default | |---------|-------------|---------| | Provider | OpenRouter or LiteLLM | OpenRouter | | Max Tokens | Maximum response length | 4096 | | Temperature | Response randomness (0-1) | 0.7 | | Context Lines | Terminal lines to capture | 100 | | Command Execution | insert / execute / ask | insert | | Panel Width | Percentage of terminal width | 35% | | Auto-attach Context | Capture context when opening | true |

Usage

Keyboard Shortcuts

| Action | Default Shortcut | |--------|------------------| | Toggle AI Chat Panel | Ctrl+Shift+A (macOS: Cmd+Shift+A) |

Chat Interface

  1. Open the AI panel with Ctrl+Shift+A
  2. Type your question or request
  3. Click the attachment icon to include terminal context
  4. Press Enter or click Send

Code Blocks

AI responses with code blocks include:

  • Copy button - Copy code to clipboard
  • Execute button - Run command in terminal (behavior based on settings)

Development

# Clone the repository
git clone https://github.com/ephb/tabby-ai-chat.git
cd tabby-ai-chat

# Install dependencies
npm install

# Build
npm run build

# Watch mode for development
npm run watch

# Lint
npm run lint

Testing Locally

Set the TABBY_PLUGINS environment variable to load the plugin:

# Linux/macOS
TABBY_PLUGINS=/path/to/tabby-ai-chat tabby

# Windows (PowerShell)
$env:TABBY_PLUGINS="C:\path\to\tabby-ai-chat"; tabby

License

MIT - See LICENSE for details.

Author

Philipp Bontemps [email protected]

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request