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

naifjs

v0.46.11

Published

NaifJs, simple state-machine based dialog manager

Downloads

100

Readme

NaifJs, a simple state-machine based dialog manager

NaifJs is a simple state-machine based (task-oriented) dialog manager micro-framework for nodejs developers.

The project consists in:

  • A run-time dialog manager, as a module to be embedded as part of a container dialog system
  • A micro-framework development environment (naif command line program) to create and quickly test dialogues.

Concepts

Naifjs is based on a specific conceptual model and a domain specific language (DSL) I conceived, implementing multi-turn contextual dialogues as "state machines", graphs of internal states.

Following paragraph introduces main concepts and naming conventions. I define what is a dialog system, a dialog manager, a single dialog unit, the end multi-dialog application:

Documentation

The full documentation is available here.

Installation

The package contains command line interface program naif, so you must install the npm package as global:

  • use npm package manager repo

    $ npm install -g naifjs
  • or download this github repo:

    $ git clone https://github.com/solyarisoftware/naifjs
    $ cd naifjs && npm link

Application Programming interface and command line tools

API library

NaifJs act as an API library of functions to be called by a main nodejs program. See:

Command line tools

The NaifJs API are foundation for a micro-framework development environment (the naif command line program) to create the end application, generate dialog units skeleton code and quickly test dialogues:

  • naif is the main command line program
  • naif init initializes project directory
  • naif generate generate the code skeleton of a dialog unit
  • naif show for a given project, lists all dialog units and relative states
  • naif shell test a dialog unit using the command line interface
  • naif telegram test a dialog unit, setting up on the fly a telegram bot for the purpose

Discussion / How to contribute

Status

Currently the project is just a proof of concept, not ready for production. The software made is just a prototype, in alpha stage.

License

MIT (c) Giorgio Robino


top | index