typebot.io/packages/typebot-js
2022-05-22 07:51:21 -07:00
..
__mocks__ build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00
examples fix(lib): 🐛 Safari context menu trap 2022-04-08 18:38:36 -05:00
src fix(lib): 💄 Proactive message margin 2022-05-22 07:51:21 -07:00
tests feat(lib): 💄 Better chat widget icon 2022-04-30 06:48:26 -07:00
.eslintignore build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00
.eslintrc.js build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00
.npmignore build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00
jest.config.js build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00
package.json fix(lib): 💄 Proactive message margin 2022-05-22 07:51:21 -07:00
README.md docs: 📝 Update env var and write Configuration doc 2022-03-13 08:56:10 +01:00
rollup.config.js build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00
tsconfig.json build: 🏗️ Import typebot-js source 2022-03-10 17:47:59 +01:00

Typebot JS library

Frontend library to embed typebots from Typebot.

Installation

To install, simply run:

npm install typebot-js

yarn add 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',
})