cvaca7 / voxa

Voxa is an Alexa framework that uses state machines to create beautiful skills

Home Page:http://voxa.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voxa

Build Status Coverage Status Documentation npm

A fsm (state machine) framework for Alexa apps using Node.js

Installation

Install from npm

npm install --save voxa

Usage

const Voxa = require('voxa');

// Controllers use views to send responses to the user
const views = {
  LaunchIntent: { tell: 'Hello World!' },
}

// initialize the skill
const skill = new Voxa({ views })

// respond to a LaunchIntent
skill.onIntent('LaunchIntent', (event) => {
  return { reply: 'LaunchIntent' };
});

// lambda handler
exports.handler = skill.lambda();

Tests

An extensive test suite with more than 90% code coverage

npm run test

JS Code linting

npm run lint

Resources

About

Voxa is an Alexa framework that uses state machines to create beautiful skills

http://voxa.readthedocs.io/

License:MIT License


Languages

Language:JavaScript 99.6%Language:Shell 0.4%