Install: HTML

Embed the feedback widget
in plain HTML.

One script tag and one button. The SDK reads its options from data attributes, so a static page can collect feedback without a build step.

No package manager Options as attributes Works in any template
index.html
script tag
<script
  async
  src="https://unpkg.com/@feeblo/sdk"
  data-feeblo-organization-id="org_123"
  data-feeblo-placement="bottom-right"
></script>

<button data-feeblo-feedback>
  Give feedback
</button>
scriptloads and initializes
data-feeblo-*sets every option
data-feeblo-feedbackopens the widget

The markup is the configuration. No JavaScript file to write.

Prerequisites

Before you start

The whole install is two tags: the script in your layout, and a trigger wherever you want the button.

A page you can edit

A static site, a server-rendered template, or a CMS block that accepts raw HTML. No bundler is involved.

Your organization ID

Copy it from Settings → Widget → Installation. The script tag reads it from data-feeblo-organization-id.

A board for posts

Point the widget at a board with data-feeblo-default-board, or send different boards from different buttons.

A way to identify users

Optional, but names and emails make posts actionable. Your server can render the id into an inline script.

Steps

Add the widget to a page

Paste each block into the page and reload. The widget initializes on load, so there is nothing else to start.

  1. 1

    Add the script tag

    Load the SDK from a CDN and give it your organization ID. It initializes itself from the data attributes when it loads.

    index.html
    <script
      async
      src="https://unpkg.com/@feeblo/sdk"
      data-feeblo-organization-id="org_123"
      data-feeblo-placement="bottom-right"
    ></script>
  2. 2

    Add a trigger button

    Give any element the data-feeblo-feedback attribute. The SDK scans for these elements and opens the widget when one is clicked.

    index.html
    <button type="button" data-feeblo-feedback>
      Give feedback
    </button>
  3. 3

    Set options as data attributes

    Add one attribute per option. Modes and placements take the same strings the SDK accepts in code. The debug attribute only accepts true or false.

    index.html
    <script
      async
      src="https://unpkg.com/@feeblo/sdk"
      data-feeblo-organization-id="org_123"
      data-feeblo-mode="hub"
      data-feeblo-modules="feedback,updates"
      data-feeblo-placement="bottom-left"
      data-feeblo-theme="dark"
      data-feeblo-default-board="roadmap"
      data-feeblo-locale="en"
      data-feeblo-debug="true"
    ></script>
  4. 4

    Or set a global config

    When your CMS will not let you edit the script tag, set window.feebloConfig before the script. Values in the global win over data attributes.

    index.html
    <script>
      window.feebloConfig = {
        organizationId: "org_123",
        theme: "dark",
        placement: "bottom-right",
      };
    </script>
    <script async src="https://unpkg.com/@feeblo/sdk"></script>
  5. 5

    Identify the user

    Identify after the script loads. The script is async, so Feeblo does not exist on window until it finishes. Run the identify call from the script's onload handler.

    index.html
    <script>
      function identifyFeebloUser() {
        Feeblo.identify({
          id: "u_1",
          email: "ada@example.com",
          name: "Ada Lovelace",
        });
      }
    </script>
    <script
      async
      src="https://unpkg.com/@feeblo/sdk"
      data-feeblo-organization-id="org_123"
      onload="identifyFeebloUser()"
    ></script>
  6. 6

    Sign users into your public board

    Attach a signed token to the identity, then mark anchors that point at your board. The SDK adds the token to the link in the URL fragment, and the board strips it after login.

    index.html
    <a href="https://feedback.example.com" data-feeblo-link>
      Give feedback
    </a>
  7. 7

    Confirm the widget loaded

    Open the console. With data-feeblo-debug set to true, the SDK prints a banner with your org ID and base URL, then trigger bindings and events.

    Console
    // With data-feeblo-debug="true" the console shows:
    // a [feeblo] banner with the org ID and base URL
    // [feeblo:trigger] lines for each binding
    // [feeblo:event] lines as events fire
    
    console.log(Feeblo.version);

Result

What you should see

A launcher in the corner

With placement set, a round launcher sits 20px from the bottom corner. Without placement, only your own triggers open the widget.

An overlay over the page

The widget mounts in a fixed container, so the page behind it does not reflow and the scroll position stays put.

A post on the board

A submission lands on the board named in data-feeblo-default-board, with the identity from the identify call.

The board your button names

A trigger with data-feeblo-board opens that board instead of the default one, so a docs page and a pricing page can route to different boards.

No build step

There is no package manager, no bundler, and no framework. One script tag covers the install.

Every attribute

One attribute per option. Omit an attribute to keep the default.

data-feeblo-organization-id
Your org ID. data-feeblo-org works too.
data-feeblo-placement
bottom-left or bottom-right. Unset means no launcher.
data-feeblo-mode
feedback (default), updates, or hub.
data-feeblo-modules
Comma-separated hub modules: feedback,updates.
data-feeblo-default-board
Board the feedback form opens on.
data-feeblo-theme
Passed to the widget iframe.
data-feeblo-locale
BCP 47 tag, for example en-GB.
data-feeblo-debug
true or false.
data-feeblo-base-url
Widget host override for self-hosting.

Common problems

No launcher appears

The data-feeblo-placement attribute is missing. Add it, or open the widget from a trigger.

Feeblo is not defined

The inline script ran before the async SDK finished loading. Move the call into the script's onload handler.

The trigger does nothing

The attribute is misspelled, or the element was replaced after the click handler bound. The SDK rescans every second.

INVALID_CONFIG in the console

data-feeblo-modules is set without data-feeblo-mode set to hub. Modules only apply to the hub mode.

Server-rendered pages

  • Print the org ID from your template so each environment points at its own workspace.
  • Print the signed-in user's id into the identify call so posts carry a name.
  • Keep the script tag in your shared layout so every page gets the widget once.

Content Security Policy

If the page sets a CSP, allow the script host and the widget frame host. The defaults are unpkg.com for the script and app.feeblo.com for the iframe.

Content-Security-Policy:
  script-src 'self' https://unpkg.com;
  frame-src 'self' https://app.feeblo.com;

Self-hosting moves the frame to your own baseUrl, so update frame-src when you override it.

Where to go next

A script tag is enough for a landing page or a docs site. Move to a package when you want the typed handle and framework hooks.

Open it from your own script

Every method is also on the global Feeblo object, so a link or a custom button can call it.

Feeblo.open();
Feeblo.setBoard("roadmap");
Feeblo.isOpen();

Start building what your users want

Open-source feedback boards, roadmaps, and changelogs. Self-host in minutes or start on the cloud, and close the loop with every release.