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 🙏

© 2026 – Pkg Stats / Ryan Hefner

voicelabs-native

v1.0.3

Published

Native version with request-promise-native and native promise

Readme

About

This is the VoiceLabs SDK.

VoiceInsights provides all Alexa developers powerful insights and tools to understand voice patterns, re-engage at-risk users, and build more compelling voice experiences.

Get started at http://www.voicelabs.co

Getting started

Before you get started, you'll need an application token. Feel free to head over to http://insights.voicelabs.co/getstarted to create your analytics account and get your application token.

Typical integrations take less than 10 minutes, from account creation to seeing events in your analytics dashboard.

The Voice Insights SDK is dead simple and compatible with all popular Node.js Alexa frameworks:

  • The original Alexa Skills Kit: https://github.com/amzn/alexa-skills-kit-js
  • The new Alexa Skills Kit: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs
  • The alexa-app framework: https://www.npmjs.com/package/alexa-app

End User Docs

For detailed usage information and framework-specific API docs, head out here: http://insights.voicelabs.co/getstarted

Create your free analytics account and go to the docs section for more details: http://insights.voicelabs.co/analytics#/settings/docs

Getting help

If you need help installing or using the library, please contact VoiceLabs Support at [email protected] first. VoiceLabs' customer success team is well-versed in everything related to the SDK, and will reply within 24 hours.

If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!

Quick Example

The below is an example using the original Alexa Skills Kit.

Initializing

If you've already integrated with a previous version of the SDK, first uninstall it:

npm uninstall voice-insights-sdk --save

Then within your Alexa src/ folder, issue the following command:

npm install voicelabs --save

Note that if uploading to Lambda, it will automatically look for your node dependencies inside the node_modules folder created by installing this SDK.

Once you've installed the module, you can initialize VoiceLabs and start tracking events:

var APP_ID = 'amzn1.echo-sdk-ams.app.********-****-****-****-************';
...

var VoiceLabs = require("voicelabs")('<your-app-token>');
Tracking usage

Note that several of the parameters passed in are optional, but highly recommended to get the most out of your skill's analytics:

/**
   * Fires a track event to capture user speech, and agent speech
   * Always executes the callback if provided, and returns a Promise if needed
   *
   * @param  {Object}   session             Alexa Session Object (to get userId and SessionId)
   * @param  {String}   intentName          The intent string
   * @param  {Object}   intentMetadata      (Optional) Object containing intent metadata like slots
   * @param  {String}   speechText          (Optional) String speech out by Alexa
   * @param  {Function} callbackFn          (optional) Callback function for success, always gets called
   * @return {Promise}
   */
track: function(session, intentName, intentMetadata, speechText, callbackFn)

NOTE: the callbackFn or your Promise.then() must encapsulate your response back to Alexa for the track event to go through consistently.

You can track events by simply adding this single line when handling intent requests (or other types of requests):

var newSessionHandlers = {
    'NewSession': function() {
        ...

        var speechText = "Hello, and welcome!";

        VoiceLabs.track(this.event.session, intent.name, intent.slots, speechText, (error, response) => {
          this.emit(':tell', speechText);
        });
    }
};

If you have extensive business logic and a large existing codebase with lots of intents, you can use promises to integrate in a more flexible manner:

var self = this;

VoiceLabs.track(this.event.session, 'NewSession', null, "Welcome to High Low Guessing game")
          .then(function(){
            self.emit(':ask', 'Welcome to High Low guessing game. would you like to play?',
                'Say yes to start the game or no to quit.');
          });