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-sdkCreate 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
Installation and identity
Configure a public key and sign trusted users on your server.
Client methods
Read feedback, submit reports, vote, comment, and handle failures.
React hooks
Use a provider, queries, and mutations in your own interface.
Surveys
Deliver surveys or render a response with your own UI.
Devtools and sessions
Connect Next.js or Vite, take notes, and record a review.
Desktop and Live
Bridge desktop team tools or consume the local Live hub.
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.