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

@kilnfi/react-components

v1.0.5

Published

Staking widgets available as react components

Readme

Overview

This is a React components library that can be used to integrate staking components on different protocols.

ETH staking widget

The ETH staking widget allows you to stake on Kiln's deposit contract with a connected wallet.

Usage:

import { EthStakingWidget } from "@kilnfi/react-components";
import "@kilnfi/react-components/dist/cjs/index.css";

const App = () => {
  const config: Config = {
    apiUrl: '...', // KILN API URL
    apiKey: '...', // KILN API TOKEN
    accountId: '...', // KILN account id
    network: 'goerli', // goerli | mainnet
    chainId: 5, // network chain id
    onStartStaking: () => {
      //
    },
    onPendingTxSignature: (contractAddress, stakeAmount) => {
      //
    },
    onMiningDepositTx: () => {
      //
    },
    onUserRejectsDepositTx: () => {
      //
    },
    onError: (error) => {
      //
    },
    onSuccess: (receipt, stakeAmount) => {
      //
    },
    onReset: () => {
      //
    }
  };
  
  const provider = '' // A JsonRpcProvider (see: https://docs.ethers.io/v5/api/providers/jsonrpc-provider/)
  const account = '...' // connected wallet address
  
  return (
    <EthStakingWidget 
      config={config}
      provider={provider}
      account={account}
    >
      <EthStakingWidget.Header/>
      <EthStakingWidget.SelectAmount/>
      <EthStakingWidget.RewardsForecast/>
      <EthStakingWidget.Status/>
    </EthStakingWidget>   
  )
}

Reference:

EthStakingWidget

| Props | Type | Description | |-------------------------------|----------|---------------------------------------------------------------------------------------------| | account | required | Connected wallet address (eg. '0x78693a6BCE41cB56D822FF039470DdAee0d47E72') | | provider | required | JsonRpcProvider (see: https://docs.ethers.io/v5/api/providers/jsonrpc-provider/) | | config | required | | | config.apiUrl | required | Kiln API URL | | config.apiKey | required | Kiln API key | | config.accountId | required | Kiln account id that will be associated with the stake. | | config.network | required | 'goerli' or 'mainnet' | | config.chainId | required | Network chain id: 5 or 1 | | config.onStartStaking | optional | Function triggered when user clicks on "Stake now" | | config.onPendingTxSignature | optional | Function triggered when the transaction signature is pending | | config.onUserRejectsDepositTx | optional | Function triggered when user rejects the transaction signature | | config.onMiningDepositTx | optional | Function triggered when transaction has been signed and is being mined | | config.onSuccess | optional | Function triggered when transaction has been mined successfully | | config.onError | optional | Function triggered when there is an error while generating keys or if the transaction failed | | config.onReset | optional | Function triggered when component has been reset to initial state |

EthStakingWidget.Header

Optional header.

EthStakingWidget.SelectAmount

Slider required to choose the amount to stake.

EthStakingWidget.RewardsForecast

Optional rewards forecast component.

EthStakingWidget.Status

Required bottom part of component with the different staking states, it includes the "Stake now" button.