JSPM

  • Created
  • Published
  • Downloads 374
  • Score
    100M100P100Q124917F
  • License MIT

Tavus conversational video AI <tavus-widget> launcher custom element for the web.

Package Exports

  • @tavus/widget
  • @tavus/widget/package.json

Readme

@tavus/widget

Tavus experience as a launcher <tavus-widget> custom element. Drop a single tag into any page and you get a floating launcher that opens a fully working Tavus conversation in a shadow DOM — no React, no build step required.

Install

<script src="https://unpkg.com/@tavus/widget@beta"></script>

<tavus-widget deployment-id="YOUR_DEPLOYMENT_ID"></tavus-widget>

For a pinned beta, use https://unpkg.com/@tavus/widget@0.0.1-beta.1.

npm (bundler / framework apps)

npm install @tavus/widget@beta
import "@tavus/widget";

Importing the package registers the <tavus-widget> custom element as a side effect. After that you can use the tag anywhere in your app's markup — including JSX:

<tavus-widget deployment-id="YOUR_DEPLOYMENT_ID" />

Attributes

Attribute Type Description
deployment-id string The Tavus deployment ID. Fetches configuration from /v2/deployments/:id/init.
override-config JSON Optional JSON object that is deep-merged over the fetched config.

License

MIT