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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@fxhash/core

v0.0.4

Published

Low-level building blocks to compose a fxhash client application. Should only be used directly for advanced use cases.

Downloads

15

Readme

@fxhash/client-sdk

A set of low-to-medium-level modules for building applications with fxhash.

[!CAUTION] If you are building a 3rd party application on top of fxhash, we recommended using @fxhash/client-plugnplay (or its React counterpart @fxhash/client-plugnplay-react), which have been designed for a simple and seamless integration into applications. They are build on top of this package, which is more suited if you really need low-level granular control.

Installation

pnpm add @fxhash/client-sdk
import { createClient } from "@fxhash/client-sdk"
const fxClient = createClient(...)

Design principles

This package uses 2 different approaches:

  • low-level functional modules which can be chained in various ways to achieve a wide range of behaviours
  • a declarative instanciation function (createClient) which lets developers instanciate and link the modules they need by providing a config object

Usage

Installation

Examples

Using the createClient utility

The createClient function provides the creation of a "client" using a declarative config object.

All the sources support the same interface

import {} from "@fxhash/client-sdk"

const source = windowWallets(...)

// hook on events
source.emitter.on("user-changed", () => { ... })
source.emitter.on("wallets-changed", () => { ... })
source.emitter.on("account-changed", () => { ... })

Simple window wallets without account

const source = windowWallets({
  evm: {
    config: "...",
  },
  tezos: {
    config: "...",
  },
})
// source.emitter.on("wallets-changed") ...
// source.getWalletManagers() ...

Backend private key wallet

const source = privateKeyWallets({
  evm: "0x...",
})
const managers = source.getWalletManagers()

Wallets and account

const source = walletsAndAccount({
  wallets: windowWallets({
    evm: wagmiConfig,
    tezos: beaconConfig,
  }),
  account: authWallets(accountSourceOptions),
})
// source.on("user-changed", () => { /* handler */ }) ...

Declarative API

import { createClient } from "@fxhash/client-sdk"

const client = createClient({
  metadata: {
    name: "...",
    description: "...",
    url: "...",
    icon: "...",
  },
  wallets: {
    window: {
      evm: {
        wagmiConfig: "...",
      },
    },
    web3auth: true,
  },
  authentication: true,
})

TEMP

Run the mock

Run core/hasura

fxrepo apps:run core/hasura

Run social wallet in core/applications/fxhash-wallet

pnpm dev

Run mock client plunplay in applications/utils/mock-client-plugnplay-react

FXHASH_ENV=local NEXT_PUBLIC_FXHASH_ENV=local pnpm dev

Folders of interest:

  • packages/public/fxhash-package/packages/client-sdk
  • packages/public/fxhash-package/packages/client-plugnplay
  • packages/public/fxhash-package/packages/client-plugnplay-react

TODO

  • [ ] writing tests
    • [ ] test operations
  • [ ] write documentation about packages
  • [ ] start integrating into website-v2 to start testing integration
  • [ ] mock test sending operations with wallets
  • [ ] loading states - right now there is now way to have some "loading" state from the user sources. we'd want to know when some authentication is happening, etc...