Skip to main content

@reloop-sdk/vanilla

A single <script> tag, no build step. The widget auto-initialises from data-* attributes on the script element.

<script
src="https://feedback.example.com/embed/reloop.global.js"
data-reloop-key="rl_pub_..."
data-reloop-endpoint="https://feedback.example.com"
data-reloop-position="bottom-right"
></script>
AttributeRequiredDescription
data-reloop-keyyesPublishable API key.
data-reloop-endpointyesBase URL of your server.
data-reloop-titlenoPanel heading.
data-reloop-positionnobottom-right (default) or bottom-left

Programmatic use

The bundle also exposes a global for manual mounting:

<script src="https://feedback.example.com/embed/reloop.global.js"></script>
<script>
Reloop.mountWidget({
apiKey: "rl_pub_...",
endpoint: "https://feedback.example.com",
});
</script>

When installed from npm (@reloop-sdk/vanilla) you can also import { mountWidget } from "@reloop-sdk/vanilla".