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

@sociovate/samvaad

v1.0.0

Published

Samvaad — speech-to-intent SDK for React Native and Web apps

Readme

@sociovate/samvaad

Samvaad — voice-to-intent SDK for React Native and Web. Hold a button, speak a command in Hindi/Hinglish/English, get structured intent JSON.

Install

npm install @sociovate/samvaad

Quick Start

import { VoiceSDK, VoiceButton } from '@sociovate/samvaad'

// 1. Init once at app startup
VoiceSDK.init({
  apiKey: 'sk_test_...',
  apiUrl: 'https://your-samvaad-api.railway.app',
  language: 'hinglish',
  intents: [
    {
      name: 'log_order',
      description: 'Sales rep logs an order at a shop',
      params: [
        { name: 'shop_name', type: 'string' },
        { name: 'items', type: 'array' },
        { name: 'payment', type: 'string', nullable: true }
      ]
    }
  ]
})

// 2. Handle intents
VoiceSDK.onIntent(intent => {
  console.log(intent.name, intent.params)
})

// 3. Drop button in UI
<VoiceButton />

VoiceSDK.init(config)

| Field | Type | Required | Default | Description | |---|---|---|---|---| | apiKey | string | yes | — | Your API key | | apiUrl | string | yes | — | Your deployed Samvaad API URL | | language | string | yes | — | 'hinglish' | 'hi-IN' | 'en-IN' | | intents | array | yes | — | Intent schema definitions | | hints | string[] | no | [] | STT hint words | | confidenceThreshold | number | no | 0.6 | Minimum confidence to fire intent | | maxRetries | number | no | 3 | Network retry count | | retryDelay | number | no | 1000 | Base ms between retries | | timeout | number | no | 30000 | Request timeout in ms |

Callbacks

VoiceSDK.onIntent(intent => { /* intent.name, intent.params, intent.confidence */ })
VoiceSDK.onError(error => { /* error.code, error.message */ })
VoiceSDK.onLoading(state => { /* 'recording' | 'processing' */ })

VoiceButton Props

| Prop | Type | Description | |---|---|---| | screen | string | Optional screen name for logging | | disabled | bool | Disable the button | | style | object | Custom styles | | onPress | function | Called on press down | | onRelease | function | Called on release |

Platform Support

  • Web: uses MediaRecorder API (Chrome, Firefox, Safari 14.1+)
  • React Native: uses expo-av — add expo-av and expo-haptics as dependencies

Error Codes

| Code | Cause | |---|---| | AUDIO_ERROR | Microphone permission denied or recording failed | | NETWORK_ERROR | Samvaad API unreachable after retries | | TIMEOUT | Request exceeded timeout | | API_ERROR | API returned 4xx/5xx | | INVALID_CONFIG | init() not called or invalid config |