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

@memberjunction/ai-assemblyai

v5.48.0

Published

MemberJunction Wrapper for AssemblyAI - Voice Agent API realtime driver

Readme

@memberjunction/ai-assemblyai

MemberJunction provider package for AssemblyAI, currently exposing the Voice Agent API (launched April 2026) as a realtime, full-duplex, tool-calling model.

What this package provides

  • AssemblyAIRealtime — a BaseRealtimeModel driver (registered via @RegisterClass(BaseRealtimeModel, 'AssemblyAIRealtime')) for AssemblyAI's single-websocket speech-to-speech stack: Universal-3 Pro streaming ASR, server-side turn detection and barge-in, LLM reasoning, JSON-Schema tool calling, and conversational TTS.
  • AssemblyAIRealtimeSession — the IRealtimeSession implementation backing the server-bridged topology.

The matching browser-direct client driver (AssemblyAIRealtimeClient, ClassFactory key 'assemblyai') ships in @memberjunction/ai-realtime-client.

Provider characteristics

| Concern | How this provider does it | | --- | --- | | Endpoint | One websocket: wss://agents.assemblyai.com/v1/ws?token=… | | Session config | Native per-session session.update (prompt, tools, voice, turn detection) — no server-side agent object to manage | | Audio | PCM16 mono 24 kHz, base64, both directions (fixed — no negotiation) | | Tool calling | JSON-Schema function tools; tool.call arguments arrive parsed; tool.result takes a JSON string | | Tools mid-session | MutableRegisterTools re-declares natively via session.update | | Narration (RequestSpokenUpdate) | Native via reply.create instructions | | Context notes (SendContextNote) | Emulated via the mutable system_prompt ("Background updates" section) | | Typed text (client SendText) | Emulated via reply.create instructions (no typed-input wire event) | | Interruption | reply.done status: 'interrupted' (authoritative); the client driver also flushes on input.speech.started while output is active for snappier barge-in | | Usage events | None — flat hourly session billing ($4.50/hr); OnUsage never fires | | Client-direct | Supported — one-time temp token minted via GET /v1/token (Bearer API key) | | Session end | Close()/Disconnect() send session.end first — skipping it leaves a billable 30-second resume hold |

Configuration

  • API key env alias: AI_VENDOR_API_KEY__AssemblyAIRealtime
  • RealtimeSessionParams.Config passthrough keys: voice, greeting, turn_detection (object), keyterms (string array)
  • Model / APIName plays no wire role (single endpoint, no model selection) — the metadata row uses voice-agent

Docs

  • Product: https://www.assemblyai.com/products/voice-agent-api
  • API reference: https://www.assemblyai.com/docs/voice-agents/voice-agent-api
  • Token endpoint: GET https://agents.assemblyai.com/v1/token?expires_in_seconds=…
  • Full MJ realtime architecture (topologies, co-agent model, four-provider capability matrix): guides/REALTIME_CO_AGENTS_GUIDE.md