Reflet SDK
The official SDK for integrating Reflet feedback collection into your application. Available as reflet-sdk on npm.
Features
- List, create, and vote on feedback
- Manage comments and subscriptions
- Fetch roadmap lanes and changelog entries
- React hooks with automatic caching and optimistic updates
- Server-side user signing for secure SSO
- TypeScript-first with full type coverage
Quick start
Install
npm install reflet-sdkBasic usage
import { 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.",
});