typebot.io/packages/deprecated/typebot-js
2025-02-04 11:39:17 +01: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 ♻️ Use bun, biome, better ts config, new license and remove all barrel files (#1801) 2024-09-25 14:50:13 +02:00
tests ♻️ Use bun, biome, better ts config, new license and remove all barrel files (#1801) 2024-09-25 14:50:13 +02: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 💚 Add missing packages and clean up unused packages 2025-02-04 11:39:17 +01:00
README.md ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
tsconfig.json ♻️ Use bun, biome, better ts config, new license and remove all barrel files (#1801) 2024-09-25 14:50:13 +02:00
tsup.config.js Revert "build: add ts references for better DX" 2025-01-29 17:44:06 +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',
})