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

@fivexer/expo

v0.1.0

Published

Worker-facing Expo/React Native SDK for the Fivexer Platform: secure session persistence, live queue WebSocket, React hooks, push, and geo

Readme

@fivexer/expo

Worker-facing Expo / React Native SDK for the Fivexer Platform.

The base @fivexer/sdk already works in Expo because it is zero-dependency and only needs fetch. This package adds the mobile-specific glue every worker app needs:

  • SecureStore-backed wt_ session persistence (PIN login, resume, logout)
  • Typed, reconnecting WebSocket client for live queue pushes
  • React hooks (useWorkerSession, useQueue, useTaskDetail, ...)
  • Expo push token registration
  • Foreground location updates for geo-constrained task matching

Scope: worker portal plane only. This package never exposes the workspace sk_ key — do not embed admin keys in a mobile app.

Install

npx expo install @fivexer/expo @fivexer/sdk expo-secure-store expo-notifications expo-location expo-constants react

Quickstart

import { FivexerWorkerProvider, ExpoFivexerWorker, useWorkerSession, useQueue } from '@fivexer/expo';

const worker = new ExpoFivexerWorker({ baseUrl: 'https://api.5xer.com' });

function App() {
    return (
        <FivexerWorkerProvider worker={worker}>
            <WorkerScreen />
        </FivexerWorkerProvider>
    );
}

function WorkerScreen() {
    const { session, login, logout, loading } = useWorkerSession();
    const { taskIds } = useQueue();

    if (loading) return <Text>Resuming…</Text>;
    if (!session) {
        return <Button title="Log in" onPress={() => login({ workspaceId: 'ws_...', workerId: 'w_...', pin: '1234' })} />;
    }

    return (
        <View>
            <Text>Hello, {session.workerId}</Text>
            <Text>Queue: {taskIds.length} tasks</Text>
            <Button title="Log out" onPress={logout} />
        </View>
    );
}

Push notifications

import { registerForPushNotificationsAsync } from '@fivexer/expo';

async function enablePush(worker: ExpoFivexerWorker) {
    const registration = await registerForPushNotificationsAsync(worker);
    if (!registration) return; // permission denied
    // registration.unregister() when the worker logs out
}

Location updates

import { startLocationUpdatesAsync } from '@fivexer/expo';

async function enableLocation(worker: ExpoFivexerWorker) {
    const { remove } = await startLocationUpdatesAsync(worker, { intervalMs: 30_000 });
    // remove() when done
}

Realtime status

useWorkerSession() returns status: 'closed' | 'connecting' | 'open'. The provider automatically connects the WebSocket when a session exists and the app is in the foreground, and pauses it in the background.

Security

  • sk_ workspace API keys must never ship inside a mobile app.
  • Store the worker wt_ token in expo-secure-store (default) or your own SecureStoreBackend.
  • Logout revokes the server session, clears all registered push tokens, and wipes local storage.