typebot.io/packages/deprecated/typebot-js
2024-06-17 14:12:14 +02:00
..
__mocks__ ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
examples ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
src ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
tests ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
.npmignore ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
jest.config.js ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
package.json ⬆️ Upgrade chakra version 2024-06-17 14:12:14 +02:00
README.md ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
tsconfig.json ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
tsup.config.js ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00

⚠️ This library is deprecated in favor of @typebot.io/js and @typebot.io/react

Typebot JS library

Frontend library to embed typebots from Typebot.

Installation

To install, simply run:

npm install typebot-js

Usage

It exposes 3 functions:

initContainer()
initPopup()
initBubble()

You can configure them directly in the "Share" tab of your typebot.

Example:

import { initContainer } from 'typebot-js'

const plausible = initContainer('container-id', {
  publishId: 'my-app.com',
})