Reflet SDK
The official SDK for bringing Reflet feedback into your application. Published on npm as reflet-sdk.
Features
- List, create and vote on feedback
- Manage comments and subscriptions
- Show in-app surveys with branching, targeting and custom UIs
- Fetch roadmap lanes and changelog entries
- React hooks with caching and optimistic updates
- Server-side user signing for secure SSO
- Written in TypeScript, fully typed
Quick start
npm install reflet-sdkimport { Reflet } from "reflet-sdk";
const reflet = new Reflet({
publicKey: "fb_pub_xxx",
user: { id: "user_123", email: "user@example.com" },
});
// List feedback
const { items } = await reflet.list({ status: "open" });
// Vote
await reflet.vote("feedback_id");
// Submit feedback
await reflet.create({
title: "Add dark mode",
description: "Please add a dark mode option.",
});