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

chriss

v1.0.29

Published

Computerised, Humanoid, Real-time & Intelligent Support System

Downloads

2

Readme

CHRISS

CHRISS is a computerised, humanoid, real-time & intelligent support system that has been expanded into a multipurpose chatbot system, made by Prozilla.

Using CHRISS you can create your own intuitive chatbot for your website, Discord bot or anything else that can import npm packages!

Some of its most outstanding features are: advanced sentence analysis that can understand gramatically incorrect sentences, the simulation of human emotions to make chatting more fun, high customizability that lets you change everything about the bot, ranging from a simple name to an entire vocabulary of words.

Installing

npm install chriss

Setting up a basic bot

Follow this small step by step guide to create a simple bot that can greet users:

  1. Create bot.js and write the following code inside:
// bot.js
import { Bot } from "chriss";

const name = "Example bot";
const responses = {
	// The key of the objects in this dictionary refer to the context value, 
	// this will be explained in detail later on
    0: [
        {
            input: ["hello"], // User input (case-insensitive)
            output: ["Hello."], // Bot ouput
            end: true, // This indicates the end of a conversation
        },
    ]
};

export const bot = new Bot(name, responses);
  1. Create index.js and write the following code inside:
// index.js
import { bot } from "bot.js";

// In a real bot, the following code would run every time the user sends a message,
// where input refers to the user's input and response to the bot's output, which is then sent back to the user
const input = "hello";
const response = bot.getResponse(input); 

// Log the response to the output
console.log(response);
  1. To test your brand new bot, run the following command:
node index.js
  1. You should see the following output logged to the console:
{
	output: "Hello.",
	input: {
		content: "hello",
		analysis: Sentence {
			isSentence: false,
			isNegative: false,
			isQuestion: false,
			questionWord: undefined,
			verb: undefined,
			subject: undefined,
			directObject: undefined,
			keyWord: "hello"
		}
	},
	mood: { happy: 100, sad: 0, angry: 0, scared: 0 },
	context: 0
}