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

@kubently/cli

v2.1.6

Published

Modern Node.js CLI for Kubently - Troubleshooting Kubernetes Agentically

Readme

Kubently CLI

npm version License: MIT

A modern, beautiful Node.js/TypeScript implementation of the Kubently CLI - your interactive Kubernetes debugging companion.

🚀 Features

✨ Modern User Experience

  • Beautiful Terminal UI: Colored output, ASCII art banners, and formatted tables
  • Interactive Prompts: User-friendly input
  • Real-time Feedback: Loading spinners for all async operations
  • Rich Formatting: Clear visual hierarchy with chalk styling

📦 Administrative Commands

  • Cluster Management: Add, list, status check, and remove clusters
  • Token Generation: Automatic agent token creation and management

🐛 A2A Debug Mode

  • Interactive Terminal: Real-time chat interface with the Kubently agent
  • Natural Language: Ask questions in plain English
  • Session Management: TTL-based sessions with unique IDs
  • Command History: Navigate previous commands easily

📋 Requirements

  • Node.js 18.0.0 or higher
  • npm or yarn
  • Access to a Kubently API server

🔧 Installation

Install from npm (Recommended)

npm i -g @kubently/cli

Or use with npx (no installation required):

npx @kubently/cli

Install from Source

For development or contributing:

# Clone the repository
git clone https://github.com/kubently/kubently.git
cd kubently/kubently-cli/nodejs

# Install dependencies
npm install

# Build the TypeScript code
npm run build

# Create global CLI command
npm link

🚀 Quick Start

1. Initialize Configuration

kubently init

This will prompt you for:

  • Kubently API URL (e.g., http://localhost:8000)
  • Admin API Key

2. Start Debug Session

# Debug specific cluster
kubently debug my-cluster

# Start without cluster (specify in queries)
kubently debug

📝 Configuration

Configuration is stored in ~/.kubently/config.json with restrictive permissions (600).

Environment Variables

export KUBENTLY_API_URL=http://your-api-url
export KUBENTLY_API_KEY=your-api-key

Environment variables take precedence over config file values.

🎨 Debug Mode Commands

When in debug mode, you can use:

  • help - Show available commands
  • clear - Clear the screen
  • history - Show command history
  • exit or quit - Exit the session
  • Natural language queries (e.g., "What pods are failing?")

🛠️ Development

# Run in development mode
npm run dev

# Run tests
npm test

# Lint code
npm run lint

# Format code
npm run format

📂 Project Structure

nodejs-cli/
├── src/
│   ├── index.ts           # Main entry point
│   ├── commands/          # Command implementations
│   │   ├── init.ts        # Configuration setup
│   │   ├── cluster.ts     # Cluster management
│   │   ├── exec.ts        # Command execution
│   │   └── debug.ts       # A2A debug session
│   └── lib/              # Core libraries
│       ├── config.ts      # Configuration management
│       ├── adminClient.ts # Admin API client
│       ├── a2aClient.ts   # A2A protocol client
│       └── templates.ts   # Manifest generators
├── dist/                  # Compiled JavaScript
├── package.json          # Dependencies and scripts
└── tsconfig.json         # TypeScript configuration

🤝 Contributing

Contributions are welcome! Please ensure:

  • Code is TypeScript compliant
  • All tests pass
  • Linting rules are followed
  • Documentation is updated

📄 License

APACHE 2.0

🆘 Support

For issues or questions, please file an issue in the repository.


Built with ❤️ using Node.js and TypeScript