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

@corti/ambient-web

v0.9.0

Published

Web component for Corti Ambient

Readme

@corti/ambient-web

Published on npm License: MIT Get Support on Discord

Web components for real-time, multi-speaker ambient streaming on the Corti Streams API.

  • All-in-one: <corti-ambient> — recording button, settings (device, language, virtual mode by default), keyboard shortcuts, and theming
  • Modular: <ambient-root> plus <ambient-recording-button>, <ambient-settings-menu>, and selectors for custom layouts

Note: OAuth 2.0 authentication is not handled by this library. The client must provide an authorization token or token refresh function while using the component. Each ambient session also requires an interactionId.

For single-speaker dictation with voice commands, use @corti/dictation-web instead.

Installation

npm i @corti/ambient-web
# yarn add @corti/ambient-web
# pnpm add @corti/ambient-web
import "@corti/ambient-web";
// or: import { CortiAmbient } from "@corti/ambient-web";

CDN (quick try only):

<script type="module" src="https://cdn.jsdelivr.net/npm/@corti/ambient-web/dist/bundle.js"></script>

Quick start

<corti-ambient
  id="ambient"
  interactionId="<your-interaction-id>"
></corti-ambient>

<script type="module">
  import "@corti/ambient-web";

  const ambientEl = document.getElementById("ambient");

  ambientEl.addEventListener("ready", () => {
    ambientEl.accessToken = "<your-access-token>";
  });

  ambientEl.addEventListener("transcript", (e) => {
    for (const segment of e.detail.data) {
      console.log(segment.transcript);
    }
  });
</script>

Virtual mode

Include virtualMode in settingsEnabled to show the Virtual mode toggle in the settings menu (included by default on <corti-ambient>). Add keybinding to expose shortcut configuration in settings:

<corti-ambient
  interactionId="<your-interaction-id>"
  settingsEnabled="device,language,virtualMode"
></corti-ambient>

When enabled, the browser prompts for tab/window/application audio; that stream is mixed with the microphone (mic left channel, shared audio right).

Modular layout

<ambient-root id="ambientRoot" interactionId="<your-interaction-id>">
  <ambient-recording-button></ambient-recording-button>
  <ambient-settings-menu settingsEnabled="device,language,keybinding,virtualMode"></ambient-settings-menu>
</ambient-root>

<script type="module">
  import "@corti/ambient-web";

  const root = document.getElementById("ambientRoot");
  root.addEventListener("ready", () => {
    root.accessToken = "<your-access-token>";
  });
</script>

| Component | Role | | --- | --- | | <ambient-root> | Context provider (auth, config, interaction ID, virtual mode) | | <ambient-recording-button> | Start/stop with audio visualization | | <ambient-settings-menu> | Device, language, keybinding, and virtual mode UI | | <ambient-device-selector> | Device dropdown | | <ambient-language-selector> | Language dropdown | | <ambient-keybinding-selector> | Push-to-talk / toggle-to-talk keys | | <ambient-virtual-mode-selector> | Virtual mode toggle |

Keybindings

Defaults: Enter (toggle-to-talk), Space (push-to-talk). Key names (event.key) and codes (event.code) are supported. Shortcuts are ignored while focus is in inputs. If both modes use the same key, toggle-to-talk wins.

Configure on <corti-ambient> or <ambient-root>:

<corti-ambient toggleToTalkKeybinding="Enter" pushToTalkKeybinding="Space"></corti-ambient>

Documentation

Repository

Source and issue tracking: github.com/corticph/dictation-web