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

@inaya-network/react

v0.1.0

Published

Drop-in React + Tailwind components for @inaya-network/custody-sdk — InayaUploader, InayaFileBrowser, InayaConnect.

Readme

@inaya-network/react

Drop-in React + Tailwind components for @inaya-network/custody-sdk — you don't need to build your own upload widget, file browser, or wallet-connect button from scratch.

Requires Tailwind already configured in your app — this package ships utility-class-styled JSX, not compiled CSS. Add this package's path to your tailwind.config.js's content array so Tailwind picks up the classes:

content: ["./src/**/*.{js,jsx}", "./node_modules/@inaya-network/react/src/**/*.{js,jsx}"]

Install

npm install @inaya-network/react @inaya-network/custody-sdk ethers react react-dom

Components

<InayaConnect />

Wallet connect button that also derives the vault key — one component instead of wiring connectWallet() + deriveVaultKey() yourself.

import { InayaConnect } from "@inaya-network/react";

function App() {
  const [ready, setReady] = useState(null); // { connection, vaultKey, salt, address }
  return <InayaConnect onReady={setReady} />;
}

Read this before shipping: a vault key is derived from passkey + salt. If you don't persist the salt this component surfaces in onReady (e.g. keyed by wallet address, in your own backend), a fresh random salt gets generated every session and files encrypted in one session become permanently undecryptable the next. Pass a previously-persisted salt back in as the salt prop.

<InayaUploader />

Drag-and-drop upload, wired to the SDK's real progress callbacks.

import { InayaUploader } from "@inaya-network/react";

<InayaUploader
  connection={connection}
  vaultKey={vaultKey}
  pinShard={(shardContent, filename, tag) => yourPinningApi(shardContent, filename, tag)}
  onComplete={(receipt) => console.log(receipt.fileHash)}
/>

pinShard is required, not hardcoded — pinning is backend-specific (every app deploys its own IPFS pinning route), same reasoning as the SDK's Payments/Metadata clients being bring-your-own-backend.

<InayaFileBrowser />

A decentralized-Drive-style browser over the SDK's Metadata client (folders, rename, move, delete, share). See custody-sdk/SDK_GUIDE.md §9 for why this is an off-chain layer — InayaCustody itself is write-once, confirmed by live eth_call testing.

import { InayaFileBrowser } from "@inaya-network/react";

<InayaFileBrowser connection={connection} owner={address} apiBaseUrl="https://your-backend.example" />

Needs the same reference backend routes documented in custody-sdk/examples/nextjs-metadata-api-routes.js deployed on your end.

What this package does NOT do

Same as the SDK it wraps: no secrets, no bundled backend. InayaUploader needs a pinShard implementation you provide; InayaFileBrowser needs the Metadata backend routes deployed. This package is the UI layer only.

Storybook

npm run storybook        # live dev server at localhost:6006
npm run build-storybook  # static site -> storybook-static/

Every push to main that touches this package auto-deploys the latest Storybook to GitHub Pages via .github/workflows/storybook.yml. Stories intentionally show each component's real initial/idle state rather than mocking a live wallet or backend — InayaFileBrowser's story, for instance, shows its actual "failed to fetch" error state when no real apiBaseUrl is configured, which is expected in isolation, not a bug.