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

@sumitchn12/voice-ai-backend-sdk

v1.1.0

Published

Voice AI Backend SDK

Readme

🧠 Voice AI Backend SDK

The Intelligent Logic Layer for Voice-Driven Web Applications.

The Voice AI Backend SDK is a powerful Node.js/Express service that transforms raw user speech and page context into actionable UI commands. It acts as the "Prefrontal Cortex" for the @voice-ai/frontend-sdk.


🔥 Features

🛡️ IntentGuard™ Technology

Built for high-reliability systems. IntentGuard acts as a safety net that detects when a user is asking for Information vs. requesting an Action.

  • It forcefully strips hallucinated "Click" actions from LLM responses if the user only asked a question (e.g., "What is the status?").

🤖 LLM Agnostic (Gemini & Local)

Choose your provider based on your privacy and latency needs:

  • Google Gemini Pro: High-end reasoning and world-class speed.
  • Local LLMs (Llama 3.2, Qwen): Run via Ollama or LM Studio for 100% private, local processing.

🎯 Optimized Prompt Engineering

Uses a Few-Shot Prompting strategy with strict JSON schemas. This ensures that even smaller 3B or 7B models can target specific DOM IDs with 99% accuracy.

🌍 Multi-Lingual Support

Native support for Hindi, English, and Hinglish. The engine automatically detects the user's language and replies in the same tone.


🛠️ Installation

npm install @voice-ai/backend-sdk

📖 Quick Start

1. Configure .env

LLM_PROVIDER=gemini # or 'local'
GEMINI_API_KEY=your_key
LOCAL_LLM_URL=http://localhost:11434/v1/chat/completions # For Ollama
LOCAL_LLM_MODEL=llama3.2

2. Integration

import { voiceController } from '@voice-ai/backend-sdk';
import express from 'express';

const app = express();
app.use(express.json());

// Main Voice Endpoint
app.post('/voice', voiceController);

app.listen(5000, () => console.log("Voice AI Brain Online on 5000"));

🔄 How It Works (The Loop)

  1. Capture: Frontend captures speech and scrapes "Fingerprinted" UI context.
  2. Process: Backend receives context and speech.
  3. Reason: LLM identifies the specific ID (e.g., voice-ai-el-9n8t) to target.
  4. Guard: IntentGuard verifies the command isn't a hallucination.
  5. Execute: Frontend receives JSON and simulates human-like input events.

♿ Inclusion Benefits

  • Accessible Logic: Simplifies complex UI trees into simple vocal questions.
  • Context Awareness: Can explain what is happening on screen to users who cannot see it.
  • Safety: Robust error handling ensures the AI never performs dangerous actions by mistake.

Empowering developers to build the next generation of voice-first interfaces.