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

navtalk-web-sdk

v0.0.7

Published

A web SDK for NavTalk, a conversational AI platform.

Readme

🚀 navtalk-web-sdk

navtalk-web-sdk is a JavaScript SDK distributed via npm, allowing developers to quickly integrate AI chat and voice interaction into Web and Node.js applications.
The SDK provides the following features:

  • Real-time AI conversation
  • Voice interaction
  • Chat functionality
  • Easy-to-use API for fast integration

Get Project License and Custom Avatar

Note: Before using the SDK, you need to obtain a project license and configure a custom avatar.

Please apply for them here: NavTalk Console

Installation

Install via npm:

npm install navtalk-web-sdk

Or using yarn:

yarn add navtalk-web-sdk

Quick Start (Web Component)

  1. Import the SDK
import "navtalk-web-sdk"
  1. Use the Web Component
<my-navtalk-component 
  license="******" 
  character-name="******"
  left="100px" 
  top="100px"
>
</my-navtalk-component>

Component Attributes

  1. license: NavTalk License (required)
  license="******" 
  1. character-name: NavTalk Avatar Name (required)
  character-name="******"
  1. left, top: the position of your navtalk component (optional) (default: left=0px, top=opx)
  left="100px" 
  top="100px"
  1. isRememberPreviousConversation: Whether to upload the previous conversation (optional) (default: true)
  isRememberPreviousConversation="true"
  1. Function Call (optional)
  • Example 1: A function that closes the NavTalk conversation.

  • Example 2: A function that calculates the sum of two numbers.

  • (1).Add Function Call

  function-calls='[
    {
      "function_call_name": "function_call_close_talk",
      "function_call_description": "Please trigger this method when you receive a message or when the conversation is closed.",
      "function_call_parameters": {
          "properties":{
            "userInput": {"type": "string", "description": "Raw user request content to be processed"}
          },
          "required":["userInput"]
      }
    },
    {
      "function_call_name": "function_call_add_numbers",
      "function_call_description": "Please perform addition. Both parameter numbers must be obtained. Once both numbers are retrieved, please directly return their sum.",
      "function_call_parameters": {
        "properties":{
          "number1": {"type": "string", "description": "This is the first number to be added. If missing, ask: What is the first number?"},
          "number2": {"type": "string", "description": "This is the second number to be added. If missing, ask: What is the second number?"}
        },
        "required": ["number1","number2"]
      }
    }
  ]'
  • (2).Trigger Function Call
  const sdkElement = document.querySelector("my-navtalk-component") as any;
  sdkElement?.addEventListener("sdkFuncationCall", (e: any) => {
     console.log('Recieve NavTalk-SDK-FunctionCall Event:', e.detail);
     //function-1:
     if (e.detail.raw_data.name === "function_call_close_talk") {
         sdkElement?.clickPlayOrStopButton();
     }
     //function-2:
     if (e.detail.raw_data.name === "function_call_add_numbers") {
        /*handle your event*/
     }
  });

Related Projects

If you want to learn more about AI or chat-related projects, check out:

NavTalk Samples

Author

navtalk, [email protected]