Voxa
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
- Documentation
- Bug Tracker
- Mail List
- IRC (chat.freenode.net, #voxa)