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

@quantabit/feedback-sdk

v1.0.2

Published

QuantaBit Feedback SDK - User feedback, ratings, and issue reporting components

Readme

@quantabit/feedback-sdk

QuantaBit Unified Feedback System SDK - Multi-platform unified feedback management

Features

  • 🌍 Multi-platform Support - Unified management of user feedback from different platforms/apps
  • 🏷️ Smart Categorization - Classify and manage by platform, app, domain, and other dimensions
  • 💬 Conversational Feedback - Supports user and management agent conversation replies
  • Satisfaction Rating - Quick collection of user satisfaction scores
  • 🌐 Multi-Language Support - Built-in Chinese/English/Japanese/Korean language packs
  • ⚛️ React Components - Ready-to-use UI components
  • 🔧 Flexible Configuration - Supports custom API URL and authentication methods

Installation

npm install @quantabit/feedback-sdk
# or
yarn add @quantabit/feedback-sdk

Quick Start

1. Configure SDK

Initialize the SDK at application startup:

import { configureFeedbackApi } from "@quantabit/feedback-sdk";

configureFeedbackApi({
  // QuantaBit Feedback Service API URL
  baseUrl: "https://api.qbitwallet.io/api/v1",
  // Platform identifier (to distinguish feedback from different platforms)
  platform: "your-app-name",
  // App ID (multiple apps under the same platform)
  appId: "web",
  appName: "Your App Name",
  // Default language
  language: "en",
  // Token getter function
  getToken: () => localStorage.getItem("token"),
});

2. Using React Components

import { FeedbackForm, QuickFeedbackWidget } from "@quantabit/feedback-sdk";

function App() {
  return (
    <div>
      {/* Full feedback form */}
      <FeedbackForm onSubmitSuccess={() => console.log("Submitted")} />

      {/* Quick satisfaction rating */}
      <QuickFeedbackWidget />
    </div>
  );
}

3. Using API Directly

import { feedbackApi } from "@quantabit/feedback-sdk";

// Submit feedback
await feedbackApi.submitFeedback({
  type: "bug",
  title: "Login button not responding",
  content: "After clicking the login button, nothing happens...",
  contact: "[email protected]",
});

// Submit quick feedback (satisfaction rating)
await feedbackApi.submitQuickFeedback({
  score: 5,
  comment: "Great service!",
});

// Get my feedback list
const { items, total } = await feedbackApi.getMyFeedback({
  page: 1,
  pageSize: 10,
});

API Reference

configureFeedbackApi(config)

Configure SDK global settings.

| Param | Type | Required | Description | | -------- | -------- | -------- | ---------------------------------------------- | | baseUrl | string | Yes | QuantaBit feedback service API URL | | platform | string | Yes | Platform identifier (e.g. anyaffair, xwin) | | appId | string | No | App ID | | appName | string | No | App name | | language | string | No | Default language (zh, en, ja, ko) | | getToken | function | No | Auth token getter function | | headers | object | No | Custom request headers |

feedbackApi

submitFeedback(data)

Submit detailed feedback.

await feedbackApi.submitFeedback({
  type: 'bug' | 'feature' | 'improvement' | 'question' | 'complaint' | 'praise' | 'other',
  title: string,
  content: string,
  contact?: string,
  attachments?: string[],
  extraData?: object,
});

submitQuickFeedback(data)

Submit quick feedback (satisfaction rating).

await feedbackApi.submitQuickFeedback({
  score: 1 | 2 | 3 | 4 | 5,
  comment?: string,
  context?: object,
});

getMyFeedback(params)

Get current user's feedback list.

const result = await feedbackApi.getMyFeedback({
  platform?: string,
  status?: 'pending' | 'processing' | 'resolved' | 'closed',
  page?: number,
  pageSize?: number,
});
// result: { items: Feedback[], total: number, page: number, page_size: number }

getFeedbackDetail(id)

Get feedback detail and reply list.

const { feedback, replies } = await feedbackApi.getFeedbackDetail(feedbackId);

replyFeedback(id, content, attachments)

Reply to feedback.

await feedbackApi.replyFeedback(
  feedbackId,
  "Thank you for your feedback...",
  [],
);

React Hooks

useFeedbackForm()

Manage feedback form state.

const { form, setField, submit, reset, loading, error } = useFeedbackForm();

useMyFeedback(params)

Get and manage user's feedback list.

const { feedbacks, loading, error, refresh, loadMore, hasMore } = useMyFeedback(
  { platform: "anyaffair" },
);

useQuickFeedback()

Quick feedback rating state management.

const { score, setScore, comment, setComment, submit, loading, submitted } =
  useQuickFeedback();

Internationalization

The SDK has built-in multi-language support:

import { setLanguage, t } from "@quantabit/feedback-sdk";

// Set language
setLanguage("en");

// Get translated text
const label = t("sendFeedback"); // "Send Feedback"

Supported languages:

  • zh - Simplified Chinese
  • en - English
  • ja - Japanese
  • ko - Korean

Feedback Types

| Type | Description | Icon | | ----------- | ---------------------- | ---- | | bug | Bug report | 🐛 | | feature | Feature request | 💡 | | improvement | Improvement suggestion | ✨ | | question | Question / Inquiry | ❓ | | complaint | Complaint | 😤 | | praise | Praise | 👍 | | other | Other | 📝 |

Multi-Platform Architecture

QuantaBit feedback system uses a unified management architecture:

                    ┌─────────────────────────────────┐
                    │   QuantaBit Feedback Center      │
                    │   (Unified Storage & Management) │
                    └─────────────────────────────────┘
                              ▲     ▲     ▲
                              │     │     │
         ┌────────────────────┼─────┼─────┼────────────────────┐
         ▼                    ▼     ▼     ▼                    ▼
┌─────────────────┐  ┌─────────────────┐  ┌─────────────────┐
│   AnyAffair     │  │     XWin        │  │   DreamLadder   │
│   platform:     │  │   platform:     │  │   platform:     │
│   'anyaffair'   │  │   'xwin'        │  │   'dreamladder' │
└─────────────────┘  └─────────────────┘  └─────────────────┘

Each platform's feedback carries platform, appId, domain, and other identifiers for easy filtering and analysis in the management backend.

License

MIT


🌐 Brand & Links