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

@use-glyph/sdk-react

v2.3.1

Published

See it in action πŸš€: [https://demo.useglyph.io](https://demo.useglyph.io)

Downloads

90,745

Readme

Glyph Widget (React SDK)

See it in action πŸš€: https://demo.useglyph.io

Dashboard βš™οΈ: https://useglyph.io/

Documentation πŸ“: https://docs.useglyph.io/

Wallet compatibility (2.3.1)

The development matrix uses wagmi 2.19.5, viem 2.57.8, RainbowKit 2.2.11, Privy React 3.51.3, Privy wagmi 4.0.20, and Relay SDK 3.2.0. Keep the app's Relay version aligned when passing RelayChain values to Glyph. Privy's internal adapters accept viem ^2.57.8; do not force a global viem override. The earlier Privy range below 3.49.0 remains supported. Versions 3.49.0 through 3.51.2 remain excluded. Explicitly non-signable wallets are not selected as signers; legacy accounts without the capability field retain their existing behavior.

React 18 and 19 are supported. ConnectKit 1.9.2 requires React 18. Dynamic's Glyph connector 4.5.0 requires cross-app-connect 0.2.3; other development adapters use cross-app-connect 0.7.6. Do not force those separate adapter generations onto one version.

See the integration-specific installation commands in the documentation. The examples cover native, Privy, RainbowKit, ConnectKit, cross-app, and Dynamic integrations. User login and wallet confirmation remain required; installing this SDK does not grant an agent permission to sign or send transactions.

Dependency security

Wallet peers remain external to the SDK bundle. Compatibility is not a clean-audit guarantee. Audit the consuming application's resolved dependency graph, including its wallet adapters. Overrides in the SDK source workspace do not propagate to consuming applications. See the security policy and guidance. Legacy Dynamic/Solana dependencies still include an unpatched bigint-buffer advisory; track its upstream replacement before enabling affected server-side code.

SDK diagnostics

SDK debug and informational logs are disabled by default. Warnings and errors remain visible. Import setGlyphDebugLogging from @use-glyph/sdk-react and call it with true for temporary diagnostics. Call it with false to disable diagnostics again. Third-party wallet logging is separate. Authentication logs never contain signatures, tokens, nonces, or raw provider errors.

Wallet sign-in and recovery

For the EIP1193 strategy, useGlyph() exposes signIn(): Promise<boolean>, needsSignature, and authError. Existing login() uses the same sign-in path. Call signIn() directly from a fresh click; do not await a fetch first. It returns false if message preparation is pending, a popup needs activation, or sign-in fails. Wait for ready, then offer another click. askForSignature={false} prepares only; it never automatically signs. A rejected or blocked attempt never starts an automatic signing retry loop.

onAuthError receives only a static reason (popup_blocked, rejected, verify_failed, or network), message and optional retryAt. No alert or raw provider error is exposed. A 429 blocks authentication requests and signing until Retry-After; missing headers use bounded backoff. A current credential's 401 clears that session and prepares a message for manual retry. A 403 does not log out, and late old responses cannot revoke replacement credentials.

Persistence binds the wallet, API origin and connector family (id, type). Recreating wagmi configuration on reload can restore that scoped credential without another signature. Live callbacks also bind the connector instance (uid): a committed live scope change revokes old callbacks, forgets the old record and requires sign-in. Normal unmount and StrictMode replay retain persistence; explicit logout and external disconnect clear it. Restored credentials still face server session checks. Legacy unbound token/nonce records are cleared, so an existing user may need one new sign-in; the SDK does not guess their wallet or origin binding.

Privy retains its existing login and wallet-selection behavior. Its signIn() returns true when the login call completes, which does not guarantee an EVM wallet or Glyph authentication. Check authenticated for wallet/API readiness. Privy reports needsSignature: false and authError: null.

Lossless balance image transport

Managed balance reads request nftImageEncoding=references-v1. Supporting Glyph servers send repeated large NFT image strings once; the SDK restores the existing balance/NFT object shape before React Query stores or exposes it. Older servers return their normal arrays and work without an extra fallback request. Public hooks, amounts, partial-state fields, images and ownership flags keep their shape. Malformed dictionaries fail with a static error and are not automatically retried; authentication failures and session/cancellation checks retain their existing behavior.