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

relu-core

v2.1.0

Published

Core for bot

Readme

#relu-core

relu-core is module that can be used as a core of a bot. It has functions that simplify http/https/request calls, access json files to retrieve informations or modify/add/delete nodes, create variable herocards and setup LUIS entities.

#installation

npm install relu-core

#functions

----ReluConfig.JsonReader(session, data, leaf, parent);

This function walk through a json (stored in "data") until it finds the specified node(leaf). When the function finds the leaf, it returns the content. The parent parameter is optional. It is used to specify which leaf node you are specifically search if there are more than one leaf with the same name. Obviusly the leaf node you want must be inside the parent node, if parent is specified.

----ReluConfig.AddJsonNode(session, json, filename, node, object, text, parent);

This function does the same as the JsonReader, but when you find the specific node, it adds into the node, another node, called "object"(you pass the name), and assign "text" as his content(you also pass text). The content can be a simple string, an object or an array. You can also modify the content of node; when you find the node, you assign the "text" to the specific node, and the function overwrite the content of the node. This function use fs module to access the json file specified with "filename". The function of "parent" parameter is the same as previous.

----ReluConfig.DeleteJsonNode(session, json, filename, node, parent);

Works in the same way of AddJsonNode, but delete the specified node.

----ReluCards.CreateCards(session, nCards, title, text, nButtons, linkImages, buttonReturn, nameButton);

This function Creates a variable number of Herocards with variable name, text, buttons, image, title, buttonReturn and buttonNames.

----ReluEntity.EntitySetup(nEntities, arrayEntities, arrayBuilt, session, args);

This functions find entities and them specific builtin/intent in the variables in arrayEntities.

----ReluRest.HttpRequest(host, path); / ReluRest.HttpsRequest(link); / ReluRest.Request(linkObject, method, linkAPI, key);

These functions are used to simplify the http/https/request calls. You only have to write one line of code and with the arguments these functions do for you the specific calls and return the parsed JSON with all the information you want. After, you only have to access the JSON to retrieve the info.