Coder Social home page Coder Social logo

loristns / wisty.js Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 0.0 7.87 MB

๐Ÿงšโ€โ™€๏ธ Chatbot library turning conversations into actions, locally, in the browser.

Home Page: https://xtns.dev/projects/wisty

License: MIT License

TypeScript 100.00%
nlp nlu bot machine-learning tensorflowjs chatbots conversational-agents chatbot bot-framework natural-language-processing hybrid-code-networks named-entity-recognition dialogue-systems javascript conversational-ai assistant tensorflow

wisty.js's Introduction

Wisty

Build conversational interfaces for the browser.

npm Build Status

Wisty.js is a JavaScript natural language processing library to build contextual chatbots or virtual assistants on the web.

  • Powered by machine learning thanks to TensorFlow.js.

  • Supports training and inference in Node.js and most browsers : you can integrate a bot into your front-end without having to rely on some infrastructure or a cloud service.

  • It reduces the amount of hardcoded logic you have to write : new features are just a few training dialogs away.

Status

The project is in alpha : the API is unstable as new feature keeps being added.

Installation

$ npm install wisty
import * as wisty from 'wisty';

wisty.tools.parseStories(...);

If you intend to run Wisty on Node.js, then the TensorFlow C Backend can speeds up your bot :

$ npm install @tensorflow/tfjs-node
const tf = require('@tensorflow/tfjs-node');
const wisty = require('wisty');

You can also use CDNs :

<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<!--
    If you intend to use Universal Sentence Encoder model :
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/universal-sentence-encoder"></script>

    If you attend to parse WistyML Training files :
    <script src="commonmark.min.js"></script>
    (see https://github.com/commonmark/commonmark.js)
-->

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.umd.min.js"></script>

As the API is currently unstable, it is recommended to use a fixed version.

Demos

You can find open source demos of chatbots running with Wisty.js in the demos folder.

  • Passwords : An assistant trying to help you identify yourself on a web site if you have troubles logging in.

    • The implementation is quick and dirty JavaScript in the HTML and a customized style for BotUI.
  • Restaurant : A chatbot taking orders for a restaurant.

    • Implemented from scratch with Vue.js 3 and Vite.

Documentation

For the moment, only the API reference is available on GitHub Pages.

License

Wisty.js is licensed under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.