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

kha_cli

v3.1.1

Published

KhaCloud CLI Tool for KhaCloud Development and Deployment and remote AI assisted development

Downloads

271

Readme

Kha CLI

Kha CLI is a command-line tool for remote AI assisted development and managing your work with multiple websites on KhaCloud based cloud services. The tool can be used with non KhaCloud projects for remote AI assisted development.

Documentation for Plugins development can be found here.

Requirements

  • Linux (Not tested on Windows and Mac)
  • Node.js 12 or higher
  • NPM (comes with Node.js)
  • NPX
  • node-pre-gyp ( Install using sudo npm install -g node-pre-gyp)
  • A KhaCloud based cloud service account (For plugins only)

Installation

sudo npm install -g kha_cli

** For windows users: ** Open a command prompt as administrator and run the following command before installation:

Set-ExecutionPolicy RemoteSigned

Update

sudo npm update -g kha_cli

Usage

Configuration (For plugins only)

Before using Kha Plugins CLI, you need to set up your kha-plugin-config.jsonc file

Commands

Remote Development

khap connect

Connects a local project for remote work/development

Can work on KhaCloud projects or any other type of projects

Create a CyberOcean cloud account for enhanced AI capabilities, persistent and more secure project management

khap connect config

Creates the config file kha-connect.jsonc to add action scripts, to run remotely from the dev envirement Example of a config file:

{
  "actions": [
    {
      "enabled": true, // Should be set true or the action will be ignored
      "key": "kha-upload", // Should be unique
      "label": "Kha Upload", // The name shown on the button
      "icon": "mdi-upload", // Accepts only MDI Icons
      "command": "kha upload" // Command to execute EXP: "npm run build", "./my-bash-script.sh", ...
    }
  ]
}

Plugin's commands

khap init

Initializes a new Kha Plugins project

khap init fix

Fixes the project initialization by adding the missing files or folders

khap upload

Uploads your work to the default website

khap listen

Listens for changes in your work and uploads them to the website

khap routes

Shows the API and WEB routes endpoints

khap ai

Runs an AI task, It's based on OpenAI's GPT-3 API, Some tasks require GPT-3 16K model, OpenAI key is required

Plugin's theme commands

khap theme

Shows the theme commands list, and the available themes

khap theme init <THEME_NAME>

Initializes a new theme

khap theme upload <THEME_NAME>

Uploads the all the theme files/settings to the website

khap theme static-upload <THEME_NAME>

Uploads the theme static files to the website