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

blip.scripts

v1.0.13

Published

Package to add extras to the exported JSON

Downloads

31

Readme

Contents

Regexifybot

Turns all the conditions to from a specific bot that check the user input into regex expressions. Can also be used to turn a sigle expression on a regex for blip

Requirements

Node.JS installed

Usage

Saves the processed bot in "/output/ProcessedwithRegex.json" and the resulting regex for audit in "/output/regex.json"

    npm install
    node regexifybot.js <inputJson>

Or:

Returns the regex expressions on the command line

    npm install
    node regexifybot.js --value="<expression>"

Examples

Regexify an entire bot:

    npm install
    node regexifybot.js test.json

Regexigy a single expression:

    npm install
    node regexifybot.js --value="saque automático"

Addtrackingandsessionscripts

Add standard Trackings and SessionId to all block that have the "[]" marking in the name. If you add the flag "-all" at the end will append to all blocks in the buider

Requirements

Node.JS installed

Usage

Saves in "/output/ProcessedFileWithId.json"

    npm install
    node Addtrackingandsessionscripts.js <inputJson>

Examples

Add standard Trackings only to "[]" marked blocks and sessionId checking where there is user interaction.

    npm install
    node Addtrackingandsessionscripts.js test.json

Add standard Trackings to all blocks and sessionId checking where there is user interaction.

    npm install
    node Addtrackingandsessionscripts.js test.json -all

Addextras

Add extra attributte to track events for blip builer.

Requirements

Node.JS installed

Usage

Put the extras that you wish to add in the file "/resources/extras.json" the output will be saved in "/output/ProcessedFile.json"

    npm install
    node addextrastoscripts.js <inputJson> <optional Append flag>

Examples

Replace extras of all events in the test.json by the content of "/resources/extras.json"

    npm install
    node addextrastoscripts.js test.json

Append extras of all events in the test.json with the content of "/resources/extras.json"

    npm install
    node addextrastoscripts.js test.json a

Addstandardtrackingscripts

Add standard Trackings to all block that have the bot interaction or wait user message or is marked with "[]" ont the title. If you add the flag "--all" at the end will append to all blocks in the builder. If you add the flag "--addContentEvent true" it will create a event to save the user input.

Requirements

Node.JS installed

Usage

Saves in "/output/ProcessedFileWithTrackingScripts.json"

    npm install
    node addstandardtrackingscripts.js <inputJson>

Examples

Add only to "[]" marked blocks.

    npm install
    node addstandardtrackingscripts.js test.json

Add to all blocks and save the content.

    node addstandardtrackingscripts.js test.json --all --addContentEvent true

Standard Trackings

Origem

  • category: >block name< + " - Origem"
  • action: >last block name<

Exibição

  • category: >block name< + " - Origem"
  • action: Exibicao

ChooseAnswer (Only if the block contains quick replies or carrroussels)

  • category: >block name< + " - Cliques"
  • action: >choose answer< or "Entrada Manual"

AddsessionidtoScripts

Add scripts required to track the session of the user. This scripts will be added on everyblock that has user interaction and will update the session ID if the last interacion is grater than time configured in {{config.sessionTime}}

Requirements

Node.JS installed Bot Variable:

  • {{config.sessionTime}}: Time in Miliseconds for the session

Usage

Saves in "/output/ProcessedFileWithId.json"

   npm install
   node addsessionidscripts.js <inputJson>

Examples

    npm install
    node addsessionidscripts.js test.json

Addlaststatescript

Append laststateUpdate script in all the block that has a "[]" on the name, except blocks starting with "[E...]". If you add the flag "--all" at the second argument it will append the script to all blocks in the builder, and if you add the flag "--all" and "--userInteraction" it will append to all blocks in the builder that wait for some user interaction.

Requirements

Node.JS installed

Usage

Saves in "/output/ProcessedFileWithLaststatecript.json"

    npm install
    node addlaststatescript.js <inputJson>

Examples

    npm install
    node addlaststatescript.js test.json

Addchatbaseintegrationscripts

Add scripts required to integrate manually with chatnase. This scripts will be added on everyblock that has user interaction and or bot interaction and will send it to chatbase using post.

Requirements

Node.JS installed Bot Variables:

  • {{config.chatbaseURL}}: URL to send thepost
  • {{config.chatbasekey}}: The chatbase key
  • {{config.version}}: Bot Version
  • {{config.chatbasetrack}}: Chatbase track URL ("https://chatbase.com/r?")
  • {{config.platform}}: Plataform on which the bot will run

Usage

Saves in "/output/ProcessedwithChatbase.json"

    npm install
    node addchatbaseintegrationscripts.js <inputJson>

Examples

    npm install
    node addchatbaseintegrationscripts.js test.json

Clearbotscript

Clear all the input, output actions and tags from all blocks.

Requirements

Node.JS installed

Usage

Saves in "/output/ClearedFile.json"

    npm install
    node clearbotscript.js <inputJson>

Examples

    npm install
    node clearbotscript.js test.json