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

kb-bot-cli

v1.1.17

Published

A CLI SDK similar to Botpress SDK for building and deploying projects

Downloads

36

Readme

kbcli

A powerful CLI SDK similar to Botpress SDK for building and deploying Node.js projects.

Installation

Global Installation (Recommended)

npm install -g kbcli

Local Installation

npm install kbcli
npx kbcli --help

Features

  • 🔐 Authentication: Secure login/logout with token management
  • 🏗️ Build: Bundle your project using esbuild for optimal performance
  • 🚀 Deploy: Upload your built project to any server
  • 📦 Cross-platform: Works on Windows, macOS, and Linux
  • Fast: Built with esbuild for lightning-fast builds

Usage

Login

Authenticate with your account to enable deployment features.

kbcli login

This will prompt you for your email and password, then save your authentication token globally in ~/.kbcli/token.json.

Logout

Clear your saved authentication token.

kbcli logout

Build

Bundle your project's source code into a distributable format.

# Basic build (uses src/index.js as entry point)
kbcli build

# Custom entry point and output directory
kbcli build --entry src/main.js --outdir build

# Short form
kbcli build -e src/app.js -o dist

Options:

  • -e, --entry <file>: Entry point file (default: src/index.js)
  • -o, --outdir <dir>: Output directory (default: dist)

Deploy

Upload your built project to a server.

# Basic deploy (uses dist/ directory)
kbcli deploy

# Custom directory and server
kbcli deploy --dir build --server https://api.myserver.com/deploy

# Short form
kbcli deploy -d dist -s https://api.example.com/upload

Options:

  • -d, --dir <directory>: Directory to deploy (default: dist)
  • -s, --server <url>: Server URL (default: https://api.example.com/deploy)

Project Structure

Your project should follow this structure:

my-project/
├── src/
│   └── index.js          # Entry point
├── dist/                 # Built files (created by kbcli build)
└── package.json

Configuration

The CLI stores your authentication token in:

  • Windows: %USERPROFILE%\.kbcli\token.json
  • macOS/Linux: ~/.kbcli/token.json

Examples

Complete Workflow

# 1. Login to your account
kbcli login

# 2. Build your project
kbcli build --entry src/index.js --outdir dist

# 3. Deploy to your server
kbcli deploy --dir dist --server https://api.mycompany.com/deploy

# 4. Logout when done
kbcli logout

Development Workflow

# Quick build and deploy
kbcli build && kbcli deploy

# Build with custom settings
kbcli build -e src/app.js -o build
kbcli deploy -d build -s https://staging-api.example.com/deploy

API Integration

The deploy command sends a POST request to your server with:

  • Content-Type: multipart/form-data
  • Authorization: Bearer <your-token>
  • Body: ZIP file containing your project

Your server should handle the multipart form data and extract the uploaded ZIP file.

Requirements

  • Node.js 14.0.0 or higher
  • npm or yarn package manager

Troubleshooting

Build Issues

  • Ensure your entry file exists and is valid JavaScript
  • Check that all dependencies are properly installed
  • Verify file paths are correct

Deploy Issues

  • Make sure you're logged in (kbcli login)
  • Verify the server URL is correct and accessible
  • Check your internet connection
  • Ensure the server accepts the file format

Authentication Issues

  • Try logging out and logging back in
  • Check if your credentials are correct
  • Verify the authentication server is accessible

License

MIT

Contributing

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

Support

For support, please open an issue on GitHub or contact the development team.