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

@equos/browser-sdk

v3.1.3

Published

Equos browser sdk

Readme

@equos/browser-sdk

Equos.ai official Browser SDK for real-time conversations with Equos AI agents.

Prerequisites

  • Go to Equos Studio.
  • Create an organization.
  • Create a Character.

Installation

npm install @equos/browser-sdk

Quick Start

import { EquosConversation, EquosEvent, EquosMode } from '@equos/browser-sdk';

// Create a conversation (wsUrl and token come from your backend via @equos/node-sdk)
const conversation = new EquosConversation({
  config: {
    wsUrl: 'wss://your-livekit-server.example.com',
    token: 'your-consumer-access-token',
    agentIdentity: 'character-livekit-identity', // optional, filters tracks to this participant
  },
});

// Attach a video element to render the agent's audio + video
const videoEl = document.querySelector('video');
conversation.attach(videoEl);

// Listen to events
conversation.on(EquosEvent.Utterance, (msg) => {
  console.log(`${msg.utterance.author}: ${msg.utterance.content}`);
});

conversation.on(EquosEvent.AgentConnected, () => {
  console.log('Agent joined the room');
});

// Connect
await conversation.connect();

// Send a text message to the agent
conversation.sendText('Hello!');

// Disconnect when done
await conversation.disconnect();

Obtaining Connection Credentials

WARNING: @equos/node-sdk must only be used server-side (Node.js backend, API route, serverless function). Never expose your API key in client-side code — it would allow anyone to create conversations and consume credits on your behalf.

Use @equos/node-sdk on your backend to create a conversation, then pass the connection credentials to the browser:

import { EquosClient } from '@equos/node-sdk';

const client = EquosClient.create('your-api-key', {
  endpoint: 'https://api.equos.ai',
});

const response = await client.conversations.startConversation({
  createEquosConversationRequest: {
    name: 'my-conversation',
    characterId: 'your-character-id',
    consumer: {
      name: 'User',
      identity: 'user-1',
    },
  },
});

// Pass these to the browser SDK
const { serverUrl, character } = response.conversation;
const { consumerAccessToken } = response;
const agentIdentity = character.livekitIdentity;

API

new EquosConversation(options)

| Option | Type | Default | Description | |--------|------|---------|-------------| | config.wsUrl | string | required | LiveKit WebSocket endpoint | | config.token | string | required | Room access token | | config.agentIdentity | string? | undefined | Agent participant identity (if omitted, all remote participants are treated as agents) | | autoPublishMic | boolean | true | Automatically enable microphone on connect | | mode | EquosMode | 'video' | Initial conversation mode |

Methods

| Method | Description | |--------|-------------| | connect() | Connect to the LiveKit room | | disconnect() | Disconnect and clean up | | sendText(text) | Send a text message to the agent | | sendContext(content) | Inject context into the agent's prompt | | setMode(mode) | Switch conversation mode ('text', 'audio', 'video') | | setMicrophoneEnabled(enabled) | Toggle microphone | | setCameraEnabled(enabled) | Toggle camera | | setScreenShareEnabled(enabled) | Toggle screen sharing | | attach(element) | Attach agent tracks to a <video> element | | detach(element) | Detach agent tracks from an element |

Properties

| Property | Type | Description | |----------|------|-------------| | state | EquosConnectionState | Current connection state | | mode | EquosMode | Current conversation mode |

Events

Listen to events with conversation.on(event, callback) and remove with conversation.off(event, callback).

| Event | Payload | Description | |-------|---------|-------------| | EquosEvent.Utterance | { utterance: { author, content, recordedAt } } | Transcript entry from agent or user | | EquosEvent.Interrupt | {} | Agent was interrupted | | EquosEvent.ExpireSoon | { seconds_remaining } | Session is about to expire | | EquosEvent.Error | { code } | Agent error | | EquosEvent.ConnectionStateChanged | state | Connection state changed | | EquosEvent.AgentConnected | - | Agent joined the room | | EquosEvent.AgentDisconnected | - | Agent left the room | | EquosEvent.ModeChanged | mode | Conversation mode changed | | EquosEvent.DataReceived | message | Raw catch-all for any data message |

Conversation Modes

| Mode | Audio | Video | Description | |------|-------|-------|-------------| | EquosMode.Text | - | - | Text only, no media playback | | EquosMode.Audio | Yes | - | Audio only | | EquosMode.Video | Yes | Yes | Full audio + video (default) |

// Start in text mode
const conversation = new EquosConversation({
  config: { wsUrl, token },
  mode: EquosMode.Text,
});

// Switch to video during conversation
conversation.setMode(EquosMode.Video);

Equos SDKs

| SDK | Platform | Package | |-----|----------|---------| | @equos/browser-sdk | Browser (vanilla JS/TS) | npm | | @equos/react | Browser (React) | npm | | @equos/node-sdk | Node.js (server-side only) | npm | | equos | Python (server-side only) | PyPI |

Reach Us

Documentation

Authors