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

hucomdic

v0.1.18

Published

The human-computer dictionary is a service that translates natural language requests into programming language. This package contains a command like application for uploading dictionary files to the hucomdic.org server, a command line bot for using the di

Downloads

6

Readme

hucomdic

hucomdic (short for Human-Computer Dictionary) is the basic package used to manage and interact with the human-computer dictionary. In contains two command line applications:

  • [hucomdic][hucomdic] - for uploading files to the server
  • [bot][bot] - for interacting with the server as a bot

For more information about the project see:

Install

Using npm:

$ npm install -g hucomdic

hucomdic

hucomdic command line application uploads all files in working dir to the human-computer dictionary. It only uploads files that can be used by the human-computer dictionary, that is, files ending with .js, .json, .bot,.hook and .dic

Initialize environment

this command will create a .dodido.json file in wokring dir with login information (such as connection token).

$ hucomdic init

After running the command, you will be prompted for username and password.

Uploading Files

From the envirnonment folder, where the .dodido.json file is located, run the following command:

$ hucomdic

Optionally you can specify in the command line the required directory

$ hucomdic -d my-hucomdic-folder

For command line reference type:

$ hucomdic --help

bot command line application

The bot command line application connects with the Dodido server and interacts with it like a bot does. It is command line so its display capabilities are limited. It can be used to debug and test dictionary entries.

The bot application requires an initialized environment using the hucomdic init command. From the hucomdic environment:

$ bot

Alternatively, you can specify the directory of the hucomdic environment

$ bot -d my-hucomdic-folder

A bot session will start. The bot must have some packages set so it can understand user requests. Add packages to the bot by typing:

+dodido/hello-world

This will add the package hello-world from the user dodido to the bot environment. This can be repeated to add additional packages.

Sending requests to the server is done by simply typing the request. Bot commands are preceded with a dot. For example: .exit for exiting the bot prompt, .clear for clearing the conversation context (start a new conversation), .call .remove for removing a package from the bot.

When starting a bot session for the second time, the list of packages and conversation context from previous session are used. To start a new session type

bot --new

This will start a session with no context and no defined packages.

For a command reference type:

bot --help

Contribute

Please suggest enahcements and bug fixes using pull requests.

##License Mozilla Public License, version 2.0