@nextty/feedback
v0.1.0
Published
Embed the Nextty Feedback Widget and Portal launcher in any web app.
Downloads
136
Readme
@nextty/feedback
Embed the Nextty Feedback Widget (submit feedback, "My feedback") in any web app. This is a zero-dependency ES module.
pnpm add @nextty/feedbackimport { createFeedbackWidget } from "@nextty/feedback";
const widget = createFeedbackWidget({
appId: "nfw_xxxxxxxxxxxxxxxx",
// Return a fresh ES256 assertion signed by your backend for the signed-in user.
token: async () => (await fetch("/api/nextty-feedback-assertion", { method: "POST" })).text(),
onEvent: (event) => console.log(event.type),
});The Widget requires a signed identity. Anonymous use is not supported, and the assertion never goes into a URL.
The same module also exports createFeedbackPortal for linking to a Hosted Feedback Portal.
Full guide: https://github.com/nexttylabs/nextty.dev/tree/main/docs/integrations/feedback-widget
