Skip to content

Reflet SDK

The npm package for feedback clients, React interfaces, surveys, and team tools. Import only the entry point your integration needs.

Submit feedback

npm install reflet-sdk

Create an API key in your organization's settings and allow your app's origin. Replace the public key below. This example can submit anonymously; voting, comments, and subscriptions need a server-signed user token.

import { Reflet } from "reflet-sdk";

const reflet = new Reflet({ publicKey: "fb_pub_YOUR_PUBLIC_KEY" });

const { feedbackId, isApproved } = await reflet.create({
  title: "Keep filters when returning to the list",
  description: "Opening an item and going back resets my filters.",
});

const { items, total, hasMore } = await reflet.list({
  sortBy: "newest",
  limit: 20,
});

Check isApproved before promising that a report is public. See error handling for rejected requests and network failures.

Choose an integration

Package entry points

reflet-sdk exports the client, public types, and error classes. reflet-sdk/server exports token signing and verification. reflet-sdk/react adds the provider, hooks, feedback components, changelog component, and survey delivery.

For ready-made UI, use reflet-sdk/feedback for the floating widget, or see the feedback components and changelog widget. The feedback entry also exports capture helpers and team-bridge types.reflet-sdk/surveys provides survey rendering without automatic delivery.

reflet-sdk/devtools/next and reflet-sdk/devtools/vite run on a development server.reflet-sdk/desktop and reflet-sdk/live-hub are privileged Node integrations, not browser imports. For operating Live rather than embedding its hub, use the CLI guide.