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

@agent-walrus/agent-walrus

v1.3.7

Published

The official JavaScript SDK for Agent Walrus.

Readme

Agent Walrus

The official JavaScript SDK for Agent Walrus.

Agent Walrus lets engineering teams visualize, analyze and troubleshoot their video conferencing software. Improve uptime, performance and scalability of your product without the need for WebRTC expertise.

Contents

  1. Installation
  2. Example Usage
  3. API
  4. Platform Integration
  5. License

Installation

Just the good old:

npm install --save @agent-walrus/agent-walrus

Example Usage

import { AgentWalrus } from  "@agent-walrus/agent-walrus";  

// Start data collection
AgentWalrus.init("<Your app token>");

// Identify the user with unique id and optional traits
AgentWalrus.identify({
    id:  "Your app unique user id",
    yourCustomAttribute:  "customValue",
});  

// Add more traits later
AgentWalrus.identify({
    name:  "Example User",
    email:  "[email protected]",
});

API

All the methods are called on the main AgentWalrus object.

.init(token: string, config?: AgentWalrusConfig)

Starts the data collection. Must be run before the local media acquisition and WebRTC connection setup.

  • token - String identificator for your app. You'll find it in Agent Walrus' Settings/App Setup page.
  • config - Optional object with the following properties:
    • gatewayUrl? - URL where the data should be reported to. Change only if running a custom Agent Walrus deployment.
    • logLevel? - Level of collected console logs. One of: error, warning, info, debug. Defaults to warning.

.terminate()

Stops the data collection.

.identify(traits: Record<string, string | number>)

Used to add user-related traits to the session. You will be able to see the traits in Agent Walrus interface and search sessions by trait type and value.

Special traits: - id - Unique user identifier. Used to group same user's sessions together. - name - User's name or nickname. Will be displayed in the UI instead of the id. - email - User's email. Will be displayed next to the user's name or id.

.submitUserFeedback(score: number, description?: string)

Add user feedback to the session. - score - 1 - 5 numeric score - description - Optional textual feedback

Platform integration

Extra steps to get the most data out of your platform or media servers.

Twilio

import { AgentWalrus } from "@agent-walrus/agent-walrus";  

// Line below is just an example; you might be creating the room differently
const room = await Video.connect(token, { name: room, tracks: localParticipant.tracks });

AgentWalrus.monitorPlatform("twilio", room);

Other

If your platform is not fully supported by Agent Walrus, let us know. We're happy to add the support to our SDK.

License

MIT