npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@voicereview/sdk

v0.1.3

Published

Drop-in voice review button for React — record, transcribe, and analyze customer feedback.

Downloads

566

Readme

@voicereview/sdk

Drop-in voice review button for React. Let customers leave feedback by speaking instead of typing — the audio is transcribed and analyzed (rating, sentiment, return-likelihood, issue flags) and lands in your VoiceReview dashboard within seconds.

  • 🎙️ One component, records in the browser
  • ⚡ Zero backend work — posts straight to your VoiceReview API
  • 🎨 Themeable + fully customizable labels
  • 📦 Ships ESM + CJS + TypeScript types

Install

npm install @voicereview/sdk
# or: pnpm add @voicereview/sdk / yarn add @voicereview/sdk

react (>=18) is a peer dependency — it uses the React already in your app.

Quick start

import { VoiceReviewButton } from "@voicereview/sdk";

export default function ThankYou({ orderId }: { orderId: string }) {
  return (
    <VoiceReviewButton
      apiKey="vr_live_xxxxxxxxxxxx"
      businessId="biz_xxxxxxxx"
      customerRef={orderId}
      onSuccess={(r) => console.log("Rating:", r.rating, "Sentiment:", r.sentiment)}
    />
  );
}

Grab your apiKey and businessId from your VoiceReview dashboard (Businesses → API credentials).

The SDK posts to the VoiceReview API automatically — the endpoint is baked into the package, so it works no matter what site it's embedded on. You only need the endpoint prop if you want to point it at a different (e.g. self-hosted) instance.

Props

| Prop | Type | Default | Description | | ---------------- | -------------------------------------- | ------------------------------- | ----------- | | apiKey | string (required) | — | Your publishable API key (vr_live_…). | | businessId | string (required) | — | The business the review belongs to. | | customerRef | string | — | Opaque reference (order ID, table, etc.) saved on the review. | | endpoint | string | baked-in VoiceReview API | Override only to target a different/self-hosted instance. | | maxDuration | number | 30 | Max recording length in seconds. | | showResultCard | boolean | true | Show the built-in result card after submitting. | | onSuccess | (result: ReviewResult) => void | — | Called with the analyzed result. | | onError | (error: string) => void | — | Called on failure. | | className | string | — | Extra classes on the wrapper. | | style | React.CSSProperties | — | Inline styles on the wrapper. | | theme | { primary, background, text, borderRadius } | see below | Visual theming. | | labels | { idle, recording, processing, success, error } | see below | Override all UI copy. |

ReviewResult

interface ReviewResult {
  reviewId: string;
  rating: number;          // 1–5
  sentiment: string;       // superhappy | happy | neutral | sad | angry
  likelyReturnRate: number;// 0–100
  issueFlag: boolean;
  summary: string;
}

Theming

<VoiceReviewButton
  apiKey="vr_live_xxx"
  businessId="biz_xxx"
  endpoint="https://your-domain.com/api/review"
  theme={{
    primary: "#059669",
    background: "#ffffff",
    text: "#111827",
    borderRadius: "16px",
  }}
  labels={{
    idle: "How was your experience?",
    recording: "Listening… tap to stop",
    processing: "Saving your feedback…",
    success: "Thanks for your feedback!",
  }}
/>

Theme defaults: primary #7c3aed, background #ffffff, text #111827, borderRadius 12px.

Notes

  • The component is a client component ("use client"), so it works in Next.js App Router, Vite, CRA, and any React 18+ setup.
  • It requests microphone permission via the browser's MediaRecorder API, so it must run over HTTPS (or localhost).

License

MIT