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

@deshina/agekey-react-native

v0.1.3

Published

React Native bindings for the AgeKey Core SDK. This package wraps `@deshina/agekey-core` with secure storage, push notification helpers, QR scanning adapters, and a light native bridge so iOS/Android shells can hook in.

Readme

@deshina/agekey-react-native

React Native bindings for the AgeKey Core SDK. This package wraps @deshina/agekey-core with secure storage, push notification helpers, QR scanning adapters, and a light native bridge so iOS/Android shells can hook in.

Installation

pnpm add @deshina/agekey-react-native react-native-encrypted-storage

Optional providers:

  • Expo push + QR: expo-notifications, expo-barcode-scanner
  • Firebase push: @react-native-firebase/messaging

These are not installed automatically—add whichever provider your app needs.

Usage

import { AgeKeyRN } from "@deshina/agekey-react-native";

AgeKeyRN.init({ apiKey: "AGEKEY_API_KEY", endpoint: "https://api.agekey.com" });
const token = await AgeKeyRN.requestToken();
await AgeKeyRN.saveToken(token.token);

const stored = await AgeKeyRN.loadToken();
if (stored) {
  await AgeKeyRN.validateToken(stored);
}

AgeKeyRN.onToken((decoded) => {
  console.log("AgeKey token updated", decoded);
});

Secure Storage

react-native-encrypted-storage is used when available. In CI / Node environments a JSON file fallback is used (set AGEKEY_RN_STORAGE_PATH or pass storage.fallbackPath in init). All storage helpers are async and throw descriptive errors if permissions are missing.

Push Notifications

Use AgeKeyRN.setupPushHandler(callback, provider) to register a push handler. Providers:

  • expo: requests permissions via expo-notifications if installed.
  • firebase: logs setup guidance for @react-native-firebase/messaging.
  • none: pure JS fallback; pair with AgeKeyRN.triggerPushRequest(payload) during development.

QR Scanning

Call AgeKeyRN.startQRScanner(provider) to launch a provider-specific QR flow. Adapters for Expo BarCodeScanner and react-native-camera are stubbed—bring your own UI and feed the resulting session ID to AgeKeyRN.beginQRFlow. A simulator fallback returns a mock session for CI/tests.

Native Bridge

registerNativeBridge lets Swift/Kotlin wrappers plug in custom storage or push hooks. Each method is optional so you can progressively adopt native integrations.

Testing

Run the package tests via:

pnpm --filter @deshina/agekey-react-native test

For end-to-end validation, use the included Expo demo app under apps/example-react-native.