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 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexabot-cli

v2.0.0

Published

Hexabot CLI for creating and managing chatbots built with Hexabot.

Downloads

267

Readme

Hexabot CLI

Hexabot CLI is a powerful command-line tool to help manage your Hexabot chatbot instance. With it, you can create new projects, initialize environments, start services in various modes, run database migrations, and more. The CLI aims to make managing your chatbot seamless and intuitive.

Not yet familiar with Hexabot? It's a open-source chatbot / agent solution that allows users to create and manage AI-powered, multi-channel, and multilingual chatbots with ease. If you would like to learn more, please visit the official github repo.

Getting Started

Prerequisites

  • Node.js >= 18.17.0
  • npm (Node Package Manager)
  • Docker installed

Installation

Install Hexabot CLI globally to have easy access to its commands:

npm install -g hexabot-cli

Usage

Once installed, you can use the hexabot command in your terminal. Here are some of the available commands:

Commands

create <projectName>

Create a new Hexabot project.

hexabot create my-chatbot

Options:

  • --template <template>: Specify a GitHub repository in the format GITHUB_USERNAME/GITHUB_REPO to use a custom template.

Example:

hexabot create my-chatbot --template myusername/my-template-repo

init

Initialize the environment by copying .env.example to .env.

hexabot init

dev

Start specified services in development mode with Docker Compose.

hexabot dev --services nlu,ollama

Options:

  • --services <services>: Comma-separated list of services to enable.

start

Start specified services with Docker Compose.

hexabot start --services api,nlu

Options:

  • --services <services>: Comma-separated list of services to enable.

migrate [args...]

Run database migrations.

hexabot migrate

You can also pass additional arguments to the migration command.

start-prod

Start specified services in production mode with Docker Compose.

hexabot start-prod --services api,nlu

Options:

  • --services <services>: Comma-separated list of services to enable.

stop

Stop specified Docker Compose services.

hexabot stop --services api,nlu

Options:

  • --services <services>: Comma-separated list of services to stop.

destroy

Destroy specified Docker Compose services and remove volumes.

hexabot destroy --services api,nlu

Options:

  • --services <services>: Comma-separated list of services to destroy.

Example Workflow

  1. Create a new project:

    hexabot create my-chatbot

    This will create a new folder my-chatbot with all necessary files to get started.

  2. Navigate to your project folder:

    cd my-chatbot
  3. Install dependencies:

    npm install
  4. Initialize environment:

    hexabot init

    This command copies the .env.example file to .env, which you can edit to customize your configuration.

  5. Run in development mode:

    hexabot dev --services nlu,ollama

    This starts the required services in development mode.

Documentation

For detailed information on how to get started, as well as in-depth user and developer guides, please refer to our full documentation available in the docs folder or visit the Documentation.

You can also find specific documentation for different components of the project in the following locations:

Contributing

We welcome contributions from the community! Whether you want to report a bug, suggest new features, or submit a pull request, your input is valuable to us.

Please refer to our contribution policy first : How to contribute to Hexabot

Contributor Covenant

Feel free to join us on Discord

License

This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:

  1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
  2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).