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

@zirrohq/desk-react-native

v0.1.9

Published

React Native host for the Zirro Desk support widget

Readme

Zirro Desk for React Native

Zirro Desk is intentionally a small integration. Start with the basic setup and only add trusted identity if your product needs stronger identity assurance.

Step 1: Install and open support

npm install @zirrohq/desk-react-native react-native-webview
import { ZirroDeskWidget } from "@zirrohq/desk-react-native";

<ZirroDeskWidget
  workspaceId="your-workspace-id"
  apiBaseUrl="https://api.zirrodesk.com"
  user={{ id: currentUser.id, email: currentUser.email }}
  onClose={() => setSupportOpen(false)}
/>

That is the complete normal integration. workspaceId is public configuration, and user is optional. Supplying it avoids asking a signed-in customer for the same details again. Never put a private server key in a mobile application.

The SDK presents the hosted support experience full screen, including knowledge, tickets, and messages.

Logout and account switching

Changing user.id automatically starts the next customer with isolated support state. To explicitly clear support state during logout, hold a ref:

const desk = useRef<ZirroDeskWidgetHandle>(null);

await signOut();
desk.current?.reset();

<ZirroDeskWidget ref={desk} workspaceId={workspaceId} apiBaseUrl={apiBaseUrl} />

Trusted identity (optional)

The basic integration above remains valid. For stronger identity assurance:

  1. An admin creates a signing secret in Zirro Desk's Widget installation panel.
  2. Keep that secret on your backend only.
  3. Your backend signs an HS256 JWT lasting no more than 24 hours.
  4. Pass the returned token as identityToken.

Required claims:

{
  "kind": "widget_identity",
  "sub": "your-stable-customer-id",
  "workspace_id": "your-workspace-id",
  "name": "Ada",
  "email": "[email protected]",
  "phone": "+2348000000000",
  "iat": 1785859200,
  "exp": 1785862800
}
<ZirroDeskWidget
  workspaceId={workspaceId}
  apiBaseUrl="https://api.zirrodesk.com"
  user={currentUser}
  identityToken={tokenFromYourBackend}
/>

External links

External article links open with React Native Linking by default. Override onOpenExternalUrl when your app has its own in-app browser or allow-list.

Local development

Pass mobileUrl="http://localhost:5174/mobile.html" and widgetScriptUrl="http://localhost:5174/src/main.ts". Android emulators usually require 10.0.2.2; physical phones require the development machine's LAN address.

Release checks

npm run build
npm run publish:check

The public package is published under the @zirrohq npm organization.