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

@nishanth.kannan1/voicepipe

v0.1.1

Published

VoicePipe Client SDK — build voice AI agents with one API key. Sub-800ms latency, 9 Indian languages.

Downloads

249

Readme

VoicePipe SDK

Build real-time voice AI agents with one API key. Sub-800ms response latency, 9 Indian languages.

Install

npm install @nishanth.kannan1/voicepipe

Quick Start

import VoicePipe from '@nishanth.kannan1/voicepipe';

const agent = VoicePipe({
  apiKey: 'vp_your_key_here',
  systemPrompt: 'You are a customer support agent for Acme Corp.',
  language: 'en',
});

agent.on('turn', (turn) => {
  console.log(`User: ${turn.user_text}`);
  console.log(`Agent: ${turn.agent_text}`);
  console.log(`Latency: ${turn.latency.total_ms}ms`);
});

agent.start();

That's it. The SDK handles microphone capture, audio streaming, AI processing, and speaker playback. You only need your VoicePipe API key — no Deepgram, Groq, or Cartesia keys required.

Get Your API Key

  1. Sign up at voicepipe.io
  2. Go to API Keys in the console
  3. Generate a key — it looks like vp_xxxxxxxxxxxx

Free plan includes 100 minutes/month. No credit card required.

Configuration

const agent = VoicePipe({
  apiKey: 'vp_xxx',                // required — your VoicePipe API key
  systemPrompt: 'You are ...',     // what the agent should do
  language: 'hi',                  // language code (default: 'en')
  apiUrl: 'https://api.voicepipe.io', // API server (default)
});

Supported Languages

| Code | Language | Code | Language | |------|-----------|------|-----------| | en | English | ml | Malayalam | | hi | Hindi | bn | Bengali | | ta | Tamil | gu | Gujarati | | te | Telugu | mr | Marathi | | kn | Kannada | | |

Events

// Connection ready
agent.on('ready', (data) => {
  console.log('Connected:', data.session_id);
});

// User speech transcribed
agent.on('transcript', (data) => {
  console.log(data.text, data.is_final);
});

// Agent response text
agent.on('agent_text', (data) => {
  console.log(data.text, data.is_complete);
});

// Full turn complete with metrics
agent.on('turn', (turn) => {
  console.log('User:', turn.user_text);
  console.log('Agent:', turn.agent_text);
  console.log('Latency:', turn.latency.total_ms, 'ms');
  console.log('Under 800ms:', turn.latency.under_800ms);
});

// Error
agent.on('error', (data) => {
  console.error(data.error);
});

// Session ended
agent.on('stopped', (data) => {
  console.log('Turns:', data.turn_count);
});

React Integration

import { useEffect, useRef } from 'react';
import VoicePipe from '@nishanth.kannan1/voicepipe';

function VoiceAgent() {
  const agentRef = useRef(null);
  const [status, setStatus] = useState('idle');

  useEffect(() => {
    const agent = VoicePipe({
      apiKey: process.env.NEXT_PUBLIC_VOICEPIPE_KEY,
      systemPrompt: 'You are a support agent.',
    });

    agent.on('ready', () => setStatus('listening'));
    agent.on('turn', (turn) => {
      // update your UI with the conversation
    });
    agent.on('stopped', () => setStatus('idle'));

    agentRef.current = agent;
    return () => agent.stop();
  }, []);

  return (
    <div>
      <p>Status: {status}</p>
      <button onClick={() => agentRef.current?.start()}>
        Start Conversation
      </button>
      <button onClick={() => agentRef.current?.stop()}>
        Stop
      </button>
    </div>
  );
}

Methods

| Method | Description | |--------|-------------| | agent.start() | Start the voice agent (requests mic permission) | | agent.stop() | Stop and clean up | | agent.on(event, callback) | Register event listener | | agent.getSessionId() | Get current session ID | | agent.getTurnCount() | Get number of completed turns |

How It Works

When you call agent.start(), the SDK:

  1. Creates a session on VoicePipe's servers using your API key
  2. Connects via WebSocket (handled internally)
  3. Captures microphone audio from the browser
  4. Streams audio to VoicePipe for processing
  5. VoicePipe runs Speech-to-Text → LLM → Text-to-Speech on our infrastructure
  6. Agent audio streams back and plays through the speaker
  7. Events fire with transcripts, responses, latency, and cost data

You never deal with WebSocket connections, audio encoding, or AI providers. The SDK and VoicePipe's servers handle everything.

Requirements

  • Browser with microphone access (Chrome, Firefox, Safari, Edge)
  • Works on localhost or HTTPS origins (mic requires secure context)

Links

License

MIT