node package manager

voxa

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