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

@percent20/misuto-react-native-sdk

v0.2.0

Published

React Native SDK for AirVaults location-based vault system

Downloads

17

Readme

@percent20/misuto-react-native-sdk

React Native SDK for AirVaults location-based vault system.

Install

npm install @percent20/misuto-react-native-sdk
# or
yarn add @percent20/misuto-react-native-sdk

Quick Start

Wrap your app with MisutoProvider:

import { MisutoProvider } from '@percent20/misuto-react-native-sdk';

function App() {
  return (
    <MisutoProvider
      apiKey="em_live_abc123..."
      config={{ baseUrl: 'https://api.percent-20.com/api/v2' }}
    >
      <YourApp />
    </MisutoProvider>
  );
}

Discover nearby vaults:

import { useVaultDiscovery } from '@percent20/misuto-react-native-sdk';

function VaultList() {
  const { vaults, isPolling, start, stop } = useVaultDiscovery();

  return <FlatList data={vaults} renderItem={({ item }) => <Text>{item.name}</Text>} />;
}

V3: Client-Side Vault Hashing

V3 moves hash computation to the client. Raw signals never leave the device.

Generate hashes

import { buildVaultHashes } from '@percent20/misuto-react-native-sdk';

const hashes = buildVaultHashes({
  geohash: 'sv8wrqpg5',
  radius: 100,
  altitude: 42,
  heading: 180,
  hourRange: [9, 17],
  salt: 'hashed-device-salt',
  pepper: 'hashed-device-pepper',
  wifiSsids: ['OfficeWiFi', 'GuestNet'],
  bleDeviceNames: ['Beacon-A'],
  objectDetection: ['laptop'],
  freeText: 'secret-phrase',
  nfcTagIds: ['TAG-001'],
});

Create vault via V3

import { MisutoClient } from '@percent20/misuto-react-native-sdk';

const client = MisutoClient.init({ apiKey: 'em_live_abc123...' });

const result = await client.vaults.createV3({
  name: 'My Private Vault',
  engine: 'storage',
  vault_hashes: hashes,
  radius: 100,
  payload: { description: 'Docs vault' },
});

console.log('Created vault:', result.uid);

V2 vs V3

| | V2 | V3 | | ---------------- | ----------------------------- | ----------------------------- | | Hash computation | Server | Client (SDK) | | Data sent | Raw signals | SHA256 hashes only | | Endpoint | POST /api/v2/clients/vaults | POST /api/v3/clients/vaults | | Discovery | Unchanged | Unchanged |

Geohash utilities

The SDK includes a full Geohash class for advanced use:

import { Geohash, encodeGeohash } from '@percent20/misuto-react-native-sdk';

// Encode coordinates to geohash
const hash = encodeGeohash(32.0853, 34.7818, 9);

// Generate optimized geohashes for a radius
const cells = Geohash.generateOptimizedGeohashes('sv8wrqpg5', 100);

// Distance between two points (meters)
const dist = Geohash.distanceBetween(32.08, 34.78, 32.09, 34.79);

API Reference

Vault Operations

// List vaults
const { vaults, pagination } = await client.vaults.list({ page: 1, per_page: 25 });

// Get vault details
const vault = await client.vaults.get('vault-uid');

// Create vault (V2 - server-side hashing)
const v2Result = await client.vaults.create({
  name: 'My Vault',
  engine: 'storage',
  geohash: 'sv8wrqpg5',
  radius: 100,
});

// Create vault (V3 - client-side hashing)
const v3Result = await client.vaults.createV3({
  name: 'My Vault',
  engine: 'storage',
  vault_hashes: buildVaultHashes({ geohash: 'sv8wrqpg5', radius: 100 }),
  radius: 100,
});

// Delete vault
await client.vaults.delete('vault-uid');

Beacon Operations

// List beacons for a vault
const { beacons } = await client.beacons.list('vault-uid');

// Create beacon
const beacon = await client.beacons.create('vault-uid', {
  type: 'wormhole',
  name: 'Access Link',
});

Documentation

Full documentation: https://docs.airvaults.io