Installation overview
Learn how to install Featurebase on your website with this quick 101 guide.
Written By Bruno from Featurebase
Last updated 3 days ago
Overview
Featurebase ships as a single JavaScript SDK that you install once at your app root. Once installed, every Featurebase surface β Messenger, the Feedback widget, the Changelog widget, Surveys, and the embedded web portal β picks up your appId and the signed-in user automatically. Setup typically takes a few minutes of engineering time.
π¨βπ» Feel free to share this guide with your engineer or a technical team member who can assist.
What you'll need
Your App ID β copy it from Settings β Developers β Installation.
Recommended for logged-in users: a server-signed JWT so Featurebase trusts the user identity you pass it. See Creating and signing a JWT.
1. Install featurebase-js
Install the package from npm β or, if you can't run a build step, drop the legacy script tag into your <head>.
Examplenpm install featurebase-js
2. Boot the SDK once at your app root
This single call is what gives every widget its identity and appId. Pick whichever tab matches your stack β the result is the same.
Example// app/layout.tsx β Next.js 13+, or any React root.
'use client';
import { FeaturebaseProvider } from 'featurebase-js/react';
export default function RootLayout({ children, user }) {
return (
<FeaturebaseProvider
appId="YOUR_APP_ID" // Settings β Developers β Installation
// featurebaseJwt={user?.featurebaseJwt} // recommended for logged-in users
>
{children}
</FeaturebaseProvider>
);
}For logged-in users, generate a JWT on your server and pass it as featurebaseJwt. For anonymous visitors you can leave it out β Messenger will treat them as leads.
Identify your users (recommended)
For logged-in apps, identify users with a server-signed featurebaseJwt. This is the production-safe path and works with secure installation enabled by default.
π Full guide: Identifying users & syncing data.
3. Mount the widgets you need
Messenger boots automatically from the universal install above as long as it's enabled in your dashboard. Every other widget needs one extra mount call β pick a page below for the per-widget guide:
Messenger installation β live chat, help articles, and changelog inside your product
Feedback widget installation β in-app feedback & bug reports with a built-in screenshot editor
Changelog widget installation β card, popup, and dropdown views of your latest updates
Survey widget installation β NPS, CSAT, and other in-app surveys triggered from the dashboard
Embedded web portal view β bring the public Featurebase portal into your own site
Featurebase in mobile apps β embed the portal in iOS / Android via a WebView with auto sign-in
Public portal SSO
If you want users to access your public Featurebase portal through your own identity provider, set up Single Sign-On. This is separate from the SDK boot above: the SDK identifies users inside your product, while SSO controls direct login to the hosted public portal.
π Web portal SSO setup β authenticate users to the public portal with your own IdP.
Advanced
For API, metadata, and other advanced setups:
API documentation β detailed guides for using Featurebase's REST API
Metadata for posts β enrich feedback posts with session details (URL, app version, device, β¦)
Webhooks β create real-time workflows and automations beyond native integrations
Content security policy setup β make Featurebase work alongside a strict CSP
Have any questions?
Please feel free to message us via live chat or at support@featurebase.app. We'll get back to you as soon as we can, typically within a few hours. π Thank you!