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

@vocale/mdk

v0.1.0

Published

VocaleAI plugin to work with MDK SAP applications

Readme

Permissions

iOS

You will need to grant permissions on iOS to allow the device to access the microphone if you are using the recording function. If you don't, your app may crash on device and/or your app might be rejected during Apple's review routine. To do this, add this key to your app/App_Resources/iOS/Info.plist file:

<key>NSMicrophoneUsageDescription</key>
<string>Recording Practice Sessions</string>

Android

If you are going to use the recorder capability for Android, you need to add the RECORD_AUDIO permission to your AndroidManifest.xml file located in App_Resources.

<uses-permission android:name="android.permission.RECORD_AUDIO"/>

MDK Config

  • Update MDKProject.json as follows. We need to include @klippa/nativescript-http and nativescript-audio as these are necessary peer dependendency NS plugins.
{
  "Externals": ["@vocale/mdk", "@klippa/nativescript-http", "nativescript-audio"],
  "NSPlugins": ["@klippa/nativescript-http@^3.0.4", "@vocale/mdk@latest"],
  "NPMPlugins": ["nativescript-audio"],
}

Usage

  • Update any Page's onLoaded handler as follows
import { Vocale } from '@vocale/mdk'

const vocale = new Vocale({
  // Take these values from your Site's Dashboard in vocale.ai
  siteId: "site-id",
  apiKey: "api-key",

  // Optional
  // Use this if you want Vocale to internally trigger the clientAPI.showActivityIndicator()
  // to display a loader while processing the audio
  displayActivityIndicator: true // defaults to true
});

export default async function OnLoadedHandler(clientAPI) {
  // your own code

  // Add something like this
  try {
    /**
     * Always set the client API first (page's context).
     * You should set this before executing any other action on each page that uses Vocale
     * so that it can parse the context and the form container
     */
    vocale.setClientAPI(clientAPI);

    /**
     * Use sync form once the form has been loaded on the page
     * so that Vocale can parse your form and uploaded the data to your dashboard
     */
    await vocale.syncForm({ formId: "unique-form-id-string" })
  } catch (error) {
    // Handle errors here
  }
}
  • Create a Button on your page and create "OnPress" handler like this
import { Vocale } from '@vocale/mdk'

const vocale = new Vocale({
  // Take these values from your Site's Dashboard in vocale.ai
  siteId: "site-id",
  apiKey: "api-key",

  // Optional
  // Use this if you want Vocale to internally trigger the clientAPI.showActivityIndicator()
  // to display a loader while processing the audio
  displayActivityIndicator: true // defaults to true
});

export default async function ButtonOnPressHandler(clientAPI) {
  try {
    /**
     * Always set the client API first (page's context).
     * You should set this before executing any other action on each page that uses Vocale
     * so that it can parse the context and the form container
     */
    vocale.setClientAPI(clientAPI);

    if (vocale.isRecording) {
      /**
       * Stop the recording, send a payload to Vocale's AI service
       * and attempts to fill the form with the parsed data.
       */
       await vocale.stopRecording();
    } else {
      /**
       * The formId must be the same as the one used on the OnLoaded handler.
       * The user might be asked permissions to access their mic.
       */
      await vocale.startRecording({ formId: "unique-form-id-string" }, onSuccessHandler, onErrorHandler)
    }
  } catch (error) {
    // Handle errors here
  }
}