typebot.io/packages/typebot-js
2023-02-22 07:46:30 +01:00
..
__mocks__ build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00
examples 🏗️ Use tsup for bot and typebot-js packages 2022-10-11 08:57:37 +02:00
src 🚸 (js) Improve setHiddenVariables command 2023-01-03 10:08:11 +01:00
tests ♻️ Add shared eslint config 2022-11-21 11:18:58 +01:00
.eslintrc.js ♻️ Add shared eslint config 2022-11-21 11:18:58 +01:00
.npmignore 🏗️ Use tsup for bot and typebot-js packages 2022-10-11 08:57:37 +02:00
jest.config.js build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00
package.json 🐛 Fix bot not proceeding when embedded 2023-02-22 07:46:30 +01:00
README.md 📝 Add appropriate docs for new @typebot.io libs 2023-02-21 16:22:25 +01:00
tsconfig.json ♻️ Add shared eslint config 2022-11-21 11:18:58 +01:00
tsup.config.js ♻️ Add shared eslint config 2022-11-21 11:18:58 +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',
})