@formbricks/js
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

Formbricks Browser JS Library

npm package MIT License

Please see Formbricks Docs. Specifically, Quickstart/Implementation details.

What is Formbricks

Formbricks is your go-to solution for in-product micro-surveys that will supercharge your product experience! 🚀 For more information please check out formbricks.com.

How to use this library

  1. Install the Formbricks package inside your project using npm:
npm install @formbricks/js
  1. Import Formbricks and initialize the widget in your main component (e.g., App.tsx or App.js):
import formbricks from "@formbricks/js";

if (typeof window !== "undefined") {
  formbricks.init({
    environmentId: "your-environment-id",
    apiHost: "https://app.formbricks.com",
  });
}

Replace your-environment-id with your actual environment ID. You can find your environment ID in the Setup Checklist in the Formbricks settings. If you want to use the user identification feature, please check out our docs for details.

For more detailed guides for different frameworks, check out our Framework Guides.

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i @formbricks/js

    Weekly Downloads

    6,412

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    25.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • formbricks-com
    • matthiasnannt