Install backfeeder
One line of script, and your clients or users point straight at what they mean. With the bubble in the corner or from your own menu item.
What are you building?
| Your case | Variant | Who sees what |
|---|---|---|
| You are reviewing a client website | Review a client website | Everyone with the link sees all entries. Without the link nothing is visible. |
| Your own app behind a login, the team should see and reply to everything | Your own button with a token | All users of the app see all entries. |
| Your own app, every user should be able to report | No link: public | Everyone sees only their own entries. You see everything in the project. |
Review a client website
<script src="https://www.backfeeder.de/widget.js" data-project="PROJECT-KEY" defer></script>
The snippet with your key is on the project page. Send your client the link from the project, they click an element and write. Anyone without the link sees nothing: without a link the widget renders nothing and never calls the server.
Your own button with a token
No bubble, the panel opens from your own menu item.
<button type="button" data-backfeeder="open">Feedback</button>
<script src="https://www.backfeeder.de/widget.js"
data-project="PROJECT-KEY"
data-token="TOKEN"
data-launcher="off"
data-name="Anna Example"
defer></script>
data-token is the value after bf= in a link from the project. The trigger can be any element: a link, a button, an icon. With "toggle" instead of "open" the same click opens and closes.
Show the menu item only once the widget is ready:
[data-backfeeder="open"] { display: none; }
html[data-backfeeder-ready] [data-backfeeder="open"] { display: inline-block; }
The token is part of the HTML of every user who loads the page. Use this variant behind a login only, never on public pages.
No link: public
Every user of your app can report, without a link and without a token.
<button type="button" data-backfeeder="open">Feedback</button>
<script src="https://www.backfeeder.de/widget.js"
data-project="PROJECT-KEY"
data-public
data-launcher="off"
data-name="Anna Example"
data-user-email="anna@example.org"
defer></script>
- Public is part of Pro. Switch on "Public" in the project settings.
- Whoever reports sees their own entries from this browser, with replies and status. Only the team in the project can reply and set a status.
- An existing token takes precedence. The widget then runs as in the other variants.
- Limits against abuse: 5 entries per minute and 30 per day per IP, 200 per day per project.
Pass the user along
Your app knows the signed-in user. Pass them along, and the widget does not ask for a name and the entry shows who it was.
<script src="https://www.backfeeder.de/widget.js"
data-project="PROJECT-KEY"
data-public
data-launcher="off"
data-name="Anna Example"
data-user-id="42"
data-user-email="anna@example.org"
data-meta-tenant="Example Ltd"
data-meta-version="2.4"
defer></script>
If the user is only known later, set them with JavaScript:
<script>
document.addEventListener('DOMContentLoaded', () => {
window.backfeeder.set({
user: { id: '42', name: 'Anna Example', email: 'anna@example.org' },
metadata: { tenant: 'Example Ltd' }
});
});
</script>
With defer, widget.js runs after the page has been parsed. Call window.backfeeder in DOMContentLoaded or later.
These details come from your app and are not verified. In the project they appear on the entry under "From app", in the export and via MCP. Clients never see them.
Attributes
| Attribute | Effect |
|---|---|
data-project |
Required. The key of your project. |
data-launcher="off" |
No bubble. The panel opens only from your trigger or from JavaScript. |
data-token |
Token from a project link, passed by your app. Not stored in the browser. |
data-public |
Start without a token if the project is set to "Public". |
data-name |
Name of the user. The name field is dropped. |
data-user-id, data-user-email |
Further details about the user. |
data-meta-<key> |
Extra data, one pair per attribute, for example data-meta-version="2.4". |
All attributes are read once at start. Token precedence: first ?bf= in the link, then data-token, then the storage of the page.
Triggers
A click on an element with data-backfeeder="open", "close" or "toggle" calls the function and prevents the default action of the element. While a session is active, <html> carries the attribute data-backfeeder-ready.
JavaScript
| Member | Effect |
|---|---|
backfeeder.open(), close(), toggle() |
Open, close or toggle the panel. |
backfeeder.isOpen() |
true while the panel is open. |
backfeeder.active |
true once the session is confirmed and the interface is mounted. |
backfeeder.set({ user, metadata }) |
Overrides or adds to the details from the attributes. A null value removes a detail. |
Without an active session open, close and toggle do nothing and do not throw. set() always works.
Events
All events are dispatched on document.
| Event | When |
|---|---|
backfeeder:ready |
Session confirmed, interface mounted. |
backfeeder:open |
Panel was opened. |
backfeeder:close |
Panel was closed. |
backfeeder:created |
Entry saved, with detail.id and detail.number. |
document.addEventListener('backfeeder:created', (e) => {
console.log('Entry', e.detail.number);
});
Limits
| Detail | Limit |
|---|---|
user.id, user.name |
text up to 100 characters |
user.email |
valid address up to 190 characters |
metadata |
at most 20 pairs |
keys in metadata |
1 to 40 characters from a-z A-Z 0-9 _ . - |
values in metadata |
text, number or boolean, stored as text up to 500 characters |
The widget silently drops anything invalid.
If nothing shows up
- The address of the page is listed as an origin in the project, with scheme, host and port. A local setup such as
http://localhost:8080is an origin of its own. - Public: the project is on Pro, "Public" is on, the snippet carries
data-public. - Token: the link is valid and the feedback is not finished. "Finish feedback" ends the link for everyone who embedded it.
- The bubble shows although you have your own button:
data-launcher="off"is missing. <html>carriesdata-backfeeder-readyonce everything fits. If the attribute is missing, the browser console shows the reason.