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

@vocalroute-ai/sdk

v0.2.11

Published

Voice navigation and AI assistance toolkit for Next.js applications

Readme

@vocalroute-ai/sdk

VocalRoute SDK is a powerful toolkit for adding voice navigation and AI assistance to your React/Next.js applications.

Installation

npm install @vocalroute-ai/sdk
# or
yarn add @vocalroute-ai/sdk
# or
pnpm add @vocalroute-ai/sdk

CLI Usage

Scan your project routes and generate an intent registry:

npx vocalroute scan

Advanced Scanning

For complex apps with many similar routes or internationalization, use high-quality scanning:

# Use AI to generate diverse and natural intents (requires OPENAI_API_KEY)
npx vocalroute scan --ai

# Skip structural segments (like [locale]) to group logical pages
npx vocalroute scan --skip locale

The CLI will:

  • Scan your Next.js app or pages directory.
  • Identify all available routes and parameters.
  • Generate navigation intents (e.g., "go to my ads", "open chat").
  • Create a vocalroute/ directory in your project containing registry.json and registry.ts.

Note: Run this command whenever you add or modify routes.

Optional Script

Add this to your package.json for easier access:

{
  "scripts": {
    "vocalroute:scan": "vocalroute scan"
  }
}

Setup

1. Root Layout

Import the CSS and wrap your application with the VocalRouteProvider.

// app/layout.tsx
import "@vocalroute-ai/sdk/vocalroute.css";
import { VocalRouteProvider } from "@vocalroute-ai/sdk";
import { staticRegistry } from "../vocalroute/registry"; // Generated by CLI

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <VocalRouteProvider routes={staticRegistry} showButton={true}>
          {children}
        </VocalRouteProvider>
      </body>
    </html>
  );
}

Usage

VocalRouteProvider Props

| Prop | Type | Default | Description | | :-------------- | :-------------- | :------ | :------------------------------------------ | | routes | RouteRegistry | [] | The generated route registry | | showButton | boolean | false | Whether to show the built-in trigger button | | showOverlay | boolean | true | Whether to show the built-in voice overlay | | buttonConfig | Object | - | Customization for the trigger button | | overlayConfig | Object | - | Customization for the voice overlay | | aiConfig | Object | - | Configuration for AI model and fallbacks |

AI Configuration (aiConfig)

Customize the AI engine to use specific models or providers.

| Property | Type | Default | Description | | :------------------- | :-------- | :------------- | :-------------------------------------------------------------------------- | | enabled | boolean | false | Enable cloud-based AI intent resolution (requires OpenAI Key) | | openaiApiKey | string | - | Your OpenAI API Key (can also be set via OPENAI_API_KEY env) | | baseURL | string | - | Custom API base URL (e.g. for Groq, Local LLMs, or Proxy) | | intentModel | string | gpt-4o-mini | The model used for mapping speech to route intents | | transcriptModel | string | - | Optional model for phonetic transcript correction before intent resolution | | strictMode | boolean | false | If true, disables internal fallbacks if your custom models fail | | fallbackToLocal | boolean | true | If true, falls back to browser-only matching if AI resolution fails |

Using the Hook

For custom implementations, use the useVocalRoute hook:

import { useVocalRoute } from "@vocalroute-ai/sdk";

const CustomTrigger = () => {
  const { startListening, isListening } = useVocalRoute();

  return (
    <button onClick={startListening}>
      {isListening ? "Listening..." : "Voice Search"}
    </button>
  );
};

Features

  • Local Intent Resolution: Works entirely in the browser using the generated route registry.
  • Voice Overlay: Built-in, customizable UI for voice interaction.
  • Automatic Route Discovery: Scans your Next.js project to generate navigation intents.
  • TTS (Text-to-Speech): Conversational replies for navigation and status.

Feedback

We are actively shaping VocalRoute — reach out! Your feedback helps us determine what to build next.

License

MIT