A feedback widget for your website
Try it here. Turn the dials until it looks like part of your product, then send it some feedback.
Add it to your site
Add the script tag, or install the package and call init. Both load the same widget, with the publishable key from your dashboard.
People file a report in a few seconds. You get it with the context you chose to attach, such as their account, the experiment variant they saw and the build they were on. It lands in the same ranked issue list as agent reports.
- Renders in a shadow DOM: your styles don't leak in, its styles don't leak out.
- Five kinds, including praise. What people love is useful to know too.
- Opens from a floating button, your own button, or
widget.open()with a preselected kind. - Keyboard accessible and follows your page's light or dark scheme.
- Script tag or npm. About 15 KB gzipped for the script-tag build.
import { init } from "@mostlovedproduct/web";
init({
key: "mlp_pk_...", // publishable, write-only
user: { id: account.opaqueId, tier: account.plan },
flags: { search_v2: experiments.searchV2 },
app: { version: BUILD_VERSION, env: "production" },
// Evaluated when someone files, never before.
getContext: () => ({ selected_invoices: selection.size, view: router.current }),
});<script>
window.mlp = window.mlp || function () { (mlp.q = mlp.q || []).push(arguments) };
</script>
<script async src="https://cdn.mostlovedproduct.com/mlp.js" data-key="mlp_pk_..."></script>
<script>
mlp("init", {
user: { id: "u_8f3c", tier: "growth" }, // your own opaque id
flags: { search_v2: "B" }, // A/B variants, feature flags
app: { version: "4.12.0", env: "production" },
});
</script>Theming with CSS variables
No theme editor. The widget reads custom properties from your page, so it inherits your tokens, and a coding agent can restyle it from a prompt.
/* Your tokens flow into the widget's shadow DOM through CSS variables. */
:root {
--mlp-font-family: var(--font-sans);
--mlp-accent: #0f766e;
--mlp-radius: 10px;
--mlp-surface: #ffffff;
--mlp-text: #111827;
}
[data-theme="dark"] {
--mlp-surface: #111418;
--mlp-text: #f3f4f6;
}Set --mlp-accent, --mlp-surface, --mlp-text, --mlp-radius and --mlp-font-family anywhere above the widget. Muted text, borders, shadow, spacing and z-index have their own variables.
Prefer config? Pass the same values as theme: { accent, surface, text, radius, fontFamily }. Need full control? Set ui: false and build your own interface on the headless controller, which still handles submission, follow-ups and redaction.
Custom properties: user ids, A/B flags, versions, page state
The context that turns “search is broken” into “search is broken for Growth accounts on variant B since 4.12.0”.
init({
key: "mlp_pk_...",
// Your own opaque id and plan. Never an email.
user: { id: account.opaqueId, tier: account.plan },
// A/B variants and feature flags: split any issue by variant.
flags: { search_v2: "B", invoice_editor_v3: true },
// Which build they were on.
app: { version: "4.12.0", env: "production", release: "2026.11.10" },
// Anything else that helps, evaluated only when someone files.
getContext: () => ({
selected_invoices: selection.size,
view: router.current,
}),
});
// Later, when things change:
widget.setFlags({ search_v2: "A" });Opaque user ids
Your own id and plan, so issues can be weighted by who hit them. Not names, not emails.
A/B variants and flags
Every report carries the variants it saw, so you can spot a problem that only exists in one arm of an experiment.
Versions and page state
App version and release, the page path and title, plus anything getContext() returns at the moment of filing.
Follow-up questions
People don't always write great feedback. “invoices suck” is honest, but nobody can fix it. One caring, specific question turns it into a report your team can act on.
Save first, ask second
The report is stored before any follow-up question appears, so the user can close the widget at any time.
Ask only when it helps
If the report is already actionable, the widget says thanks and stops.
Never ask what the SDK knows
Page, version, plan and flags are attached automatically, so questions are about intent.
Quick to answer
A few words or a tap, and always a skip. One question by default, two at most.
Someone sends a vague report. It is saved at once.
invoices suck
SendThe widget asks one specific question about it.
Saved. Thank you!
Sorry about that. How can we make invoices better?
Refunded invoices don't show up when I search by customer.
SkipSendThe answer joins the report, so the log says what to fix.
Thanks, that helps.
- text
- "invoices suck"
- asked
- "Sorry about that. How can we make invoices better?"
- answer
- "Refunded invoices don't show up when I search by customer."
Privacy by default
- Nothing is sent until the user submits. No cookies, no session replay, no fingerprinting.
- Secrets, tokens and card-like numbers are redacted in the browser and again at intake.
- Page URLs are sent without query string or fragment unless you opt in.
- Emails in free text can be redacted too. A
beforeSendhook can edit or drop any report. - Publishable keys are write-only and origin-checked.
FAQ
Can I add custom properties to feedback reports?
Yes. Attach your own opaque user id and plan, A/B variants and feature flags, the app version, and any page state through context or a getContext() callback that runs only when someone files. Up to 32 context keys and 50 flags.
How do I see which A/B variant a report came from?
Pass your variants as flags. Every report carries them, so an issue can show that all its reports came from variant B of an experiment.
Will it match our design system?
The widget reads CSS custom properties such as --mlp-accent, --mlp-surface, --mlp-radius and --mlp-font-family from your page, so it can inherit your tokens. Or go headless and render your own UI on the same controller.
Does it track users before they give feedback?
No. Nothing is sent until someone files a report: no cookies, no session replay, no background events. Page URLs are sent without query strings by default.
How many questions does it ask?
One follow-up by default and two at most, only when the answer would make the report clearly more actionable. The report is saved first, so skipping never loses it.
Do I have to use a floating button?
No. Set trigger to false and open the widget from your own button, menu item or link. Call widget.open(), or add the data-mlp-feedback attribute to any element.
Get started
Create an account, choose a plan and add the feedback tool to your MCP server. Most Loved Product is in Preview, so it changes often.