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

@wokuapp/react-native

v0.1.0

Published

React Native SDK to capture Woku ratings and NPS (text + audio) with offline buffering and configurable intercepts.

Readme

@wokuapp/react-native

Capture Woku ratings and NPS (text + audio) from your React Native app, with offline buffering and quarantine-aware delivery.

npm license types

Why

Drop Woku feedback capture into an existing iOS/Android app without building your own ingestion, retry, or offline logic. The SDK:

  • Captures Woku ratings (1–5) and NPS (0–10) with optional text or audio comments.
  • Buffers offline and retries automatically when connectivity returns — a tap on the subway never loses a response.
  • Is quarantine-aware: when the backend rate-limits a respondent (HTTP 429), the SDK backs off instead of hammering it.
  • Has zero runtime dependencies and a fully typed, framework-agnostic core: you inject the platform adapters (storage, http, audio), so it stays small and testable.

Architecture note (v0.1). This release ships the headless TypeScript core plus the adapter interfaces. Pre-built React Native adapters (MMKV storage, audio recorder) ship in a follow-up minor; until then you wire your app's libraries to the small interfaces below (a few lines).

Install

npm install @wokuapp/react-native
# or
pnpm add @wokuapp/react-native

react and react-native are optional peers (only needed once the native adapters land).

Quickstart

import { WokuSdk } from '@wokuapp/react-native';

const woku = new WokuSdk({
  apiUrl: 'https://api.woku.app',
  publicKey: 'pk_live_xxx', // per-company SDK key
  companyId: 'company_123',
  storage: mmkvStorageAdapter, // see "Adapters" below
});

// NPS capture (0–10)
await woku.captureNps({
  npsId: 'nps_q2_2026',
  score: 9,
  comment: 'Fast checkout, loved it.',
});

// Woku rating (1–5) with an audio comment
await woku.captureWoku({
  wokuId: 'woku_store_centro',
  rating: 5,
  audio: { uri: fileUri, mimeType: 'audio/m4a', durationMs: 4200 },
  respondent: { email: '[email protected]' },
});

// Flush queued captures (e.g. on app foreground / reconnect)
const { sent, remaining } = await woku.flush();

Every capture resolves to a SubmissionResult with a status of sent | queued | quarantined | failed — it never throws on network loss; the submission is queued and retried.

Adapters

The core depends on three small interfaces. Wire them to your app's libraries.

Storage (required for offline buffering)

import { MMKV } from 'react-native-mmkv';
import type { Storage } from '@wokuapp/react-native';

const mmkv = new MMKV();
export const mmkvStorageAdapter: Storage = {
  getItem: (k) => mmkv.getString(k) ?? null,
  setItem: (k, v) => mmkv.set(k, v),
  removeItem: (k) => mmkv.delete(k),
};

Don't pass storage and the SDK falls back to in-memory (lost on restart).

HTTP (optional)

Defaults to the global fetch. Override to add tracing, custom TLS, etc.:

import type { HttpClient } from '@wokuapp/react-native';
const http: HttpClient = { request: async (req) => /* ... */ };

Offline & retry semantics

flush() walks the queue oldest-first:

| Outcome | Behavior | | ------------------ | ------------------------------------------------------------------------------------------------------ | | sent | removed from the queue | | quarantine (429) | stops the flush, keeps everything for the next attempt | | network error | attempt count bumped, item kept, flush continues | | failed (4xx/5xx) | attempt count bumped; dropped after maxQueueAttempts (default 8) so a bad item can't wedge the queue |

The queue persists through your Storage adapter, so it survives restarts.

API

| Member | Description | | --------------------- | --------------------------------------------------- | | new WokuSdk(config) | Create an SDK instance. | | captureWoku(input) | Submit a 1–5 rating (+ comment/audio). | | captureNps(input) | Submit a 0–10 NPS score (+ review). | | flush() | Retry all queued captures. Returns a FlushResult. | | pendingCount() | Number of captures waiting to send. | | clearQueue() | Drop the queue (e.g. on logout). |

Lower-level building blocks WokuClient and OfflineQueue are exported too, along with all types and error classes (WokuValidationError, WokuQuarantineError, WokuNetworkError, …).

License

MIT © Woku